Operating System - HP-UX
1834387 Members
2451 Online
110066 Solutions
New Discussion

problem with unmounting cdrom (pfs_mount)

 
bhavin asokan
Honored Contributor

problem with unmounting cdrom (pfs_mount)

hi,
problem with unmounting cdrom mounted by pfs_mount.
i am installing oracle on my servers.

the procedure i have done is as follows.

#nohup /usr/sbin/pfs_mountd &
#nohup /usr/sbin/pfsd &

the commands start the processes

/usr/sbin/pfs_mountd
pfs_mountd.rpc
/usr/sbin/pfsd
pfsd.rpc

#pfs_mount /dev/rdsk/c1t1d0 /cdrom

then i started oracle installation.after first
CD i gave
#pfs_umount /cdrom
it is giving /cdrom busy. but the same procedure is working with another server.what may be the problem.

thanks,

6 REPLIES 6
Simon Hargrave
Honored Contributor

Re: problem with unmounting cdrom (pfs_mount)

Try killing your pfsd and pfs_mountd processes. These can sometimes get theirselves in a knot, and need a good booting ;)
bhavin asokan
Honored Contributor

Re: problem with unmounting cdrom (pfs_mount)

i tried by killing the processes .
but the 'pfsd.rpc' process is not getting killed.
after rebooting i repeated the same procedure but the problem remains.

because of oracle installion requires insertion of cd's one by one and other instances are running on server i can't reboot the server everytime

regds,
Robert-Jan Goossens
Honored Contributor

Re: problem with unmounting cdrom (pfs_mount)

Hi,

http://mirrors.develooper.com/hpux/

My CD-ROM doesn't show what I expect
It can be an Oracle CD-ROM, or a CD created on Windows, or whereever they used Rock Ridge extensions. Long names are truncated or show upper case only. Oracle tells you to use pfs_mount.

Do not use pfs_mount!. Install the Rock-Ridge extension patches instead and never worry about these problems. For HP-UX 11.00 you will need forget all about PFS and install PHKL_26448 (now superceded by PHKL_28060), PHCO_26449, and PHKL_26450 to have HP-UX recognize those file systems automatically on mount! For HP-UX 11.11 (11i) you need PHCO_25841, PHKL_26269, and PHKL_25760 (now superceded by PHKL_28025).

No need thereafter to use -o cdfs to mount anymore, provided you enter the CD drive in /etc/fstab like this:

/dev/cd0 /cdrom cdfs ro,rr,noauto 0 0


Regards,
Robert-Jan
Fabio Ettore
Honored Contributor

Re: problem with unmounting cdrom (pfs_mount)

Hi,

kill all pfs processes (no by nohup but by kill)! And then relaunch them in this way:

# pfs_mountd &
# pfsd &

After that try

# pfs_mount -o xlat=unix /dev/rdsk/c1t1d0 /cdrom

HTH.

Best regards,
Ettore
WISH? IMPROVEMENT!
Simon Hargrave
Honored Contributor

Re: problem with unmounting cdrom (pfs_mount)

Just a thought. Try running fuser -c /cdrom.

My guess is that you're launching runInstaller or whatever whilst you're cd'd to /cdrom, therefore your shell process is locking the cd device.

When you start the install, make sure you're in another directory (/tmp, /, /home or whatever), then run /cdrom/runInstaller from there. Your shell will then not lock the filesystem.
R. Allan Hicks
Trusted Contributor

Re: problem with unmounting cdrom (pfs_mount)

pfs can be qurky. That why I think that pfs has to be one of the worst ideas oracle has had.

Now that the rant is over.....

I don't think fuser will tell you anything for the pfs (one of the reasons pfs is a bad idea), but make sure no one has /cdrom as their working directory. Lot's of folks cd /cdrom and runInstaller. Then they discover that they can't change CDs without killing the installer and starting over.

However, pfs can still dismount the cd and not let you eject it. If you've killed the pfs daemons you are probably in this boat now.

Short of re-booting the machine, I've killed the daemons and mounted the cd using the regular mount command and then dismounted it.
Once again make sure that no one has /cdrom as their current directory.

-Good Luck
"Only he who attempts the absurd is capable of achieving the impossible