1834762 Members
3142 Online
110070 Solutions
New Discussion

re: pfs_mount behaviour

 
Gurcharan Sahota_2
Frequent Advisor

re: pfs_mount behaviour

why do I get multiple instances of the same filename on a cdrom using pfs_mount? is this expected behaviour?

this is the script used to start the pfs daemons.

pfs_mountd &
pfsd &
pfs_mount -o xlat=unix /dev/rdsk/c3t2d0 /cdrom
3 REPLIES 3
Steven E. Protter
Exalted Contributor

Re: re: pfs_mount behaviour

Its not normal.

How many pfs_mountd processes do you have running.

This behavior may happen if there are more than one copy of these processes running.

At this point, the only way to clear may be to kill the processes and umount.

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
Gurcharan Sahota_2
Frequent Advisor

Re: re: pfs_mount behaviour

currently the number of processes running are

root@bddev:/cdrom> ps -ef | grep -i pfs
root 21679 21676 0 13:18:38 pts/ta 0:00 pfs_mountd.rpc
root 21676 1 0 13:18:38 pts/ta 0:00 pfs_mountd
root 21710 21708 0 13:19:58 pts/ta 0:00 pfs_mountd.rpc
root 21712 21709 0 13:19:58 pts/ta 0:00 pfsd.rpc
root 21708 1 0 13:19:58 pts/ta 0:00 pfs_mountd
root 21680 21677 0 13:18:38 pts/ta 0:00 pfsd.rpc
root 21709 1 0 13:19:58 pts/ta 0:00 pfsd
root 21677 1 0 13:18:38 pts/ta 0:00 pfsd

so do I need to kill all the processes, umount then mount the cdrom?
Geoff Wild
Honored Contributor

Re: re: pfs_mount behaviour

Yes...kill the daemons...

After that, install Rockridge extensions:

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).

Installation of patches requires a reboot.

swinstall -x autoreboot=true -x autoselect_patches=TRUE -x patch_match_target=TRUE -x patch_filter=*
.* -s pc1005:/var/software/hp/rockridge @`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.