Operating System - HP-UX
1834709 Members
2705 Online
110069 Solutions
New Discussion

patches eliminate pfs_mount...

 
James Ellis_1
Super Advisor

patches eliminate pfs_mount...

I have the three patches installed, and I am able to do the mount -F cdfs -o rr /dev/dsk/c0t1d0 /cdrom

However, when I take the Oracle CD out, and put another Oracle CD in, I try to mount it and get this message:

/dev/dsk/c0t1d0: Device Busy

I tried to umount the /cdrom and rmdir /cdrom and then do this

insert the Oracle CD
mkdir /cdrom
mount -F cdfs -o rr /dev/dsk/c0t1d0 /cdrom

and still get Device Busy. I have looked at all of the previous posts on this issue, and all of the recommendation does not help me. Anyone have this problem? I know I should unmount /cdrom before removing the Oracle CD. But should I rmdir /cdrom?

fuser -cu /cdrom shows its not mounted and a bdf shows its not mounted...but I still get a device busy.

Thanks.
"In the middle of difficulty lies opportunity" -Einstein
18 REPLIES 18
Pete Randall
Outstanding Contributor

Re: patches eliminate pfs_mount...

James,

Did you unmount it before removing the CD? You shouldn't be able to open the drive without unmounting it but that's what it sounds like.


Pete

Pete
Sridhar Bhaskarla
Honored Contributor

Re: patches eliminate pfs_mount...

Hi James,

I am surprized it let you take out the CD from the drive while it was still mounted on the system. If you did unmount the CD before taking it out, then I suspect a problem with the drive. Either re-insert the CD or try with a different CD, mount it and see if it is not a problem with the mount point.

Do you have an entry in your /etc/mnttab file for the CD?

-Sri
You may be disappointed if you fail, but you are doomed if you don't try
James Ellis_1
Super Advisor

Re: patches eliminate pfs_mount...

Yes, I unmounted it before removing the CD. No, I don't have an entry in /etc/mnttab. Should I have an entry? what would the line be? Did not think this would be necessary for the cdfs mounting?

Thanks.
"In the middle of difficulty lies opportunity" -Einstein
Sridhar Bhaskarla
Honored Contributor

Re: patches eliminate pfs_mount...

Hi (Again),

mnttab gives you the information you may not see in your bdf. Since you unmounted it, I do not suspect any problems with mount command itself.

Try re-inserting the CD or another one. Mount it and see if it works. If so, then CD may be bad.

-Sri
You may be disappointed if you fail, but you are doomed if you don't try
James Ellis_1
Super Advisor

Re: patches eliminate pfs_mount...

Sri,

I did this on another server, did not have a bit of a problem. Both servers have the three patches needed to get around the pfs_mount problem. Could there be problems with the CD drive? Any utility program I can use to see if the CD Drive is problematic?

Thanks.
"In the middle of difficulty lies opportunity" -Einstein
RAC_1
Honored Contributor

Re: patches eliminate pfs_mount...

lsof /dev/dsk/c0t1d0

Get lsof from
http://hpux.connect.org.uk

Anil
There is no substitute to HARDWORK
Bill Hassell
Honored Contributor

Re: patches eliminate pfs_mount...

Failure of the 3 RockRidge patches seems to be somewhat common. It won't be a CDROM drive problem as the directory structures (there are several) are unknown to the drive. It is likely another patch has somehow broken the -orr functionality. I will persue this with HP.


Bill Hassell, sysadmin
Jdamian
Respected Contributor

Re: patches eliminate pfs_mount...

Have you tried to mount on a different directory ?
Sridhar Bhaskarla
Honored Contributor

Re: patches eliminate pfs_mount...

Hi James,

CD drive may not be bad. You can confirm it by mounting a different CD.

-Sri
You may be disappointed if you fail, but you are doomed if you don't try
eran maor
Honored Contributor

Re: patches eliminate pfs_mount...

Hi James

i know this problem , it happen also to me and i didnt see any process or file open on the cd .

my solution was do reboot the system and to delete the /cdrom and recreate the file again and do the process of the install again , i know that it is now a good solution but after spending 4 hours trying to trubleshoot it i gave up .

you all ready said that you try to find a process open on the files , this can be the only thing that can make the problem .

you can try also to use the command fuser -k /cdrom or also to the device file that you see in the bdf .

good luck
love computers
James Ellis_1
Super Advisor

Re: patches eliminate pfs_mount...

Sri, I am able to mount a different CD, no problems issueing the mount /dev/dsk/c0t1d0 /cdrom command.

Eran, The server reboots on a weekly basis on Sundays. This morning, I checked and the server did reboot, and doing a ps -ef brings up this process " /usr/sbin/rpc.mountd " and I am wonderign why did this automatically come up after the reboot. This appears to be the cause of the problem, because one other HP server rebooted at the same time and did not have this process running. Anyone know why/how this process got started up, and running from /usr/sbin?

I tried mounting the CD with the mount -F cdfs -o rr /dev/dsk/cxtxdx /cdrom command, and still got the error msg: Device busy.

I think this error message is showing up because the rpc.mountd daemon is accessing the device?

Thanks.
"In the middle of difficulty lies opportunity" -Einstein
Bill Hassell
Honored Contributor

Re: patches eliminate pfs_mount...

mountd is the NFS daemon so it has nothing to do with the CDROM *unless* you have exported the CDROM in the file: /etc/exports. Take the CDROM out of /etc/exports for now if it is. Then create a different mountpoint like /cdrom1 and mount to that location. Check also that /eetc/fstab does *not* have /dev/dsk/c0t1d0 or /cdromn in it. fstab will *always* try to mount everything in the file unless the noauto option is used.


Bill Hassell, sysadmin
James Ellis_1
Super Advisor

Re: patches eliminate pfs_mount...

Bill,

Thanks for your reply. So far, I have not been able to find any reason why I keep getting the "device busy: cdrom" error message.

I noticed you said that failure of the three Rockbridge Patches seems to be somewhat common...another patch has broken the -o rr functionality. This is the first time I heard of a failure with the three patches. What was the recommendation to remedy this?

I am not having a problem with one of my servers, but with two of them I keep getting "device busy". After the servers were rebooted yesterday, I was hoping the problem went away, but not so!

Have you talked to HP on this, like you said you would? I don't presume my configuration files are the problem? /etc/fstab, /etc/rc.config.d/nfsconf and such?

Thanks.
"In the middle of difficulty lies opportunity" -Einstein
Bill Hassell
Honored Contributor

Re: patches eliminate pfs_mount...

The 3 patches must all be instal;led. If any are missing, the -orr option fails silently (doesn't do anything). The device busy is unrelated. As mentioned, try mounting to another mountpoint. mount is a little cryptic by not telling you what is busy, the source or the destination. Implicitly we can assume the destination, but to prove it, create another mountpoint and use that. If it works, then /cdrom is busy. You can seldom tell whay a mountpoint is busy using fuser--download lsof and you'll find the problem, As mentioend, NFS (and/or automounter) may be the problem.


Bill Hassell, sysadmin
Scott Mitchell
Advisor

Re: patches eliminate pfs_mount...

James,

I suspect the 'device busy' problem occurs because you are trying to install Oracle and have to change CDs. If you are running the install, the installation app "owns" the CD device and will not allow a 'mount -F' of the drive once the install has started. I highly recommend using pfs_mount as you can mount/unmount/remount without the problem, or even better, if you have enough disk space, mount the CDs and copy them to disk ( ../disk1, ../disk2, etc.) then run the install from the disk copy.
Scott Mitchell
Advisor

Re: patches eliminate pfs_mount...

James,

One clarification to my previous post - when running the Oracle install, ensure you are not in the directory where the CD is mounted (otherwise you will not be able to 'pfs_umount') - run the install from "/" by giving the full path to the install executable, i.e., for Oracle 8i: # /cdrom/runInstaller
Aisha
New Member

Re: patches eliminate pfs_mount...

I am currently experiencing the same problem. I first tried the mount -F cdfs /dev/dsk/c1t3d0 /dvdrom. I then created an entry in the /etc/fstab file. The device file "c1t3d0" was symbolically linked to /dev/dsk/cdrom so I deleted this file. Then I tried to use SAM(/usr/sbin/sam) interface to mount it(I used this because this utility makes the directory for mount, mounts the drive and makes an entry in /etc/fstab and has a log that I can review) but this returned the the error message "device busy".
Bill Hassell
Honored Contributor

Re: patches eliminate pfs_mount...

The only way to track down the device busy message will be to create a dummy mountpoint (perhaps /mnt1) then explicitly mount to that location so you bypass /etc/fstab (mount /dev/dsk/c1t2d0 /mnt1). If you still get the message, then something may have locaked the devicefile. Use fuser for both drivers:

fuser /dev/dsk/c1t2d0
fuser /dev/rdsk/c1t2d0

and if neither shows any processes, get a copy of lsof which will definitely find the problem process(es). Make sure that PFS isn't running.


Bill Hassell, sysadmin