Operating System - HP-UX
1829617 Members
2473 Online
109992 Solutions
New Discussion

Re: Device busy error while mounting cdrom

 
Subhas R. Reddy
Frequent Advisor

Device busy error while mounting cdrom

Folks,

I tried to mount an Oracle cdrom with pfs_mount and got device busy error, checked fuser and no processes, bounced the system and still the same error.

Installed PHKL_28060, PHKL_26450, PHCO_26449 and tried
# /usr/sbin/mount -F cdfs -e -o rr /dev/dsk/c1t1d0 /cdrom

and I am still getting the same device busy error. I have tested the cdrom drive and the hardware is OK, ioscan â funC disk shows the DVD as claimed. Any ideas???? This is a new system, no data and not in production and so bouncing is not a problem.

-Subh
Art is long and time is fleeting!
17 REPLIES 17
Michael Steele_2
Honored Contributor

Re: Device busy error while mounting cdrom


Are you in /cdrom ?
# pwd
# cd /

My pfs_mount commands are:

# pfs_mount -o xlat=unix /dev/rdsk/cXtYdZ /cdrom (* note rdsk I noticed you are using '...dsk...'. *)

# pfs_umount -c /cdrom
Support Fatherhood - Stop Family Law
Hemanth Gurunath Basrur
Honored Contributor

Re: Device busy error while mounting cdrom

Alex Lavrov
Regular Advisor

Re: Device busy error while mounting cdrom

check with lsof (lsof /cdrom) if anything uses this location.

Bill Hassell
Honored Contributor

Re: Device busy error while mounting cdrom

Make sure that /cdrom is NOT listed in /etc/fstab or at least it is commented out. Try rebooting into single user mode and mount the CD. Start with no options (the names will be in ISO9660 format, all uppercase). If that works, umount and try again using the -orr option. If that works, very likely there is a process that has been started which is looking at /cdrom. Reboot into multi-user mode and create a new mountpoint, perhaps /tmp/cd. Then try the mount again. If this works, something is opening the /cdrom directory. Change the permissions on /cdrom to 700 and owned by root. Of course, the easiest method is to download lsof and use it to determine why it is busy. Once all is working OK, you can use the undocumented option: noauto in fstab to prevent automatic mount at boot time, but still work in the simplified form (ie, mount /cdrom).


Bill Hassell, sysadmin
hyun-seok kim
Frequent Advisor

Re: Device busy error while mounting cdrom

mount -r -o cdcase /dev/dsk/c?t?d0 /cdrom
UNIX for all
Subhas R. Reddy
Frequent Advisor

Re: Device busy error while mounting cdrom

Can any one tell me where I can find the 64 bit version of lsof for HP-UX 11.11?

Thanks
Subhas
Art is long and time is fleeting!
Rajeev  Shukla
Honored Contributor

Re: Device busy error while mounting cdrom

Hi Subh,
The best thing i'll suggest you is to download the source file of lsof from either of these 2 sites.
ftp://vic.cc.purdue.edu/pub/tools/unix/lsof/
or
http://hpux.connect.org.uk/hppd/hpux/Sysadmin/lsof-4.67/

and compile it on you'r 64bit 11.11
I have done it and it works fine. Let me know if you find any problems.
Ferdie Castro
Advisor

Re: Device busy error while mounting cdrom

There could be an on-going process in the cd-rom. To check it try to do the ff commands

$mt status and it will give you output such as
Drive: HP CXXXXXX
Format:
Status: [0]
File: 0
Block: 0
this means that your cdrom drive is ok to be used else device bust will be encountered.
try to do capture of the one who uses this cdrom then kill it.
$ps -ef | grep mt
$kill -9
If both are unsuccessful, then try to reboot the machine. Hope this helps.

Cheers!
Subhas R. Reddy
Frequent Advisor

Re: Device busy error while mounting cdrom

Ferdie,

I have bounced the system several times and this should have cleared any process that were locking the cdrom. There is nothing running on the system other than OS and of course the Veritas foundation suite. This is what caused the problem in the first place. Veritas guy wanted to install a patch and I mounted the CD with pfs_mount and I committed the serious mistake of installing the patches from the CD instead of copying the patches to the /tmp and installing from there. After the patch installation the system rebooted and I could never mount any cdrom again. I hve even created a new mount point and tried to mount. It looks like some process is restarting after every reboot. What it could possibly be? I donâ t see any thing in the output of ps â ef that could imply a lock on cdrom.

I will try tomorrow what you and Bill Hassell have suggested.

Thanks,
S
Art is long and time is fleeting!
Subhas R. Reddy
Frequent Advisor

Re: Device busy error while mounting cdrom

It is very strange that my initial posting as well as my subsequent replies are showing up with some additional characters and my name is getting truncated.
Art is long and time is fleeting!
Jakes Louw
Trusted Contributor

Re: Device busy error while mounting cdrom

Kill/stop the swagentd daemon before attempting to pfs_mount.
Trying is the first step to failure - Homer Simpson
Aranzazu
Frequent Advisor

Re: Device busy error while mounting cdrom

Hello,
Check /cdrom is not mounted and thre is no one on it with:

#fuser -cu /cdrom

if the result is different of this:
/cdrom: fuser: could not find file system mounted at /cdrom.

The file system is mounted, umount it.

Check this daemons are running:
pfs_mountd
pfsd
pfs_mountd.rpc
pfsd.rpc

with:
ps -ef|grep pfs|grep -v grep

Now do:

#pfs_mount -x unix -t rrip /dev/dsk/c1t1d0 /cdrom

It should mount the CD in the correct format.

Hope this help.
Jakes Louw
Trusted Contributor

Re: Device busy error while mounting cdrom

Also try this:
1)look in /etc/mnttab or do a bdf to make sure /cdrom isn't already mounted
2)do a "mount" or "pfs_mount" without arguments to see what the system THINKS is mounted
3)created a new mount-point (/new_cdrom ?)
and use that instead!
Trying is the first step to failure - Homer Simpson
Geetha Alagappan
Regular Advisor

Re: Device busy error while mounting cdrom

Here is the 64-bit lsof for HP-UX 11.0.

Change the filename to something else and unshar it

Please assign points to everybody. Thx.

Geetha.
hercules
Michael Steele_2
Honored Contributor

Re: Device busy error while mounting cdrom

All that's left is one of two problems:

A) bad cdrom
B) wrong cd for HP-UX.

Can you read another cd?
Support Fatherhood - Stop Family Law
Subhas R. Reddy
Frequent Advisor

Re: Device busy error while mounting cdrom

HP is working on the problem and I will let you all know what they find.

Thanks for the help.
Subhas
Art is long and time is fleeting!
Subhas R. Reddy
Frequent Advisor

Re: Device busy error while mounting cdrom

The cdrom problem was caused by OS Patches installed by Veritas as I suspected. HP support recommended installing PHKL-29611, PHCO_29603 and PHCO_28693 and this has fixed the cdrom mounting problem on both Superdomes.

Subhas
Art is long and time is fleeting!