Operating System - HP-UX
1753730 Members
4792 Online
108799 Solutions
New Discussion юеВ

/dev/rmt/0mn: Device busy

 
80skeys
Frequent Advisor

/dev/rmt/0mn: Device busy

rx8640 running HP-UX 11.31 with an Ultrium II scsi tape drive attached directly to the back of the server.

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:
20 REPLIES 20
Vipin Kumar
Occasional Advisor

Re: /dev/rmt/0mn: Device busy

Hi,

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
rariasn
Honored Contributor

Re: /dev/rmt/0mn: Device busy

Hi,

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,
80skeys
Frequent Advisor

Re: /dev/rmt/0mn: Device busy

Data Protector is installed, however there are no omni related processes running:

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.
Torsten.
Acclaimed Contributor

Re: /dev/rmt/0mn: Device busy

http://hpux.connect.org.uk/hppd/hpux/Sysadmin/lsof-4.83/


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!   
80skeys
Frequent Advisor

Re: /dev/rmt/0mn: Device busy

I downloaded the lsof*gz file to my server. I'm not experienced with using software depots on HP. Can you give me a set of instructions for installing this software?
Torsten.
Acclaimed Contributor

Re: /dev/rmt/0mn: Device busy

Download http://hpux.connect.org.uk/ftp/hpux/Sysadmin/lsof-4.83/lsof-4.83-ia64-11.31.depot.gz

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!   
80skeys
Frequent Advisor

Re: /dev/rmt/0mn: Device busy

Successful install, but the command does not work:

rmgjt-ap#/tmp> /usr/local/bin/lsof /dev/rmt/0mn
lsof: FATAL: pst_stream_size should be: 672; is 72
Torsten.
Acclaimed Contributor

Re: /dev/rmt/0mn: Device busy

maybe this helps:

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!   
80skeys
Frequent Advisor

Re: /dev/rmt/0mn: Device busy

I installed the 11.23 version of lsof and this works. I tested it on /tmp and it works. When I run it on the tape device, it shows nothing is using it:

rmgjt-ap#/tmp> /usr/local/bin/lsof /dev/rmt/0mn
rmgjt-ap#/tmp>


Next step??