Operating System - HP-UX
1832961 Members
3357 Online
110048 Solutions
New Discussion

Re: Problem with pfs_mountd

 
SOLVED
Go to solution
James Beamish-White
Trusted Contributor

Problem with pfs_mountd

I can't seem to get pfs_mountd running on my system. After a while of running "nohup /usr/sbin/pfs_mountd &" I get the following error:

unable to register (MOUNT_PROGRAM, MOUNT_VERSION, udp)./usr/sbin/pfs_mountd: /us
r/sbin/pfs_mountd: can't contact pfs_mountd.rpc: ilife235: RPC: Rpcbind failure
- RPC: Timed out
/usr/sbin/pfs_mountd: can't contact pfs_mountd.rpc: ilife235: RPC: Rpcbind failure - RPC: Timed out

The system is HP-UX 11.11, and has undergone the bastion host hardening (removal of global write privileges and sticky bits, conversion to TCB etc).

Any ideas on how to fix this?

Cheers,
James
GARDENOFEDEN> create light
16 REPLIES 16
hpuxrox
Respected Contributor

Re: Problem with pfs_mountd

If I remember correctly. You need to have NFS services running to use pfs.
John Carr_2
Honored Contributor

Re: Problem with pfs_mountd

John

have you created your /etc/pfs_fstab file ?


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

pfs_mount

ls /cdrom


cheers
John.
John Carr_2
Honored Contributor

Re: Problem with pfs_mountd

forgot to include example pfs_fstab

/dev/dsk/c1t2d0 /cdrom type iso9660 (ro,suid,Port=803)


cheers
John.
Helen French
Honored Contributor
Solution

Re: Problem with pfs_mountd

Hi James:

Try this:

# rpcinfo -p

check the pfs daemons are running. If not restart it.

HTH,
Shiju
Life is a promise, fulfill it!
James Beamish-White
Trusted Contributor

Re: Problem with pfs_mountd

OK, I'll qualify a bit further.

The NFS services are running and I have created the /etc/pfs_fstab file (though it is not required for starting pfs_mountd). rpcd is running, the system can resolve to itself, and I have applied the September 2001 patch bundle and the patches PHCO_24777 and PHNE_24910 (RPC patch). I have had pfs running on 11.00 machines before with no problems.

Cheers,
James

GARDENOFEDEN> create light
pap
Respected Contributor

Re: Problem with pfs_mountd

Hi,
Just check that rpc.mountd daemon is running on your system?

Because your NFS services must be enabled and running to ensure that pfs_mount program run satisfactorily.

Thanks,
-pap
"Winners don't do different things , they do things differently"
John Carr_2
Honored Contributor

Re: Problem with pfs_mountd

Hi

ok I have just done a "ps" and this is my output is yours containing the same .

pfs_mountd.rpc
ps
pfsd.rpc
pfs_mountd
pfsd
sh

have you tried other methos of mounting to ensure its just a pfs problem >

mount -o cdcase /dev/dsk/cXtXdX /cdrom


John
hpuxrox
Respected Contributor

Re: Problem with pfs_mountd

I would test to see if you can mount a NFS share localy. if not its not a pfs issue.
James R. Ferguson
Acclaimed Contributor

Re: Problem with pfs_mountd

Hi James:

Since you are running 11.11 you might consider getting PHKL_25760 and PHCO_25841. These have been recently announced and obviate the 'pfs_mount's enabling you to do:

# mount -F cdfs -o rr /dev/dsk/

Regards!

...JRF...
Jon Mattatall
Esteemed Contributor

Re: Problem with pfs_mountd

This is a stab, but we had the same thing happen a few days ago (daemons running, ps -ef looks good).
Check your hosts file (we moved a box to the DMZ and it was not updated)

or, try rpcbind -w

I'm really starting to dislike pfs_mount......

Jon
A little knowledge is dangerous - none is absolutely terrifying!!!
Jeff Schussele
Honored Contributor

Re: Problem with pfs_mountd

Hi James,

Everything appears to point to rpcbind.
If rpcbind -w does not fix it then you'll need to stop all rpc-based services, then rpcbind & bring them back up - rpcbind MUST be first.
You may have possibly not had things started in the proper order or rpcbind may have aborted or not been terminated gracefully.
Also rpcbind will fail if it can't write to it's warm start files.
May be easier to reboot - if you can.

If necesary you can start it in debug mode -> rpcbind -d

HTH,
Jeff
PERSEVERANCE -- Remember, whatever does not kill you only makes you stronger!
Francois Bariselle_3
Regular Advisor

Re: Problem with pfs_mountd

Hi,

Only 11 point for you to graduate with a new HAT !!!

Let's go men!

Frank
Fais la ...
James R. Ferguson
Acclaimed Contributor

Re: Problem with pfs_mountd

Hi James:

Ironically, I just revisited some of this on an 11.0 server. When you do:

# rpcinfo -p

...make sure that you see both 'nfs' and 'mountd' listed.

If either or both are missing, edit 'etc/rc.config.d/nfsconf' as:

NFS_CLIENT=1
NFS_SERVER=1
NUM_NFSD=4
START_MOUNTD=1

...and do:

# /sbin/init.d/nfs.client stop
# /sbin/init.d/nfs.server stop
# /sbin/init.d/nfs.server start
# /sbin/init.d/nfs.client start

Regards!

...JRF...


GHD
New Member

Re: Problem with pfs_mountd

type the command /usr/sbin/rpcbind -w and tray again
Bill Hassell
Honored Contributor

Re: Problem with pfs_mountd

PFS is deprecated for 11.11 as it is quite unstable. There is no reason to use it on any version of HP-UX. If you are following some Oracle or SAP instructions, ignore the PFS recommendations as they are obsolete. (also ignoe recommendations to use -ocdcase as that does not work correctly). Instead, add the THREE patches:

PHCO_25841 PHKL_26269 PHKL_34153

Then simply mount your CD with the -orr option.


Bill Hassell, sysadmin