NFS Flashcards
What is NFS? Give scenarios where your organization uses NFS
NFS stands for Network File System, and is a distributed file system protocol that allows remote access to files over a network.
Scenarios where my organization uses NFS is sharing file and directories to multiple users within our organization so that they are able to share project files stored within the NFS sever
What are NFS related daemons used on the server and client side?
Serverside: nfs-server. Client-side: nfs-server and rpcbind.
Which port needs to be opened up on the server side while configuring NFS?
Port 2049
Which is the file to export NFS file system and can you give me the syntax used in this file?
“/etc/exports
/directory_to_share ip_to_share_to(permissions,users)”
What command will you use to export /data file system to the NFS client?
exportfs -avr
On the client side how to mount the NFS exported file system?
mount -t nfs server_ip:/shared_directory /mountpoint
If a user can’t access NFS mounted file system, give all possible reasons for that
Problem with one of the following: installed packages, running services, port, network, firewall, permissions
User asks for a share how would you decide if you use samba or NFS?
Samba for windows clients and NFS for linux clients
Explain me the “root_squash” option?
Stops (squashes) a client root user from accessing the NFS server as a root access level user. Instead this option forces incoming client root users to take on the identity of an anonymous user on the server system in order to restrict their access.
What happens if we go with “no_root_squash” option what will happen?
no_root_squash will allow a root-user client to access the NFS server with the full root-level access to files. This is a security risk.
Why do you get the error that say’s stale file Handlers error?
The share directory has been removed.
Someone changed the configuration settings on the server side.
Let’s say you are trying to mount an NFS share on a server and it says Access denied you have to check whether or not the NFS share has been exported to the Server by the NAS team how would you check?
showmount -e server_ip
How do you force unmount a hung nfs share?
umount -f </mount_point>