9/23/12

NFS mount error - CentOS

If you're retrieving:  "clnt_create: RPC: Program not registered"
when you're trying to view mounted NFS folder (/nfsshare) on the local server by running:

[root@server]# showmount localhost -e

Follow the steps bellow to fix this issue:

// Check the exports file for the mounted (/test) directory
[root@server]# vi /etc/exports

You should see something like the following:
/nfsshare                  *(rw, sync)

// Check that the nfs service is running
[root@server]# service nfs status

If you're getting error than your nfs service is not running

// Restart the nfs restart
[root@server]# service nfs start

You should see the following:
Starting NFS services:    [ OK ]
Starting NFS mountd:      [ OK ]
Stopping RPC idmapd:   [ OK ]
Starting RPC idmapd:     [ OK ]
Starting NFS daemon:    [ OK ]

Now the command should work fine :)