Solved NFS Mount Port Mapper Failure

I am trying to mount a NFS share that is on my CentOS machine but I am receiving the following error.

This is from the BSD machine
Code:
mount 10.19.2.12:/var/nfs /mnt/centnfs/
[tcp] 10.19.2.12:/var/nfs: RPCPROG_NFS: RPC: Port mapper failure - RPC: Timed out

rpcinfo -p
Code:
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
    100000    4 local    111  rpcbind
    100000    3 local    111  rpcbind
    100000    2 local    111  rpcbind
    100005    1   udp    710  mountd
    100005    3   udp    710  mountd
    100005    1   tcp    710  mountd
    100005    3   tcp    710  mountd
    100003    2   udp   2049  nfs
    100003    3   udp   2049  nfs
    100003    2   tcp   2049  nfs
    100003    3   tcp   2049  nfs

cat /etc/exports
Code:
/var/nfs        10.19.2.12(rw,sync,no_root_squash,no_all_squash,no_subtree_check)
/var/nfs        10.19.1.12(rw,sync,no_root_squash,no_all_squash,no_subtree_check)

CentOS Box
rpcinfo -p
Code:
program vers proto   port  service
    100000    4   tcp    111  portmapper
    100000    3   tcp    111  portmapper
    100000    2   tcp    111  portmapper
    100000    4   udp    111  portmapper
    100000    3   udp    111  portmapper
    100000    2   udp    111  portmapper
    100024    1   udp  45353  status
    100024    1   tcp  34534  status
    100005    1   udp  20048  mountd
    100005    1   tcp  20048  mountd
    100005    2   udp  20048  mountd
    100005    2   tcp  20048  mountd
    100005    3   udp  20048  mountd
    100005    3   tcp  20048  mountd
    100003    3   tcp   2049  nfs
    100003    4   tcp   2049  nfs
    100227    3   tcp   2049  nfs_acl
    100003    3   udp   2049  nfs
    100003    4   udp   2049  nfs
    100227    3   udp   2049  nfs_acl
    100021    1   udp  60848  nlockmgr
    100021    3   udp  60848  nlockmgr
    100021    4   udp  60848  nlockmgr
    100021    1   tcp  44429  nlockmgr
    100021    3   tcp  44429  nlockmgr
    100021    4   tcp  44429  nlockmgr

cat /etc/exports
Code:
/var/nfs                10.19.3.12(rw,sync,no_root_squash,no_all_squash,no_subtree_check)
/var/nfs                10.19.1.12(rw,sync,no_root_squash,no_all_squash,no_subtree_check)
 
Timeouts usually indicate a firewall, CentOS 6 and higher has it enabled by default. Note that the exports file on FreeBSD uses a different syntax. The one you have isn't going to work. It's also not necessary for NFS clients, it's only used with the NFS server.
 
Timeouts usually indicate a firewall, CentOS 6 and higher has it enabled by default. Note that the exports file on FreeBSD uses a different syntax. The one you have isn't going to work. It's also not necessary for NFS clients, it's only used with the NFS server.
Yes on the CentOS machine I had to run
systemctl stop firewalld
systemctl disable firewalld

Also the /etc/exports file on the BSD machine became
/var/nfs -maproot=root 10.19.2.12 10.19.1.12

I was able to successfully mount via the below command
mount -t nfs 10.19.2.12:/var/nfs /mnt/centnfs/

Thanks for the assistance.
 
Back
Top