- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- /dev/rmt/0mn: Device busy
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
08-05-2010 11:23 AM
08-05-2010 11:23 AM
/dev/rmt/0mn: Device busy
When I try to use the device or check it's status, it tells me device busy, even though the device does not show up in any running processes or in fuser.
How can I release this device so I can use it?
rmgjt-ap#/opt/sybase/ASE-15_0/install> mt -f /dev/rmt/0mn status
on tape open: Device busy
rmgjt-ap#/opt/sybase/ASE-15_0/install> ps -ef | grep 0mn
root 10657 7732 0 13:22:42 pts/0 0:00 grep 0mn
rmgjt-ap#/opt/sybase/ASE-15_0/install> fuser /dev/rmt/0mn
/dev/rmt/0mn:
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-05-2010 07:40 PM
08-05-2010 07:40 PM
Re: /dev/rmt/0mn: Device busy
This link may help you..
http://forums11.itrc.hp.com/service/forums/questionanswer.do?threadId=799634
Are there any process running like tar,dd , Cross check for any backup software running in the server.
Cross check iostat outputs..
Regards
Vipin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-06-2010 03:09 AM
08-06-2010 03:09 AM
Re: /dev/rmt/0mn: Device busy
Install "lsof" utility.
Sample use:
# lsof /dev/rmt/35mn
COMMAND PID USER FD TYPE DEVICE SIZE/OFF NODE NAME
bma 9361 root 10u CHR 205,0xdb7340 0x929f4000 8558 /dev/rmt/35mn
rgs,
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-06-2010 06:32 AM
08-06-2010 06:32 AM
Re: /dev/rmt/0mn: Device busy
rmgjt-ap#/opt/omni> ps -ef | grep omni
root 5369 5591 0 08:28:07 pts/3 0:00 grep omni
Where do I grab lsof from? I googled lsof for HP-UX, but there appears to be just old links that don't work anymore.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-06-2010 06:42 AM
08-06-2010 06:42 AM
Re: /dev/rmt/0mn: Device busy
There are other device files related to this device too (not only 0mn), see
# ioscan -fnkCtape
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
08-06-2010 08:41 AM
08-06-2010 08:41 AM
Re: /dev/rmt/0mn: Device busy
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-06-2010 08:43 AM
08-06-2010 08:43 AM
Re: /dev/rmt/0mn: Device busy
gunzip it (e.g. to /tmp) and run
# swinstall -s /tmp/lsof-4.83/lsof-4.83-ia64-11.31.depot
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
08-06-2010 09:29 AM
08-06-2010 09:29 AM
Re: /dev/rmt/0mn: Device busy
rmgjt-ap#/tmp> /usr/local/bin/lsof /dev/rmt/0mn
lsof: FATAL: pst_stream_size should be: 672; is 72
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-06-2010 09:57 AM
08-06-2010 09:57 AM
Re: /dev/rmt/0mn: Device busy
http://hpux.connect.org.uk/hppd/cgi-bin/wwwtar?/hpux/Sysadmin/lsof-4.83/lsof-4.83-src-11.11.tar.gz+lsof-4.83/HPUX.Install+text
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
08-06-2010 01:10 PM
08-06-2010 01:10 PM
Re: /dev/rmt/0mn: Device busy
rmgjt-ap#/tmp> /usr/local/bin/lsof /dev/rmt/0mn
rmgjt-ap#/tmp>
Next step??
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-06-2010 01:20 PM
08-06-2010 01:20 PM
Re: /dev/rmt/0mn: Device busy
# ioscan -fnkCtape
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
08-09-2010 07:30 AM
08-09-2010 07:30 AM
Re: /dev/rmt/0mn: Device busy
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-09-2010 07:54 AM
08-09-2010 07:54 AM
Re: /dev/rmt/0mn: Device busy
rmgjt-ap#/tmp> /usr/local/bin/lsof /dev/rmt/0mn
rmgjt-ap#/tmp> /usr/local/bin/lsof /dev/rmt/0m
rmgjt-ap#/tmp> /usr/local/bin/lsof /dev/rmt/0mnb
rmgjt-ap#/tmp> /usr/local/bin/lsof /dev/rmt/c3t1d0BEST
rmgjt-ap#/tmp> /usr/local/bin/lsof /dev/rmt/c3t1d0BESTb
rmgjt-ap#/tmp> /usr/local/bin/lsof /dev/rmt/c3t1d0BESTn
rmgjt-ap#/tmp> /usr/local/bin/lsof /dev/rmt/c3t1d0BESTnb
rmgjt-ap#/tmp> mt -f /dev/rmt/0mn status
on tape open: Device busy
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-09-2010 08:32 AM
08-09-2010 08:32 AM
Re: /dev/rmt/0mn: Device busy
Did this setup ever work? If so, you may simply have a defunct tape drive.
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-09-2010 08:36 AM
08-09-2010 08:36 AM
Re: /dev/rmt/0mn: Device busy
At that time, I was running a database backup through Data Protector. It got interrupted - the database crashed - and left the device in a hung state.
I'm talking to HP technical support and they're telling me the only option is to reboot. This isn't an option for us, and to be honest, I would think there should be a cleaner solution for a stable, Unix OS like HP-UX.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-09-2010 01:39 PM
08-09-2010 01:39 PM
Re: /dev/rmt/0mn: Device busy
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-09-2010 03:34 PM
08-09-2010 03:34 PM
Re: /dev/rmt/0mn: Device busy
> cleaner solution for a stable, Unix OS like
> HP-UX.
See where optimism gets you?
One possibility would be to change the SCSI
ID on the tape drive (to some safe, currently
unused-on-this-bus value), then go through
the OS-specific SCSI-device-discovery
procedure, and finally relax and enjoy using
your "new" tape drive. (Until it goes nuts,
too.)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-09-2010 10:32 PM
08-09-2010 10:32 PM
Re: /dev/rmt/0mn: Device busy
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-10-2010 07:31 AM
08-10-2010 07:31 AM
Re: /dev/rmt/0mn: Device busy
rariasn: thanks for the documentation link
steven: thanks for the scsi suggestion, i'll try it.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-10-2010 07:52 AM
08-10-2010 07:52 AM
Re: /dev/rmt/0mn: Device busy
rmgjt-ap#/local/data_protector> ioscan -fnC tape
Class I H/W Path Driver S/W State H/W Type Description
=======================================================================
tape 0 0/0/0/3/1.1.0 stape NO_HW DEVICE HP Ultrium 2-SCSI
/dev/rmt/0m /dev/rmt/c3t1d0BEST
/dev/rmt/0mb /dev/rmt/c3t1d0BESTb
/dev/rmt/0mn /dev/rmt/c3t1d0BESTn
/dev/rmt/0mnb /dev/rmt/c3t1d0BESTnb
tape 3 0/0/0/3/1.2.0 stape CLAIMED DEVICE HP Ultrium 2-SCSI
/dev/rmt/3m /dev/rmt/c3t2d0BEST
/dev/rmt/3mb /dev/rmt/c3t2d0BESTb
/dev/rmt/3mn /dev/rmt/c3t2d0BESTn
/dev/rmt/3mnb /dev/rmt/c3t2d0BESTnb
rmgjt-ap#/local/data_protector> mt -f /dev/rmt/0mn status
on tape open: Device busy
rmgjt-ap#/local/data_protector> mt -f /dev/rmt/3mn status
on tape open: No such device or address
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-10-2010 09:12 AM
08-10-2010 09:12 AM
Re: /dev/rmt/0mn: Device busy
But when I run scsimgr cold_bdr here's what it says:
scsimgr: ERROR: Cannot open pass-through device for /dev/rtape/tape1_BEST : No such device or address.
The LUN or all its I/O paths may be disabled.