mnis2008
asked on
NFS error- Client
On one of my Clients I am having NFS issues. When I mount it it just hangs,,,
ON CLIENT
# showmount -e NFS_SERVER
mount clntudp_create: RPC: Port mapper failure - RPC: Unable to receive
# rpcinfo -p
program vers proto port
100000 2 tcp 111 portmapper
100000 2 udp 111 portmapper
100011 1 udp 622 rquotad
100011 2 udp 622 rquotad
100011 1 tcp 625 rquotad
100011 2 tcp 625 rquotad
100003 2 udp 2049 nfs
100003 3 udp 2049 nfs
100003 4 udp 2049 nfs
100021 1 udp 40001 nlockmgr
100021 3 udp 40001 nlockmgr
100021 4 udp 40001 nlockmgr
100021 1 tcp 40000 nlockmgr
100021 3 tcp 40000 nlockmgr
100021 4 tcp 40000 nlockmgr
100003 2 tcp 2049 nfs
100003 3 tcp 2049 nfs
100003 4 tcp 2049 nfs
100005 1 udp 40002 mountd
100005 1 tcp 40002 mountd
100005 2 udp 40002 mountd
100005 2 tcp 40002 mountd
100005 3 udp 40002 mountd
100005 3 tcp 40002 mountd
ON SERVER
# cat /etc/exports
/home *(rw,no_root_squash,insecu re,fsid=0)
# rpcinfo -p
program vers proto port
100000 2 tcp 111 portmapper
100000 2 udp 111 portmapper
100024 1 udp 40003 status
100024 1 tcp 40003 status
100011 1 udp 610 rquotad
100011 2 udp 610 rquotad
100011 1 tcp 613 rquotad
100011 2 tcp 613 rquotad
100003 2 udp 2049 nfs
100003 3 udp 2049 nfs
100003 4 udp 2049 nfs
100021 1 udp 40001 nlockmgr
100021 3 udp 40001 nlockmgr
100021 4 udp 40001 nlockmgr
100021 1 tcp 40000 nlockmgr
100021 3 tcp 40000 nlockmgr
100021 4 tcp 40000 nlockmgr
100003 2 tcp 2049 nfs
100003 3 tcp 2049 nfs
100003 4 tcp 2049 nfs
100005 1 udp 40002 mountd
100005 1 tcp 40002 mountd
100005 2 udp 40002 mountd
100005 2 tcp 40002 mountd
100005 3 udp 40002 mountd
100005 3 tcp 40002 mountd
ON CLIENT
# showmount -e NFS_SERVER
mount clntudp_create: RPC: Port mapper failure - RPC: Unable to receive
# rpcinfo -p
program vers proto port
100000 2 tcp 111 portmapper
100000 2 udp 111 portmapper
100011 1 udp 622 rquotad
100011 2 udp 622 rquotad
100011 1 tcp 625 rquotad
100011 2 tcp 625 rquotad
100003 2 udp 2049 nfs
100003 3 udp 2049 nfs
100003 4 udp 2049 nfs
100021 1 udp 40001 nlockmgr
100021 3 udp 40001 nlockmgr
100021 4 udp 40001 nlockmgr
100021 1 tcp 40000 nlockmgr
100021 3 tcp 40000 nlockmgr
100021 4 tcp 40000 nlockmgr
100003 2 tcp 2049 nfs
100003 3 tcp 2049 nfs
100003 4 tcp 2049 nfs
100005 1 udp 40002 mountd
100005 1 tcp 40002 mountd
100005 2 udp 40002 mountd
100005 2 tcp 40002 mountd
100005 3 udp 40002 mountd
100005 3 tcp 40002 mountd
ON SERVER
# cat /etc/exports
/home *(rw,no_root_squash,insecu
# rpcinfo -p
program vers proto port
100000 2 tcp 111 portmapper
100000 2 udp 111 portmapper
100024 1 udp 40003 status
100024 1 tcp 40003 status
100011 1 udp 610 rquotad
100011 2 udp 610 rquotad
100011 1 tcp 613 rquotad
100011 2 tcp 613 rquotad
100003 2 udp 2049 nfs
100003 3 udp 2049 nfs
100003 4 udp 2049 nfs
100021 1 udp 40001 nlockmgr
100021 3 udp 40001 nlockmgr
100021 4 udp 40001 nlockmgr
100021 1 tcp 40000 nlockmgr
100021 3 tcp 40000 nlockmgr
100021 4 tcp 40000 nlockmgr
100003 2 tcp 2049 nfs
100003 3 tcp 2049 nfs
100003 4 tcp 2049 nfs
100005 1 udp 40002 mountd
100005 1 tcp 40002 mountd
100005 2 udp 40002 mountd
100005 2 tcp 40002 mountd
100005 3 udp 40002 mountd
100005 3 tcp 40002 mountd
ASKER
The NFS was working fine till morning when we try to over write /etc/passwd and /etc/shadow and /etc/groups from another server. I made sure the NFS credentials are untouched.
ON SERVER
# showmount -e localhost
Export list for localhost:
/home *
My firewall rules are all fine, Do u think I need to reinstall the NFS
ON SERVER
# showmount -e localhost
Export list for localhost:
/home *
My firewall rules are all fine, Do u think I need to reinstall the NFS
> when we try to over write /etc/passwd and /etc/shadow and /etc/groups from another server
Did you backup those files before copied over?
Try to restore those files first and restart nfs, portmap service.
Because portmap daemon is run as account "rpc" and if the uid or account messed up will cause the problem.
Did you backup those files before copied over?
Try to restore those files first and restart nfs, portmap service.
Because portmap daemon is run as account "rpc" and if the uid or account messed up will cause the problem.
ASKER
Hello Chen I have restored them back but I still get the same error. What would be the fix if I missed with the UID's
ASKER
How do I totally remove and install which will create new users for portmap and nfs
The uninstall from rpm or yum or apt-get or dpkg will not remove the user that created during the installation.
You need to manually remove those users before re-installation.
1. Backup passwd. shadow, and group files before you do anything on them first.
2. Unistall nfs and portmap.
3.Then delete rpm and rpcuser in passwd and shadow files.
Delete rpc, rpcuser, lock in /etc/group.
4. Install nfs and portmap.
Check those three files again and make sure there are added after installation. Otherwise, add the missing ones back from backup file.
You need to manually remove those users before re-installation.
1. Backup passwd. shadow, and group files before you do anything on them first.
2. Unistall nfs and portmap.
3.Then delete rpm and rpcuser in passwd and shadow files.
Delete rpc, rpcuser, lock in /etc/group.
4. Install nfs and portmap.
Check those three files again and make sure there are added after installation. Otherwise, add the missing ones back from backup file.
ASKER
Is it rpm or rpc in the third step
Woo, typo. it is "rpc", not rpm...... :-<
ASKER
I followed the steps its giving me the same error ..:(
ON CLIENT
# showmount -e nfs_server
mount clntudp_create: RPC: Port mapper failure - RPC: Unable to receive
ON CLIENT
# showmount -e nfs_server
mount clntudp_create: RPC: Port mapper failure - RPC: Unable to receive
ASKER
This is what I am seeing
ON SERVER
# cat /etc/shadow |grep nfs
nfsnobody:!!:15083::::::
[# cat /etc/shadow |grep rpc
rpc:!!:15084:7:30:7:14::
rpcuser:!!:15084::::::
ON CLIENT
# cat /etc/shadow |grep nfs
nfsnobody:!!:15064::::::
# cat /etc/shadow |grep rpc
rpc:!!:14711:0:99999:7:::
rpcuser:!!:15064::::::
ON SERVER
# cat /etc/shadow |grep nfs
nfsnobody:!!:15083::::::
[# cat /etc/shadow |grep rpc
rpc:!!:15084:7:30:7:14::
rpcuser:!!:15084::::::
ON CLIENT
# cat /etc/shadow |grep nfs
nfsnobody:!!:15064::::::
# cat /etc/shadow |grep rpc
rpc:!!:14711:0:99999:7:::
rpcuser:!!:15064::::::
UID and GID do not need to match for NFS server and client.
They communicate with port number.
Could you run (as root) on client
# nmap -sS <nfs server IP>
to see you can see the port 111 open.
They communicate with port number.
Could you run (as root) on client
# nmap -sS <nfs server IP>
to see you can see the port 111 open.
ASKER
On Client
# nmap -sS 172.26.1.75
-ksh: nmap: not found [No such file or directory]
I did a telnet to the port and its open
# nmap -sS 172.26.1.75
-ksh: nmap: not found [No such file or directory]
I did a telnet to the port and its open
It is still suspicious that the firewall portion.
You say "shoumount -e <NFS server IP>" is working before.
Does any change on the IP address of NFS server? Or any routing table change on network side?
Firewall rule/ACL reset ?
You say "shoumount -e <NFS server IP>" is working before.
Does any change on the IP address of NFS server? Or any routing table change on network side?
Firewall rule/ACL reset ?
By the way, when you re-install nfs, did you set back the change in /etc/sysconfig/nfs?
This URL:
http://rattyboy.wordpress.com/2008/06/24/mount-clntudp_create-rpc-port-mapper-failure-rpc-unable-to-receive/
------------
put in one line: PMAP_ARGS=
in
/etc/sysconfig/portmap
Then restart portmap
http://rattyboy.wordpress.com/2008/06/24/mount-clntudp_create-rpc-port-mapper-failure-rpc-unable-to-receive/
------------
put in one line: PMAP_ARGS=
in
/etc/sysconfig/portmap
Then restart portmap
ASKER
I did this but my showmount -e hangs, but showmount -e localhost works
ASKER
On client, I still the error, Chen i think its something to do with the user accounts created by NFS and portmap. I need to completely delete and reinstall I guess, do u know a way to completely remove the user accounts and then reinstall NFS fresh...
Have you tried the one I posted above?
https://www.experts-exchange.com/questions/26966208/NFS-error-Client.html?cid=1572&anchorAnswerId=35429121#a35429121
https://www.experts-exchange.com/questions/26966208/NFS-error-Client.html?cid=1572&anchorAnswerId=35429121#a35429121
ASKER
Yes I tried this but didnot work..So I am looking for a solution which completely uninstalls NFS and portmap and then when it reinstalls it adds new users and creates new services
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
# showmount -e localhost
to see if portmap and nfs service is running ok.
2. Check the firewall setting on both NFS server and client as well as the router in between.
Make sure no firewall blocking those ports.