1834780 Members
2859 Online
110070 Solutions
New Discussion

rewind/test tape device

 
SOLVED
Go to solution
Ravinder Singh Gill
Regular Advisor

rewind/test tape device

our backup failed last night. the logs said there was a problem with the tape device. i want to test the tape device and have had a tape loaded into it. how can i test the tape device or rewing the tape to make sure it is okay?
15 REPLIES 15
Pete Randall
Outstanding Contributor
Solution

Re: rewind/test tape device

You can run the diagnostic program cstm against it. You can write a tar file to it. You can rewind it with the mt command: "mt -t /dev/rmt/Xmn rew" or "mt -t /dev/rmt/Xmn offl"


Pete

Pete
Ravinder Singh Gill
Regular Advisor

Re: rewind/test tape device

in /dev/rmt if i do ls, the only Xnm I can see is 0mn. However when i do "mt -t /dev/rmt/0mn rew" it says no such device or address. Can anyone advise?
Mahesh Kumar Malik
Honored Contributor

Re: rewind/test tape device

Hi Rawinder

There is possibility of hardware failure. However check in ioscan for availibility of drive. Else use Offline Diagnostic Environment (ODE)for HW testing of drive.

Regards
Mahesh
Ravinder Singh Gill
Regular Advisor

Re: rewind/test tape device

thanks guys i think i know what the problem was.
Ravinder Singh Gill
Regular Advisor

Re: rewind/test tape device

how do i check if there is a tape in the drive?
Pete Randall
Outstanding Contributor

Re: rewind/test tape device

mt (-t /dev/rmt/_m) status


Pete

Pete
Jeff Schussele
Honored Contributor

Re: rewind/test tape device

mt status

If it reports a tape type - it's in

HTH,
Jeff
PERSEVERANCE -- Remember, whatever does not kill you only makes you stronger!
Ravinder Singh Gill
Regular Advisor

Re: rewind/test tape device

Drive: Quantum DLT4000
Format: DLT 85937 bpi 52 quad-tracks compressed (70 GB)
Status: [41118585] BOT online compression immediate-report-mode
File: -1
Block: -1

is it the format which is specifying there is a tape?
Patrick Wallek
Honored Contributor

Re: rewind/test tape device

The format and status indicate a tape is in the drive. The "BOT" means it is at the "Beginning of Tape" mark on the tape.
Pete Randall
Outstanding Contributor

Re: rewind/test tape device

If it was empty, it would look like this:

mt -t /dev/rmt/6m status
Drive: QUANTUM DLT8000
Format:
Status: [0]
File: 0
Block: 0


Pete

Pete
A. Clay Stephenson
Acclaimed Contributor

Re: rewind/test tape device

Do an "mt -f /dev/rmt/Xmnb status" and examine the Status line. If no tape is is the drive you will see something like:
Status [0]
If a tape is inserted you will see something like:
Status [nnnnnnnn] BOT Desc more description
If it ain't broke, I can fix that.
Ravinder Singh Gill
Regular Advisor

Re: rewind/test tape device

how do i make sure i am checking the DLT drive and not the DAT drive?
Pete Randall
Outstanding Contributor

Re: rewind/test tape device

Check ioscan to make sure you've got the right device file. A DAT drive would look something like this:


tape 6 0/0/8/0/0/1/0.0.0 stape CLAIMED DEVICE HP C1537A


While a DLT would say QUANTUM DLT8000 or something similar in place of C1537A.


Pete


Pete
Patrick Wallek
Honored Contributor

Re: rewind/test tape device

Well, in the status output from the MT command you will see DLT or DDS in the "Drive" portion.

If it says DLT, you are looking at the DLT drive.
Ravinder Singh Gill
Regular Advisor

Re: rewind/test tape device

thanx guys