• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 1013
  • Last Modified:

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,insecure,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
0
mnis2008
Asked:
mnis2008
  • 10
  • 10
1 Solution
 
wesly_chenCommented:
1. On NFS server, please try
# 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.
0
 
mnis2008Author Commented:
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
0
 
wesly_chenCommented:
> 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.
0
Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
mnis2008Author Commented:
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
0
 
mnis2008Author Commented:
How do I totally remove and install which will create new users for portmap and nfs
0
 
wesly_chenCommented:
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.
0
 
mnis2008Author Commented:
Is it rpm or rpc  in the third step
0
 
wesly_chenCommented:
Woo, typo. it is "rpc", not rpm...... :-<
0
 
mnis2008Author Commented:
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
0
 
mnis2008Author Commented:
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::::::
0
 
wesly_chenCommented:
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.
0
 
mnis2008Author Commented:
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
0
 
wesly_chenCommented:
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 ?

 
0
 
wesly_chenCommented:
By the way, when you re-install nfs, did you set back the change in /etc/sysconfig/nfs?
0
 
wesly_chenCommented:
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
0
 
mnis2008Author Commented:
I did this but my showmount -e hangs, but showmount -e localhost works
0
 
mnis2008Author Commented:
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...
0
 
wesly_chenCommented:
0
 
mnis2008Author Commented:
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
0
 
wesly_chenCommented:
For rquotad, please add those two lines into /etc/services
--------
rquotad         40004/tcp                       # rpc.rquotad TCP Port
rquotad         40004/udp                       # rpc.rquotad UDP Port
----------
and restart nfs on NFS server
# service nfs restart

And open the port 40004 on the firewall/router.
0

Featured Post

Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

  • 10
  • 10
Tackle projects and never again get stuck behind a technical roadblock.
Join Now