LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   nfs: RPC: Port mapper failure (https://www.linuxquestions.org/questions/linux-newbie-8/nfs-rpc-port-mapper-failure-4175601249/)

arun natarajan 03-07-2017 12:40 PM

nfs: RPC: Port mapper failure
 
hi,

even after the trying the solutions from google and other forums, my nfs is not working still.
below are the steps which i have tried.
services are running fine at both machines.
firewall has been disabled at both machines.
kept selinux in permissive mode at both machines;
let me know is there a way to fix the same.

[root@station5 ~]# showmount -e 192.168.1.40
clnt_create: RPC: Port mapper failure


Server side:

# uname -r
2.6.32-71.el6.x86_6

# cat /etc/exports
/nfs-share *(rw)

# exportfs
/nfs-share <world>

[root@station4 ~]# service rpcbind restart
Stopping rpcbind: [ OK ]
Starting rpcbind: [ OK ]
[root@station4 ~]# service nfs restart
Shutting down NFS mountd: [ OK ]
Shutting down NFS daemon: [ OK ]
Shutting down NFS quotas: [ OK ]
Shutting down NFS services: [ OK ]
Starting NFS services: [ OK ]
Starting NFS quotas: [ OK ]
Starting NFS daemon: [ OK ]
Starting NFS mountd: [ OK ]

[root@station4 ~]# sestatus
SELinux status: enabled
SELinuxfs mount: /selinux
Current mode: permissive
Mode from config file: enforcing
Policy version: 24
Policy from config file: targeted

[root@station4 ~]# iptables -L
Chain INPUT (policy ACCEPT)
target prot opt source destination

Chain FORWARD (policy ACCEPT)
target prot opt source destination

Chain OUTPUT (policy ACCEPT)
target prot opt source destination


Client side:

# uname -r
2.6.32-71.el6.x86_6

[root@station5 ~]# service rpcbind restart
Stopping rpcbind: [ OK ]
Starting rpcbind: [ OK ]
[root@station4 ~]# service nfs restart
Shutting down NFS mountd: [ OK ]
Shutting down NFS daemon: [ OK ]
Shutting down NFS quotas: [ OK ]
Shutting down NFS services: [ OK ]
Starting NFS services: [ OK ]
Starting NFS quotas: [ OK ]
Starting NFS daemon: [ OK ]
Starting NFS mountd: [ OK ]

[root@station5 ~]# rpcinfo
program version netid address service owner
100000 4 tcp6 ::.0.111 portmapper superuser
100000 3 tcp6 ::.0.111 portmapper superuser
100000 4 udp6 ::.0.111 portmapper superuser
100000 3 udp6 ::.0.111 portmapper superuser
100000 4 tcp 0.0.0.0.0.111 portmapper superuser
100000 3 tcp 0.0.0.0.0.111 portmapper superuser
100000 2 tcp 0.0.0.0.0.111 portmapper superuser
100000 4 udp 0.0.0.0.0.111 portmapper superuser
100000 3 udp 0.0.0.0.0.111 portmapper superuser
100000 2 udp 0.0.0.0.0.111 portmapper superuser
100000 4 local /var/run/rpcbind.sock portmapper superuser
100000 3 local /var/run/rpcbind.sock portmapper superuser

[root@station5 ~]# sestatus
SELinux status: enabled
SELinuxfs mount: /selinux
Current mode: permissive
Mode from config file: enforcing
Policy version: 24
Policy from config file: targeted

[root@station5 ~]# iptables -L
Chain INPUT (policy ACCEPT)
target prot opt source destination

Chain FORWARD (policy ACCEPT)
target prot opt source destination

Chain OUTPUT (policy ACCEPT)
target prot opt source destination


[root@station5 ~]# showmount -e 192.168.1.40
clnt_create: RPC: Port mapper failure

tshikose 03-07-2017 02:37 PM

Hi,

Do you have a firewall activated?
Do you have SE Linux activated?

arun natarajan 03-07-2017 08:15 PM

hi

Firewall is disabled at both ends.
selinux is in permissive mode.
you can find the same in my above post.

is there anything i need to check apart from this ??


All times are GMT -5. The time now is 03:29 AM.