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