1829034 Members
2542 Online
109986 Solutions
New Discussion

rpc ?

 
castro_2
Regular Advisor

rpc ?

When I do a rpcinfo show me this

rpcinfo: can't contact rpcbind: RPC: Rpcbind failure - RPC: Failed (unspecified error)

I restart the daemon
/sbin/init.d/Rpcd stop
/sbin/init.d/Rpcd start
but still show me the error
Thanks
16 REPLIES 16
Uday_S_Ankolekar
Honored Contributor

Re: rpc ?

Try restarting NFS server.

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

Rpcd process is for different purpose.

-USA..
Good Luck..
Helen French
Honored Contributor

Re: rpc ?

One possible try is to apply the latest NFS patches. What version of OS are you using? If you are using 11.0, install this patch - PHNE_28567 (s700_800 11.00 ONC/NFS General Release/Performance Patch)
Life is a promise, fulfill it!
castro_2
Regular Advisor

Re: rpc ?

When I try to mount remote fs
nfs mount: get_fh: IP:: RPC: Program not registered
nfs mount: get_fh: IP:: RPC: Program not registered
nfs mount: retry: retrying(1) for: /pep after 5 seconds
Robert-Jan Goossens
Honored Contributor

Re: rpc ?

check the /etc/inetd.conf and uncomment next line

rpc dgram udp wait root /usr/etc/rpc.mountd 100005 1 rpc.mountd

reread inetd

# /etc/inetd -c &
castro_2
Regular Advisor

Re: rpc ?

#rpc stream tcp nowait root /usr/sbin/rpc.rexd 100017 1 rpc.rexd
I dont have this entry.
Is a 11.11
#rpc dgram udp wait root /usr/lib/netsvc/rstat/rpc.rstatd 100001 2-4
rpc.rstatd
#rpc dgram udp wait root /usr/lib/netsvc/rusers/rpc.rusersd 100002 1-2
rpc.rusersd
#rpc dgram udp wait root /usr/lib/netsvc/rwall/rpc.rwalld 100008 1
rpc.rwalld
#rpc dgram udp wait root /usr/sbin/rpc.rquotad 100011 1 rpc.rquotad
#rpc dgram udp wait root /usr/lib/netsvc/spray/rpc.sprayd 100012 1
rpc.sprayd

Thanks
castro_2
Regular Advisor

Re: rpc ?

I uncomment next line, and rpcinfo is working, but I have still problems with mount remote fs

rpc dgram udp wait root /usr/dt/bin/rpc.cmsd 100068 2-5 rpc.cmsd

rpc xti tcp swait root /usr/dt/bin/rpc.ttdbserver 100083 1 /usr/dt/bin/rpc.ttd
bserver

Thanks
Kevin Wright
Honored Contributor

Re: rpc ?

Configure /etc/rc.config.d to start NFS as a server.

Then run /sbin/init.d/nfs.core stop and start to start rpcbind.

Once rpcbind is running, then start you nfs.server with nfs.server start. Now when you run rpcinfo -p, you should see mountd and nfs registered.
Helen French
Honored Contributor

Re: rpc ?

Is you are using 11.11, then install this patch - PHNE_28568 (s700_800 11.11 ONC/NFS General Release/Performance Patch). That may solve your problems.
Life is a promise, fulfill it!
Con O'Kelly
Honored Contributor

Re: rpc ?

Hi Castro

As others have said use
# /sbin/init.d/nfs.core start to start rpcbind daemon.

For NFS mounts you also need rpc.mountd to be running on the NFS server.
This is started by:
# /sbin/init.d/nfs.server start

Check in /etc/rc.config/nfsconf that
NFS_SERVER=1
START_MOUNTD=1

Cheers
Con

Suresh Patoria
Super Advisor

Re: rpc ?

Hi,

uncomment the rpc protocol from /etc/services & /etc/inetd.conf if it is there then

check the /sbin/init.d/nfs.client service is running or not

if it not then start the client services using

/sbin/init.d/nfs.client start

then check the rpcinfo -p command

if u still face the same problem then
use the following command

and also check the /etc/rpc file

just check for the rpcbind protocol whether it is commented or not

also use the rpcbind -w command to read the /etc/rpc file

thanx
castro_2
Regular Advisor

Re: rpc ?

rpcinfo -p
program vers proto port service
100000 4 tcp 111 rpcbind
100000 3 tcp 111 rpcbind
100000 2 tcp 111 rpcbind
100000 4 udp 111 rpcbind
100000 3 udp 111 rpcbind
100000 2 udp 111 rpcbind
100024 1 tcp 64341 status
100024 1 udp 50989 status
100021 1 tcp 64342 nlockmgr
100021 1 udp 50990 nlockmgr
100021 3 tcp 64343 nlockmgr
100021 3 udp 50991 nlockmgr
100021 4 tcp 64344 nlockmgr
100021 4 udp 50992 nlockmgr
100020 1 udp 4045 llockmgr
100020 1 tcp 4045 llockmgr
100021 2 tcp 64345 nlockmgr
100005 1 udp 50995 mountd
100005 3 udp 50995 mountd
100005 1 tcp 64346 mountd
100005 3 tcp 64346 mountd
100003 2 udp 2049 nfs
100003 2 tcp 2049 nfs
100003 3 udp 2049 nfs
100003 3 tcp 2049 nfs



