Operating System - HP-UX
1829879 Members
3646 Online
109993 Solutions
New Discussion

How to umount CD mounted with pfs_mountd command.

 
varian_1
Advisor

How to umount CD mounted with pfs_mountd command.

Hi,
On my HP-UX IA64 system I am mounting CD with following commands.

#nohup /usr/sbin/pfs_mountd &
#nohup /usr/sbin/pfsd &
#/usr/sbin/pfs_mount -x unix /dev/dsk/c1t2d0 /cdrom

Can some one tell me how to unmount this CD with out rebooting the system.

Thanks & Regards

Varian
10 REPLIES 10
RAC_1
Honored Contributor

Re: How to umount CD mounted with pfs_mountd command.

pfs_umount /cdrom

man pfs_umount for details. Do you have any specific reason as "why you used pfs_mount and not plain mount??"

With all latest rock ridge pacthes, you are just fine with plain mounts.
There is no substitute to HARDWORK
LiPEnS
Valued Contributor

Re: How to umount CD mounted with pfs_mountd command.

Hi
#pfs_umount -c -v /cdrom

Regards
Joseph Loo
Honored Contributor

Re: How to umount CD mounted with pfs_mountd command.

hi varian,

like what RAC mention, the rock ridge patches should have been installed, but if u really must:

1. create file, /etc/pfs_fstab
2. add entry to /etc/pfs_fstab
# "device name" /cdrom pfs-rrip xlat=unix 0 0
3. run pfs daemon at the background
# nohup /usr/sbin/pfs_mountd &
# nohup /usr/sbin/pfsd &
4. start nfs server
# /sbin/init.d/nfs.server start
5. mount and unmount file system
# pfs_mount /cdrom
# pfs_umount /cdrom

regards.
what you do not see does not mean you should not believe
saju_2
Respected Contributor

Re: How to umount CD mounted with pfs_mountd command.

Hi varian

I faced a similar problem while unmouting a pfs_mount (Oracle installation). The pfs_umount got hung, tried to kill the process and finally i was forced to reboot the server to take the cd out...!!!!

As per "Bill Hassel"

"PFS is NOT recommended at all. The hang you saw is very typical for PFS and the most common scenario is to start the two PFS processes in the wrong order. PFS is a true hack: in order to provide the needed functionality without writing a driver, Young Minds, Inc (the authors of PFS) wrote user code that reads the raw CDROM, performs the CD filesystem translations and then exports the results with rpc calls as an NFS filesystem.

Never use PFS if you are running 11.00 or higher (get the latest RockRidge patches). If you are running 10.20, you have no choice, but realize that PFS may eventually force you to reboot your machine again. Once PFS hangs, logins, bdf, all sorts of filesystem commands may also hang."


Pls check the below link

http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=959850

Regards
CS
dirk dierickx
Honored Contributor

Re: How to umount CD mounted with pfs_mountd command.

pfs - the worst thing ever on hpux.
worst of all, oracle uses it, i still wonder why since no other vendors seems to need it...

install the latest patch and get rid of all that pfs junk.
Steven E. Protter
Exalted Contributor

Re: How to umount CD mounted with pfs_mountd command.

Shalom varian,

If pfs_umount does not work.

Try killing all of the above processes.

If that does not work.

Reboot the box.

If its oracle there are alternatives to pfs_mount which should only be used if there is NO alternative.

SEP
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
Matthew Hollier
Occasional Advisor

Re: How to umount CD mounted with pfs_mountd command.

Just had similar problems with pfs_mount hanging on a HPUX 11.00 server and looks like a server reboot is required as bdf/fuser hanging.

I was only using pfs_mount because a HP Storageworks Securepath 3.0f Install and Reference Guide (Part Number: AAâ RV17Câ TE - April 2005) advised to use pfs command to mount the Securepath 3.0f install CD !!


Why are HP still advising using a command that is so obviously flawed !
Sameer_Nirmal
Honored Contributor

Re: How to umount CD mounted with pfs_mountd command.

Hi,

First of all , the block device should not be used with pfs_mount . You should use character device ( i.e. /dev/rdsk/c?t?d?)
It is mentioned in the man page of pfs_mount.

I believe using block device with it create a problem at back end at "rpc", nfs core module subsystem level causing command like bdf , ls -al hang.

You can try unmounting the cdrom using
# pfs_umount /cdrom

If it doesn't work, kill those mentioned above and use
# fuser -ku /dev/dsk/c1t2d0
Geoff Wild
Honored Contributor

Re: How to umount CD mounted with pfs_mountd command.

And my blurb on Rockridge:

It can be an Oracle CD-ROM, or a CD created on Windows, or where ever 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 to 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).

Installation of patches requires a reboot.

swinstall -x autoreboot=true -x autoselect_patches=TRUE -x patch_match_target=TRUE -x patch_filter=*
.* -s /path/to/rockridge/patch @`hostname`


To mount a Rockridge CD (instead of using pfs_mount):

mount -F cdfs -o ro,rr,noauto /dev/cdrom /cdrom

To unmount:

umount /cdrom

To share out the cd over NFS:

exportfs -i -o ro,anon=0 /cdrom

On remote:

mount -F nfs sha1:/cdrom /zmnt


Note: client server does NOT need to have Rock Ridge patches installed to access the cdrom remotely.



Rgds...Geoff
Proverbs 3:5,6 Trust in the Lord with all your heart and lean not on your own understanding; in all your ways acknowledge him, and he will make all your paths straight.
Bill Hassell
Honored Contributor

Re: How to umount CD mounted with pfs_mountd command.

Whatever you do, stop using PFS!!! It is unstable and full of bugs that will never be fixed. It is a hack that uses NFS to itself to decode RockRidge and POSIX directories and has become more unstable with each new verfsion of HP-UX. PFS is too unstable for any production server. For all versions of 11.00 through 11.11 v2 (11.23), use the -o rr option when mounting your CD. If your man page for mount_cdfs does not have the -o rr option, you need to add the 3 patches immediately.

PFS has been deprecated ever since the 3 patches for RockRidge were released several years ago.


Bill Hassell, sysadmin