How To Restart Linux NFS Server Properly When Network Become Unavailable

by on April 2, 2008 · 1 comment· last updated at September 7, 2011

How do I restart NFS server when network link goes down between two servers or NFS client / server under CentOS 4.x / RHEL / CentOS Linux 5.x?

The simplest and easiest way to stop and start (do not use restart option) NFS server under RHEL / CentOS / Fedora / Red Hat Linux is to use the init script located at /etc/init.d/ directory. Forceful umount command may result into more problems such as unresponsive NFS server and cold reboot may only solves the problem.

Stop and Start NFS and Related Services

For example type the following command to stop NFS server:

WARNING! Using restart option (i.e. service nfs restart) may crash / freeze your Linux computer if executed.

# service nfslock stop
# service nfs stop
# service portmap stop
# umount /proc/fs/nfsd

Now start service in following order:
# service portmap start
# service nfs start
# service nfslock start
# mount -t nfsd nfsd /proc/fs/nfsd



You should follow me on twitter here or grab rss feed to keep track of new changes.

This FAQ entry is 5 of 14 in the "Linux / UNIX NFS File Server Tutorial" series. Keep reading the rest of the series:

{ 1 comment… read it below or add one }

1 Pavan Devarakonda September 5, 2012 at 6:32 pm

How do we ensure that nfs service is working fine or having some errors in the configuration?

Reply

Leave a Comment

You can use these HTML tags and attributes for your code and commands: <strong> <em> <ol> <li> <u> <ul> <kbd> <blockquote> <pre> <a href="" title="">

Tagged as: , , , , , , , , , , , , ,

Previous Faq:

Next Faq: