1834571 Members
2811 Online
110069 Solutions
New Discussion

Checking tape drive

 
SOLVED
Go to solution
csreenivas
Frequent Advisor

Checking tape drive

Bad tape drive has been replaced by vendor on server.How to check whether he replaced correct one or not from remote?
9 REPLIES 9
A. Clay Stephenson
Acclaimed Contributor

Re: Checking tape drive

State with an ioscan -C tape -fn. Does the drive appear? The model should be listed.

Next issue an "mt -f /dev/rmt/Xm stat" preferably with a tape loaded.
If it ain't broke, I can fix that.
mavrick
Regular Advisor

Re: Checking tape drive

Hi,
Check the H/W path of the drive is matching with your old configuration.
then try by
ioscan -fnH
this will give you the full path and device

pl keep post ur reply
csreenivas
Frequent Advisor

Re: Checking tape drive

My ioscan output is showing like this...I am not sure that vendor replaced the tape drive correctly.(tape1 or tape2)

------------
Class I H/W Path Driver S/W State H/W Type Description
=====================================================================
tape 1 0/4/0/0.2.0 stape NO_HW DEVICE QUANTUM DLT8000
/dev/rmt/1m /dev/rmt/c4t2d0BEST
/dev/rmt/1mb /dev/rmt/c4t2d0BESTb
/dev/rmt/1mn /dev/rmt/c4t2d0BESTn
/dev/rmt/1mnb /dev/rmt/c4t2d0BESTnb
tape 2 0/4/0/0.4.0 stape CLAIMED DEVICE QUANTUM DLT8000
------------------------------------
A. Clay Stephenson
Acclaimed Contributor

Re: Checking tape drive

My best guess is that he changed the SCSI ID from 2 to 4 so either change the SCSI ID or do a rmsf to remove the original tape drive device nodes or run insf to install new tape device nodes but if you do that without doing an rmsf, what was /dev/rmt/1mn, for example, will now be /dev/rmt/2mn or some other value).
If it ain't broke, I can fix that.
csreenivas
Frequent Advisor

Re: Checking tape drive

Thank You.
Can you please send me the commands with options how to use rmsf and insf to remove and create device files.
#insf -e -H 0/4/0/0.4.0 Is it correct?
A. Clay Stephenson
Acclaimed Contributor
Solution

Re: Checking tape drive

tape 1 0/4/0/0.2.0 stape NO_HW DEVICE QUANTUM DLT8000
/dev/rmt/1m /dev/rmt/c4t2d0BEST
/dev/rmt/1mb /dev/rmt/c4t2d0BESTb
/dev/rmt/1mn /dev/rmt/c4t2d0BESTn
/dev/rmt/1mnb /dev/rmt/c4t2d0BESTnb
tape 2 0/4/0/0.4.0 stape CLAIMED DEVICE QUANTUM DLT8000

If this were me, I would have Mr. Goodwrench come back and change the SCSI ID from 4 back to the original 2. Of course, YOU should have checked this before he left. I never assume that my Mr. Goodwrenches can do anything although, generally, most of them know something. Then all you would need to do is:

rmsf -H 0/4/0/0.4.0 -v




However, you can:

rmsf -H 0/4/0/0.2.0 -v
insf -d stape -I 1 -H 0/4/0/0.4.0
If it ain't broke, I can fix that.
csreenivas
Frequent Advisor

Re: Checking tape drive

Thank You.
Is it compulsory to use the insf command in single user mode?
A. Clay Stephenson
Acclaimed Contributor

Re: Checking tape drive

No. It is more risky for disk drives but as long as your are careful about the hardware paths, you should be fine. Again, if this were me, I would yank the tape drive out (if it is internal) and change the SCSI ID or if it's external then it's typically just changing a thumbwheel switch setting so that your old device nodes continue to work.
If it ain't broke, I can fix that.
csreenivas
Frequent Advisor

Re: Checking tape drive

Thank You solved the issue.
by creating the device files on scscid 4 and removed the devicefiles on scscid 2.
now backup is running successfully.