NFS Interview Questions & Answers part 2
To retrieve a list of clients connected to the NFS server, use the showmount command from a shell prompt. To also show the directories the clients are connected to, use the showmount -a command.
nfsd.o kernel module
The rpc.mountd program implements the NFS mount protocol. When receiving a MOUNT request from an NFS client, it checks the request against the list of currently exported file systems. If the client is permitted to mount the file system, rpc.mountd obtains a file handle for requested directory and returns it to the client.
Q: –Name of Configuration file for NFS Server ?
The UID and GID of exported files are mapped to the user anonymous. It is good for public directories.
Q: – Explain "exportfs" command?
The exportfs command is used to maintain the current table of exported file systems for NFS.
Q: – What is meaning of "no_root_squash" option ?
Treat remote root user as local root. Do not map requests from root to the anony-
mous user and group ID.
if a file request fails, the NFS client will report an error to the process on the client machine requesting the file access. if it cannot be satisfied (for example, the server is down), then it quits. This is called soft mounting.
If a file request fails, the NFS client will report an error to the process on the client machine requesting the file access. if it cannot be satisfied, then it will not quit until the request is satisfied. This is called Hard mounting.
Submitted By:-Jai Kundu Email-ID: – email@example.com