cancel
Showing results for 
Search instead for 
Did you mean: 

checking tape drive.

UnixT
Frequent Advisor

checking tape drive.

/usr/sbin $ sudo ioscan -fnC tape
Class I H/W Path Driver S/W State H/W Type Description
=====================================================================
tape 2 0/0/1/0.1.0 stape CLAIMED DEVICE HP C1537A
/dev/rmt/2m /dev/rmt/2mnb /dev/rmt/c0t1d0BESTn /dev/rmt/c0t1d0DDSb
/dev/rmt/2mb /dev/rmt/c0t1d0BEST /dev/rmt/c0t1d0BESTnb /dev/rmt/c0t1d0DDSn
/dev/rmt/2mn /dev/rmt/c0t1d0BESTb /dev/rmt/c0t1d0DDS /dev/rmt/c0t1d0DDSnb
tape 3 0/0/1/0.3.0 stape CLAIMED DEVICE HP C1537A
/dev/rmt/3m /dev/rmt/3mnb /dev/rmt/c0t3d0BESTn /dev/rmt/c0t3d0DDSb
/dev/rmt/3mb /dev/rmt/c0t3d0BEST /dev/rmt/c0t3d0BESTnb /dev/rmt/c0t3d0DDSn
/dev/rmt/3mn /dev/rmt/c0t3d0BESTb /dev/rmt/c0t3d0DDS /dev/rmt/c0t3d0DDSnb
Server:
/usr/sbin $ sudo crontab -l

=====
I want to check whether the tape drive is functional or not.. May I know the how? tar -tvf failed saying no such device or address. Tape is in the drive
4 REPLIES
Michael Mike Reaser
Valued Contributor

Re: checking tape drive.

tar -tvf...what?

Can you give us the full contetns of the tar command you used?
There's no place like 127.0.0.1

HP-Server-Literate since 1979
Steven E. Protter
Exalted Contributor

Re: checking tape drive.

Shalom,

There needs to be a tape in the drive without write protection to check it.

Then a tar attempt, or even a simple dd command is sufficient.

Try tar cvf, make the tape device part of the file name.

A daily backup job is enough to test this as well.

backup_command
rc=$?

if [ $rc -ne 0 ]
then
echo "Tape job failed..."
else
echo "Tape drive good..."
fi

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
Patrick Wallek
Honored Contributor

Re: checking tape drive.

# mt -f /dev/rmt/2mn status

# mt -f /dev/rmt/3mn status

Will show the status of each drive. If one of the drives has a tape in it, you will see that too.

Avinash20
Honored Contributor

Re: checking tape drive.

Os: 11.11 # mt -t /dev/rmt/0m fsf 1
OS: 11.23 # mt -f /dev/rmt/0m fsf 22

# tar -tvf /dev/rmt/0mn
"Light travels faster than sound. That's why some people appear bright until you hear them speak."