System Administration
cancel
Showing results for 
Search instead for 
Did you mean: 

How to find whether tape drive is available or not

 
SOLVED
Go to solution
Highlighted
Super Advisor

How to find whether tape drive is available or not

Hi

There is Redhat and Suse linux are available in my environment.

Pls tell me how to find the whether tape drives available or not available.
5 REPLIES 5
Highlighted
Respected Contributor
Solution

Re: How to find whether tape drive is available or not

Hi Senthil,

You can check it by

#dmesg | grep tape

Rgds//
Taifur
Highlighted
Respected Contributor

Re: How to find whether tape drive is available or not

hi
use
#dmesg | grep tape
Highlighted
Trusted Contributor

Re: How to find whether tape drive is available or not

I would also check #cat /proc/scsi/scsi; to find out if system is seeing any tape drives and them #mt -f status;

-uvk
-------------------------------------------
Like it or worked !! Click kudos !!
Highlighted
Respected Contributor

Re: How to find whether tape drive is available or not

Determining the SCSI id (Linux)


Check the output of dmesg to find out what SCSI channel number is used for each connection.

To find out the SCSI IDs in use on each channel, execute
# cat /proc/scsi/scsi


Output show...Attached devices:

Host: SCSI0 Channel:00 Id:00 Lun:00
Vendor: HP Model ------------
Type: Direct-Access ANSI SCSI Revision 02



To see the device drivers loaded currently, execute an lsmod command
#lsmod

Module Size Usedby

st 28434 0 (This is the tape driver which shows that the tape driver is loaded. )

ncr53c8xx 52333 1 (This is a SCSI chipset driver for the LSI Logic family of HBAs)

aic7xxx 12312 2 (This is a SCSI chipset driver for the Adaptec 7xxx chipset family)


For HP Online Case Logging-->http://support.openview.hp.com/
Highlighted
Valued Contributor

Re: How to find whether tape drive is available or not

Assuming a tape driver is present
any drives will have associated devices:

/dev/st0
/dev/st1..

E.g. to test if a tape drive is online:

mt -f /dev/st3 status 2> /dev/null 1> /dev/null
if test $? -ne 0
then
echo "Drive is offline"
fi