1826337 Members
4047 Online
109692 Solutions
New Discussion

error with tape drive

 
SOLVED
Go to solution
Ratzie
Super Advisor

error with tape drive

I just installed a tape drive, and using ltt, was able to do all diagnostics to it and had it working.
Then when I tried to do a make_tape_recovery I get a tape drive error...

# make_tape_recovery
* Creating local directories for configuration files and archive.

======= 02/07/04 18:02:45 CST Started make_tape_recovery. (Sat Feb 07
18:02:45 CST 2004)
@(#) Ignite-UX Revision B.4.4.29
@(#) net_recovery (opt) $Revision: 10.611 $

* Testing pax for needed patch
* Passed pax tests.
* Checking Versions of Ignite-UX filesets
ERROR: Failed to open tape device /dev/rmt/0mn:No such device or address
(errno = 6).
ERROR: Check tape device failed.


I did create the default files for the tape drive thru sam.

Any ideas?
4 REPLIES 4
Steven E. Protter
Exalted Contributor

Re: error with tape drive

No tape in the drive.

Write protect tab on tape set to protect.

Happens three times a month to me at work.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
lawrenzo
Trusted Contributor

Re: error with tape drive

If the tape is in and not write protected:

could be bad media or incorrect tape for the drive - dds2 in a dds1 drive?
hello
Chris Watkins_1
Respected Contributor
Solution

Re: error with tape drive

You probably already have your answer.

I may be wrong, but mt might tell you if it's "write-protect".

# mt -t /dev/rmt/0mn status


If you're still having problems, do:
# ioscan -funC tape
and make sure you're using the correct driver.
(It could be on 1mn, 3mn, etc... instead of 0mn)
Not without 2 backups and an Ignite image!
Bill Hassell
Honored Contributor

Re: error with tape drive

It's nit a good idea to run make_tape_recovery without options. The program tried to talk to /dev/rmt/0mn but if this is not your tape drive's device file, you'll get this error. Start by identifying all the tape drives on your system:

/sbin/ioscan -knfC tape

The device files are listed for each tape drive. Then check the drive status:

mt -t /dev/rmt/whatever status

Make sure the status shows a tape and it's not write-protected. Finally, write a short file to the tape and read it back:

mt -t /dev/rmt/whatever rewind
tar cvf /dev/rmt/whatever /tmp
mt -t /dev/rmt/whatever rewind
tar tvf /dev/rmt/whatever

This will write a copy of /tmp, then read back the table of contents. Once this works, you can run make_tape_recovery:

make_tape_recovery -I -v -x inc_entire=vg00 -a /dev/rmt/0m


Bill Hassell, sysadmin