In this article, you will learn about NFS server interview questions and answers.
If you want to learn about installation and configuration of the NFS server. So, you can visit How to set up the NFS server on CentOS/RHEL 7.
Q1: What is NFS?
NFS stands for
Network File System. It is a distributed filesystem protocol. And it is a filesystem to share the data over a network. Also, you can share other network resources like printers and storage devices. So, you can say that NFS is a way to share the files and other resources remotely.
Q2: What is the use of the NFS?
Ans: You can find some uses of NFS, which are listed below.
- You can use NFS to share files remotely.
- The data will be store on the central server. So, many users can access it over the network.
- No need to have any removable media. Because you are managing it centrally.
Q3: What is the use of the nfsstat command?
Ans: You can use the
nfsstat command to get the statistics of the
NFS server and
Q4: What is the difference between NFS and Samba?
Ans: The main difference between NFS and Samba server is that
NFS works between Linux to Linux machine while
Samba works between Linux to Linux and also Linux to Windows.
Q4: Can I update the export permissions of NFS without remount the clients?
Ans: Yes, you can edit the
/etc/exports and change the settings. So, after changing the settings only run the command
exportfs -r. That’s it.
Q5: How can you check the portmap service is running or not?
Ans: If you want to check the
portmap service is running or not. So, you can use the command
Q6: How can you check all the NFS version information?
Ans: You can check all the NFS version information, and it will be in detail. So you can use the command as mentioned below.
nfsstat -o all -234
Q7: Tell me the default port of the NFS server?
Ans: The default port of the NFS server is
Q8: How to check iostat of NFS mount points?
Ans: So, if you want to check the
iostat of the NFS mount then you can use the below command.
nfsiostat <interval> <count> <mount_point>
For example, if the mount point is
/mnt/nfsshare, and you want to check with an interval of
5 seconds and
2 counts, the command will be as below.
nfsiostat 5 2 /mnt/nfsshare
As a result, you can see on screen as below.
Q9: How to list available NFS share on local machine & remote machine?
Ans: So, if you want to list the available NFS share then you can use the below command.
showmount -e localhost
But, here, replace the
localhost with your machine
Q10: What are configuration files of the NFS server?
Ans: The main configuration file which manages the NFS server settings for a remote host is
But, if you want to fix the ports settings like RQUOTAD_PORT, MOUNTD_PORT, LOCKD_TCPPORT, LOCKD_UDPPORT, and STATD_PORT then you can find this file in
In this tutorial, you learned about NFS server interview questions and answers. So, I hope you understand, but if you have any questions, you can ask in the comment section.
Also, you can read about