- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - Linux
- >
- Re: How to find whether tape drive is available or...
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Forums
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-13-2009 06:55 AM
тАО04-13-2009 06:55 AM
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.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-13-2009 07:23 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-13-2009 09:01 AM
тАО04-13-2009 09:01 AM
Re: How to find whether tape drive is available or not
use
#dmesg | grep tape
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-13-2009 10:56 AM
тАО04-13-2009 10:56 AM
Re: How to find whether tape drive is available or not
-uvk
Like it or worked !! Click kudos !!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-14-2009 01:12 AM
тАО04-14-2009 01:12 AM
Re: How to find whether tape drive is available or not
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)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-14-2009 03:17 AM
тАО04-14-2009 03:17 AM
Re: How to find whether tape drive is available or not
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