- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: Identifying tape drives
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
Forums
Discussions
Discussions
Discussions
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
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
11-17-2005 08:03 PM
11-17-2005 08:03 PM
Identifying tape drives
Since these aren't necessarily in the /dev/rmt directory, I need to walk the whole of the /dev directory recursively. So far so good. But I don't want to open every character device I find to see if it is a tape drive, so I wanted to maybe use the major number to filter the files down a bit first. This is where we actually get to the questions part of the thread :)
Q1. What are the drivers for tape/autochanger/library devices. I have a list of stape, tape0 and tape2 for tape devices, schgr for autochangers and sctl for generic SCSI nodes.
Q2. Is there a tape1 driver and if so is it still used and for what?
Q3. Can I rely on the major numbers being the same on all machines. e.g. on my B series, stape = 205, sctl = 203 etc. If I can't, is there a way programmatically (other than parsing the output of lsdev) to match the driver name with its major number?
Q4. Is there a standard set of directories under which I should find all the tape/autochanger/library devices, or is it at to the sys admins whim.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-17-2005 09:03 PM
11-17-2005 09:03 PM
Re: Identifying tape drives
2. I have not seen tape1 drives being used.
3. You can rely on major number. It remains the same. In case of different unix flavors, it will vary.
No standard set of dirs. You can create device files in any dir you want. But this is rare.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-17-2005 09:31 PM
11-17-2005 09:31 PM
Re: Identifying tape drives
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-17-2005 09:34 PM
11-17-2005 09:34 PM
Re: Identifying tape drives
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-17-2005 09:43 PM
11-17-2005 09:43 PM
Re: Identifying tape drives
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-17-2005 10:10 PM
11-17-2005 10:10 PM
Re: Identifying tape drives
Class [tape], Instance [0], H/W Path = 10.0.15.0.0.0, Driver [stape]
Class [tape], Instance [1], H/W Path = 10.0.15.0.2.0, Driver [spt]
Class [tape], Instance [2], H/W Path = 10.0.15.0.1.0, Driver [stape]
Class [tape], Instance [3], H/W Path = 10.0.15.0.4.0, Driver [stape]
But if I use ioscan only 10.0.15.0.4.0 actually has a tape drive on it, the other h/w paths don't exist.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-17-2005 10:23 PM
11-17-2005 10:23 PM
Re: Identifying tape drives
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-17-2005 10:28 PM
11-17-2005 10:28 PM