How To Restart Linux NFS Server Properly When Network Become Unavailable

How To Restart Linux NFS Server Properly When Network Become Unavailable

If the network becomes unavailable on a Linux NFS (Network File System) server, you may need to restart the NFS server to ensure that it is functioning properly.

To restart the NFS server, you can use the systemctl command to stop and start the nfs-server service. For example:

sudo systemctl stop nfs-server
sudo systemctl start nfs-server
Source:w‮‬ww.lautturi.com

Alternatively, you can use the service command, which is deprecated but still commonly used:

sudo service nfs-server stop
sudo service nfs-server start

If you are using a version of Linux that does not use systemd, you can use the /etc/init.d/nfs-server script to stop and start the NFS server:

sudo /etc/init.d/nfs-server stop
sudo /etc/init.d/nfs-server start

It's always a good idea to carefully review the documentation and take appropriate measures to ensure the reliability of your NFS server. This may include setting up network redundancy and failover, as well as monitoring the server to ensure that it is functioning properly.

Created Time:2017-10-29 22:08:30  Author:lautturi