cancel
Showing results for 
Search instead for 
Did you mean: 

pfs_umount

tarek_3
Frequent Advisor

pfs_umount

hi guys
i'am trying to install oracle 8.1 on my unix server OS 11i.
i use pfs_mount to mount the CD:
nohup pfs_umountd &
nohup pfsd &
pfs_mount /dev/dsk/c0t0d0 /cdrom

but when i need to umount the CD to put the second one using "pfs_umount /cdrom ",the system give me the following message "Device busy"
the following patchs are installed:
PHCO_24777
PHNE_263888
PHCO_27434
PHCO_25452
PHNE_24910
PHSS_26560
PHSS_26558
any help
10 REPLIES
John Poff
Honored Contributor

Re: pfs_umount

Hi,

Usually when that happens to me our local DBA has a shell running and they are sitting somewhere inside of the /cdrom directory tree. Make sure everybody is cd'd out of the /cdrom tree and try pfs_umount again.

JP
Robert-Jan Goossens
Honored Contributor

Re: pfs_umount

Hi,

check the cdrom mountpoint
#fuser -c /cdrom
or SD_CDROM

Robert-Jan.
John Dvorchak
Honored Contributor

Re: pfs_umount

From another telnet/console session run fuser on the mount point /cdrom. Make sure that you are not currently in that directory tree before issuing the command. With fuser you will see what processes are currently using /cdrom and those must be terminated before umounting the device.

# fuser -u /cdrom

will let you see the PID and the username.

# fuser -ku /cdrom

will kill all of the PID's using /cdrom

Good luck
If it has wheels or a skirt, you can't afford it.
John Payne_2
Honored Contributor

Re: pfs_umount

pfs mount is evil that way. HP has brought out some patches to end the use of pfs mount, if that helps. One for 11i was just superceeded by PHKL_28025. (It is only a 1 star patch, though.)

You need PHKL_26520 (the one with the warning. You should read the warning and then decide if you want to use the 1 star new patch...) and PHKL_26269. This will allow you to stop using pfs mount.

Hope it helps
John
Spoon!!!!
Wodisch
Honored Contributor

Re: pfs_umount

Hi,

that's one of our FAQs, really ;-)

Usually some other shell is "sitting" (cd) in/on a directory of the mounted CD-ROM (maybe the root-shell having mounted it?).
And then some "traditionalists" do a "cd" into the mounted CD-ROM as user "oracle" themselfs.

Both is not needed any more and is actually wrong...

If it's not that, then try using the dialog box of the Java-Installer to navigate down to the root-directory.
Then "pfs_umount" and "pfs_mount" from your root-shell. Finally navigate back to the mount-directory in the Java-Installer.

FWIW,
Wodisch
Steven E. Protter
Exalted Contributor

Re: pfs_umount

My two cents.

Every time this happened to me someone had a session open on the cd.

Usually that someone was me.

When I ran the fuser -cuk /cdom command my terminal session would get clipped, proving myself the culprit.

I'm attaching my pfscontrol script, because it helps me avoid other issues with pfs_mount

Its a start stop script, but will work in /usr/contrib/bin or wherever you store admin scripts.

P-man

Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Julio Yamawaki
Esteemed Contributor

Re: pfs_umount

When you start Oracle install with runInstaller, (oracle user), you must start by typing /cdrom/runInstaller, because, if you go to /cdrom and start runInstaller, oracle user will be using /cdrom, causing "device busy".
Jose Mosquera
Honored Contributor

Re: pfs_umount

Hi,

To mount CD:
nohup /usr/sbin/pfs_mountd &
hohup /usr/sbin/pfsd &
nohup /usr/sbin/pfs_mount -x unix /dev/dsk/[c?t?d?] /cdrom &

To umount CD:
nohup /usr/sbin/pfs_umount /dev/dsk/[c?t?d?] &

Pls note that is "pfs_umount" and not "ps_mount" to **umount** your media..!

To umount you needs indicate the device name instead of the mount point!

Rgds.
SVTGanesh
Occasional Advisor

Re: pfs_umount

Hi
Seems you are running the runinstaller from the /cdrom/XXX/???/.runinstaller
try running from ouside with fulpath, Hope may help

thanks
SVTGanesh
SVTGanesh
Yogeeraj_1
Honored Contributor

Re: pfs_umount

hi,

please find attached one of my favourite scripts for both mounting and unmounting Oracle CDs.

pfsmcd.sh

This should eliminate your problems for ever ;)

Hope this helps!

Best Regards
Yogeeraj
No person was ever honoured for what he received. Honour has been the reward for what he gave (clavin coolidge)