- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: Getting Status of a DLT Drive
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
тАО09-22-2000 09:18 AM
тАО09-22-2000 09:18 AM
fbackup(3041): output file /dev/rmt/1m is currently being used and not available
I suspect that the drive is doing some work on the tape when it is loaded. Is there a way I can query the drive controller for a status before I launch the fbackup program ?
Thanks,
Chris
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-22-2000 09:23 AM
тАО09-22-2000 09:23 AM
Re: Getting Status of a DLT Drive
Or the mc command
Depends on version
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-22-2000 10:19 AM
тАО09-22-2000 10:19 AM
Re: Getting Status of a DLT Drive
I checked both commands mt and mc (I have both on my system). None of them really gives me the status i need. Although, mc -r provides what man call a status of a slot (FULL, EMPTY,NONE).
What i really need to query is if the drive is actually doing someting or if it is in ready mode.
My version is HP-UX 10.20
Thanks,
Chris
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-22-2000 10:23 AM
тАО09-22-2000 10:23 AM
SolutionYou can put this in a shell loop until success.
You are right about the DLT drive, it can spend quite a time after loading a tape (especially a new one).
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-22-2000 10:48 AM
тАО09-22-2000 10:48 AM
Re: Getting Status of a DLT Drive
If you were to do 'man mt' does anything come up?
The syntax would be something like 'mt -t /dsv/rmt/0m stat'
replace the 0m with whatever the the tape device would be.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-22-2000 11:14 AM
тАО09-22-2000 11:14 AM
Re: Getting Status of a DLT Drive
It also shows in /usr/bin/mt,
yes, 'man mt' come up. But there are no stat command option in the documentation.
if i run 'mt -t /dev/rmt/1m stat' the message i get is the following:
mt: unknown command "stat"
Thanks for your help, I appreciate.
Chris
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-22-2000 11:23 AM
тАО09-22-2000 11:23 AM
Re: Getting Status of a DLT Drive
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-22-2000 11:32 AM
тАО09-22-2000 11:32 AM
Re: Getting Status of a DLT Drive
I just checked this on a K570 running 10.20. First, the 'stat' option isn't documented.
On EITHER a DSS or DLT drive the messages returned from the operation: '/usr/bin/mt -t /dev/rmt/0m stat' are as follows (by case):
1. No tape -> /dev/rmt/0m: no such device or address
2. Tape in but not write-enabled -> /dev/rmt/0m: permission denied
3. Tape in and is write-enabled -> /Status 1 failed: invalid argument
In EVERY case the return code is one (1)
Clearly you can't rely on the exit code in 10.20. I suppost you could capture the error messages and act based on those, but this sure seems like a kludge. Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-29-2000 04:42 AM
тАО09-29-2000 04:42 AM
Re: Getting Status of a DLT Drive
1- mt stat is included in a patch available on ITRC
2- Use stm to get status of drive. also you can automatize this job. See : pam800200009131 Want to take a quick look at your Disk error Logs?
on HP Support Information Digests
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-29-2000 06:33 AM
тАО09-29-2000 06:33 AM
Re: Getting Status of a DLT Drive
I searched for pam800200009131, using the SEARCH in the ITRC. I might not looking at the right place (I'm a rookie in the marvelous world of HP!). Can you tell
me where to look ?
Basically what i want to do, is to make sure the tape drive is ready before i initiate the fbackup; otherwise i keep getting an error message telling me that the tape drive is
currently in use by another process, which is not true (i figured that the drive is still
winding the tape at that point of time).
Thanks everyone for your help!