How to Export an NFSv4 Server to External Networks

We ever discussed fixing ports used by NFSv3 so that it can be easily exported to external networks. For NFSv4.1 or higher, things are much easier. The ports for mountd, statd, and lockd are not required in a pure NFSv4 environment. We have less ports to control or allow for connections. Only port 111 and 2049 need to be taken care of for NFSv4. » Read more

Script: Checking Alive Servers from a Server List

With a list of servers, it is common that one or more are down or crash. Lots cluster management tools can detect the aliveness of servers. However, it can be easily done with ping with a Bash script. I summarize the script that I used and share it here: Usage: usage: ./ file Each host in one line in the file The mechanism and tool used behind this is quite straightforward: just ping (that’s right, the ping command) the host and check the results. » Read more

How to Set Up and Configure NFS Server and Clients

NFS is widely deployed and used even after more than twenty year. NFS is easy to set up and easy to use. This introduces how to set up the NFS server and clients. We use the Fedora system as the example. The tutorial here is for RHEL/CentOS/Fedora and derived Linux OSes. Set up an NFS Server The needed packages are nfs and rpcbind, install them by yum or dnf: # yum install nfs-utils rpcbind Configure /etc/exports to give clients the permission to use the NFS directories. » Read more