Solaris Troubleshooting NFS : error “NFS mount fails with RPC: Program not registered”

When trying to mount an NFS file system from an NFS server, the mount fails with the error message:

mount:<server>:/filesystem not responding:   RPC: Program not registered


The rpc.mountd and nfsd daemons may not be running on the NFS server attempting the mount. Log in to the server that you are trying to mount from. Follow one of the two procedures below:

You must edit the file /etc/dfs/dfstab in order to make files automatically export on a Solaris system. The standard syntax in that file is:

share -F nfs partition

For example, the following /etc/dfs/dfstab file is for a server that makes available the filesystems /usr, /var/spool/mail and /home:

share -F nfs /usr

share -F nfs /var/spool/mail

share -F nfs /home

You may add normal mount options to these lines, such as ro, rw and root. this is done by preceding the options with a -o flag. These options are fully described in the share man page. The following  example shows our /etc/dfs/dfstab file, but this time with the filesystems all being exported read only:

share -F nfs -o ro /usr

share -F nfs -o ro /var/spool/mail

share -F nfs -o ro /home

If your machine is already exporting filesystems, and you are adding a new one, you should simply run the shareall command to make this new filesystem available:

% shareall

If you have never exported filesystems from this machine before, you need to run the nfs.server script:

% /etc/init.d/nfs.server start

(The NFS Server will come up fine on the next boot, now that an /etc/dfs/dfstab file exists)

When /etc/init.d/nfs.server starts two daemons mountd and nfsd are started to handle the client requests To verify that the server processes are running on a remote system and the server has share points already shared out

dfshares  <nfsserver name>

or

showmount -e <nfsserver name>

Ramdev

Ramdev

I have started unixadminschool.com ( aka gurkulindia.com) in 2009 as my own personal reference blog, and later sometime i have realized that my leanings might be helpful for other unixadmins if I manage my knowledge-base in more user friendly format. And the result is today's' unixadminschool.com. You can connect me at - https://www.linkedin.com/in/unixadminschool/

3 Responses

  1. February 16, 2012

    rpc server is unavailable xp…

    […]unix administration @ gurkulindia.com » Solaris Troubleshooting NFS : error “NFS mount fails with RPC: Program not registered”[…]…

  2. September 16, 2015

    […] Read – error “NFS mount fails with RPC: Program not registered” […]

  3. September 22, 2015

    […] Read – error “NFS mount fails with RPC: Program not registered” […]

What is in your mind, about this post ? Leave a Reply

Close
  Our next learning article is ready, subscribe it in your email

What is your Learning Goal for Next Six Months ? Talk to us