Check /etc/rc.config/nfsconf that
NFS_SERVER=1
START_MOUNTD=1


root 19328 1 0 12:15:55 ? 0:00 /opt/dce/sbin/rpcd
root 19527 1 0 12:16:39 ? 0:00 /usr/sbin/rpc.lockd
root 19521 1 0 12:16:39 ? 0:00 /usr/sbin/rpc.statd
root 19554 1 0 12:16:39 ? 0:00 /usr/sbin/rpc.mountd
root 19347 1 0 12:16:25 ? 0:00 /usr/sbin/rpcbind

I want to mount a remote fs (NFS)
mount -F nfs acin:/soft /pep
nfs mount: get_fh: acin:: RPC: Program not registered
nfs mount: get_fh: acin:: RPC: Program not registered
nfs mount: retry: retrying(1) for: /pep after 5 seconds


Kevin Wright
Honored Contributor

Re: rpc ?

Ya? You do understand that rpcbind, nfsd, and mountd need to be running on the SERVER right?

rpcinfo -p
castro_2
Regular Advisor

Re: rpc ?

# ps -ef|grep rpc
root 19328 1 0 12:15:55 ? 0:00 /opt/dce/sbin/rpcd
root 19527 1 0 12:16:39 ? 0:00 /usr/sbin/rpc.lockd
root 19521 1 0 12:16:39 ? 0:00 /usr/sbin/rpc.statd
root 19554 1 0 12:16:39 ? 0:00 /usr/sbin/rpc.mountd
root 19347 1 0 12:16:25 ? 0:00 /usr/sbin/rpcbind
root 20686 20665 0 14:03:39 pts/1 0:00 grep rpc

# ps -ef|grep nfs
root 687 0 0 Jul 23 ? 0:00 nfskd
root 19582 19567 0 12:16:39 ? 0:00 /usr/sbin/nfsd 16
root 19569 19567 0 12:16:39 ? 0:00 /usr/sbin/nfsd 16
root 19581 19567 0 12:16:39 ? 0:00 /usr/sbin/nfsd 16
root 19566 1 0 12:16:39 ? 0:00 /usr/sbin/nfsd 16
root 19571 19568 0 12:16:39 ? 0:00 /usr/sbin/nfsd 16
root 19572 19567 0 12:16:39 ? 0:00 /usr/sbin/nfsd 16
root 19576 19568 0 12:16:39 ? 0:00 /usr/sbin/nfsd 16
root 19568 19566 0 12:16:39 ? 0:00 /usr/sbin/nfsd 16
root 19567 19566 0 12:16:39 ? 0:00 /usr/sbin/nfsd 16
root 19573 19566 0 12:16:39 ? 0:00 /usr/sbin/nfsd 16
root 19565 1 0 12:16:39 ? 0:00 /usr/sbin/nfsd 16
root 20694 20665 0 14:03:44 pts/1 0:00 grep nfs
root 19574 19566 0 12:16:39 ? 0:00 /usr/sbin/nfsd 16
root 19580 19568 0 12:16:39 ? 0:00 /usr/sbin/nfsd 16
root 19577 19568 0 12:16:39 ? 0:00 /usr/sbin/nfsd 16
root 19570 19566 0 12:16:39 ? 0:00 /usr/sbin/nfsd 16
root 19584 19567 0 12:16:39 ? 0:00 /usr/sbin/nfsd 16
root 19575 19566 0 12:16:39 ? 0:00 /usr/sbin/nfsd 16
root 19578 19568 0 12:16:39 ? 0:00 /usr/sbin/nfsd 16
root 19579 19566 0 12:16:39 ? 0:00 /usr/sbin/nfsd 16

# ps -ef|grep moun
root 19554 1 0 12:16:39 ? 0:00 /usr/sbin/rpc.mountd

All daemons are running
Thanks
Kevin Wright
Honored Contributor

Re: rpc ?

is that output on the server acin?

do a showmount -e acin
rpcinfo -p acin
castro_2
Regular Advisor

Re: rpc ?

showmount: acin: RPC: Program not registered

program vers proto port service
100000 4 tcp 111 rpcbind
100000 3 tcp 111 rpcbind
100000 2 tcp 111 rpcbind
100000 4 udp 111 rpcbind
100000 3 udp 111 rpcbind
100000 2 udp 111 rpcbind
100024 1 tcp 60871 status
100024 1 udp 53477 status
100021 1 tcp 60872 nlockmgr
100021 1 udp 53478 nlockmgr
100021 3 tcp 60873 nlockmgr
100021 3 udp 53479 nlockmgr
100021 4 tcp 60874 nlockmgr
100021 4 udp 53480 nlockmgr
100020 1 udp 4045 llockmgr
100020 1 tcp 4045 llockmgr
100021 2 tcp 60875 nlockmgr
100003 2 udp 2049 nfs
100003 3 udp 2049 nfs


Kevin Wright
Honored Contributor

Re: rpc ?

so it's pretty clear nfsd and mountd are not running on acin.