NFS Flashcards

1
Q

What is NFS? Give scenarios where your organization uses NFS

A

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

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

What are NFS related daemons used on the server and client side?

A

Serverside: nfs-server. Client-side: nfs-server and rpcbind.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

Which port needs to be opened up on the server side while configuring NFS?

A

Port 2049

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

Which is the file to export NFS file system and can you give me the syntax used in this file?

A

“/etc/exports
/directory_to_share ip_to_share_to(permissions,users)”

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

What command will you use to export /data file system to the NFS client?

A

exportfs -avr

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

On the client side how to mount the NFS exported file system?

A

mount -t nfs server_ip:/shared_directory /mountpoint

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

If a user can’t access NFS mounted file system, give all possible reasons for that

A

Problem with one of the following: installed packages, running services, port, network, firewall, permissions

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

User asks for a share how would you decide if you use samba or NFS?

A

Samba for windows clients and NFS for linux clients

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

Explain me the “root_squash” option?

A

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.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

What happens if we go with “no_root_squash” option what will happen?

A

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.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

Why do you get the error that say’s stale file Handlers error?

A

The share directory has been removed.

Someone changed the configuration settings on the server side.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

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?

A

showmount -e server_ip

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

How do you force unmount a hung nfs share?

A

umount -f </mount_point>

How well did you know this?
1
Not at all
2
3
4
5
Perfectly