- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Tape eject from command prompt!!!
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
09-27-2008 05:35 PM
09-27-2008 05:35 PM
Tape eject from command prompt!!!
Hi all,
How to eject the tape from command prompt in HP-UX?? my tape has been stuck inside the tape drive and not coming out by pressing the eject buttion.
Rgds
Yogi
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-27-2008 05:47 PM
09-27-2008 05:47 PM
Re: Tape eject from command prompt!!!
mt -f tape-device offl
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-27-2008 05:58 PM
09-27-2008 05:58 PM
Re: Tape eject from command prompt!!!
Well i ve tried this option already but it is showing device busy!!
gjprod # mt -f /dev/rmt/0mnb offl
/dev/rmt/0mnb: Device busy
rgds
Yogi
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-28-2008 05:41 AM
09-28-2008 05:41 AM
Re: Tape eject from command prompt!!!
Can you get fuser or lsof to tell you who's
using the device? (You might need to check
all the related devices, too.)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-28-2008 08:39 AM
09-28-2008 08:39 AM
Re: Tape eject from command prompt!!!
try this
#mt â t /dev/rmt/Xmn offl
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-28-2008 05:57 PM
09-28-2008 05:57 PM
Re: Tape eject from command prompt!!!
Bill Hassell, sysadmin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-28-2008 08:43 PM
09-28-2008 08:43 PM
Re: Tape eject from command prompt!!!
If your drive path is /dev/rmt/0mn
then give
#mt off
it is in different path then
#mt /dev/rmt/1mn off
Suraj
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-28-2008 09:28 PM
09-28-2008 09:28 PM
Re: Tape eject from command prompt!!!
This may not solve the problem, but likely you are able to eject the tape.
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
09-29-2008 07:10 AM
09-29-2008 07:10 AM
Re: Tape eject from command prompt!!!
> Hold down the eject button [...]
Might this not depend on the type of tape
drive? Has anyone said which kind of tape
drive this is?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-29-2008 07:13 AM
09-29-2008 07:13 AM
Re: Tape eject from command prompt!!!
Another process (a backup) could hang and never come back ... this can keep the device "busy".
Check with fuser.
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
09-29-2008 01:11 PM
09-29-2008 01:11 PM
Re: Tape eject from command prompt!!!
The hardware is trying but it cannot complete the operation internally (the tape is jammed). So the driver can't get back any response and is therefore busy. Unfortunately there is no way to tell whether it is busy with a program or busy internally. Stuck tapes are not uncommon in older drives or drives that have been heavily used and not cleaned regularly. If you could look inside, the tape has likely wrapped itself around the recording head or drive rollers.
Bill Hassell, sysadmin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-29-2008 02:51 PM
09-29-2008 02:51 PM
Re: Tape eject from command prompt!!!
Yow. Ask me why I still use VMS. With a
SHOW DEVICE /FULL command, I can see which
process owns the tape drive, and what it's
doing. And if I do it twice, I can see if
the "Operations completed" count is stuck or
rising.
And the device driver can be expected to
throw an error if the tape gets stuck, too.
Please pardon my incredulity if a gross
hardware error really can't be detected as
such on an HP-UX system.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-29-2008 09:39 PM
09-29-2008 09:39 PM
Re: Tape eject from command prompt!!!
Using STM or some such may detect it?
Also there is "mt -f tape-device status".
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-30-2008 06:27 AM
09-30-2008 06:27 AM
Re: Tape eject from command prompt!!!
try using st command, usefull for shared tape
Try the following commands:
st -f /dev/rmt/0m -s to see the status
st -f /dev/rmt/0m -r to reclaim the tape
Not sure it would work, but i think it worth a try, you cannot do more damages :-)
hope it helps
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-15-2009 01:32 AM
09-15-2009 01:32 AM