- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- open on tape device file failing with error "No su...
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
тАО05-18-2010 01:33 AM
тАО05-18-2010 01:33 AM
I have a tape library with tape drives and there is no volume loaded in any of these drives. When I issue a open command on one of the device file of a tape drive , I'm getting an error saying "No such device or address".
And the mt output says that "the tape media is not present"
Drive: IBM ULTRIUM-TD3
Format:
Status: Tape media is not present
File: 0
Block: 0
But, "ioscan -funC tape" is listing the device file and corresponding tape drive information
tape 75 ******* stape CLAIMED DEVICE IBM ULTRIUM-TD3
/dev/rmt/75m /dev/rmt/75mn /dev/rmt/c13t3d3BEST /dev/rmt/c13t3d3BESTn
/dev/rmt/75mb /dev/rmt/75mnb /dev/rmt/c13t3d3BESTb /dev/rmt/c13t3d3BESTnb
And When I load a volume in to one of the tape drives and issue a open command, its working fine and i could use any ioctl on that tape device.
So, Is it like we can do an open on a tape device file only when a volume is loaded in the tape drive. And also how is iostat giving us the information even when there is no volume loaded in the tape drive .
Can someone please help me on this
Thanks,
Naveen
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-18-2010 01:46 AM
тАО05-18-2010 01:46 AM
Re: open on tape device file failing with error "No such device or address"
It is the expected behaviour. If I try to rewind a tape, and the tape is unloaded, I get:
HP:/root#mt rew
/dev/rmt/0mnb: No such device or address
Regards,
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-18-2010 02:05 AM
тАО05-18-2010 02:05 AM
Re: open on tape device file failing with error "No such device or address"
Thanks for the reply. But, How does ioscan able to give me the device class , driver, vendor, product names even though the tape is not loaded.
Is it using an ioctl call to get the above required information. If not can you let me know the C functions its using to get the required information on HPUX.
Thanks,
Naveen.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-18-2010 02:11 AM
тАО05-18-2010 02:11 AM
SolutionFrom man ioscan:
" ioscan scans system hardware, usable I/O system devices, or kernel I/O system data structures as appropriate, and lists the results. For each hardware module on the system, ioscan displays by default the hardware path to the hardware module, the class of the hardware module, and a brief description."
There is no need that tape is mounted when perform an ioscan. I'm afraid I can't help you about the "C functions"
Regards,
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-24-2010 11:11 PM
тАО05-24-2010 11:11 PM
Re: open on tape device file failing with error "No such device or address"
and issue a REQUEST SENSE scsi command
it will answer if a tape is present, its format and position
http://www-01.ibm.com/support/docview.wss?uid=ssg1S7001045&aid=1
will give you sens format answer ( page 113)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-25-2010 04:05 AM
тАО05-25-2010 04:05 AM
Re: open on tape device file failing with error "No such device or address"
This is read from the tape drive itself, for any tape related operation a tape must be loaded. Sounds obvious.
Hope this helps!
Regards
Torsten.
__________________________________________________
There are only 10 types of people in the world -
those who understand binary, and those who don't.
__________________________________________________
No support by private messages. Please ask the forum!
If you feel this was helpful please click the KUDOS! thumb below!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-25-2010 05:34 AM
тАО05-25-2010 05:34 AM