NFS Flashcards

1
Q

What is NFS ? Give scenarios where your organization uses NFS

A

*network filesystem - shared filesystem can be shared across systems.
*if one folder/directory/file has to be shared across multiple systems you go with NFS so it will update across the network .
*real-time synch - a the scripts, files, directories are available across all the systems on the network.

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

What daemons are used on server and client slide?

A

*server
Nfs-server
Rpcbind
*client
Rpcbind

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

For NFS which port needs to be opened up on server side?

A

Port 2049 - nfs
Port 111 -portmapper
Use rcpinfo -p will show the ports needed.

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

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

A

/etc/exports
NFSshare ip (rw,sync,no_root_squash)
Exportfs -avr

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
All verbose reexport

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

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

A

*showmount -e
*Make a directory to mount the NFS share and most the share as mount type NFS.
*Mount -t nfs <nfsserveripaddress> :/nfs-sharemnt/nfs-shareclient
*vi /etc/fstab</nfsserveripaddress>

<nfsserverIP>:/nfs-dir /mountpoint nfs defaults_netdev 0 0
</nfsserverIP>

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

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

A

*the client might not have access to the share filesystem.
*firewalld is blocking the port for the nfs.
*export file isn’t properly configured (syntax is wrong)
*selinux conflict
*service is down on server

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

I will go with nfs because it shares all types of file systems on the network. Meanwhile Zamba could share only Linux files to the windows network.

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

Explain me te “root_squash” option?

A

It prevents remote users from having superuser (root) privileges on remote NFS- mounted volumes.

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

Allows root user on the NFS client host to access the NFS-mounted directory with the same rights and privileges that the superuser would normally have.

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

Why do you get the error that says stale file handlers error?

A

Any type of change in the mounted file’s for example deletes or renames . The file become stale nfs server will become hung

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 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 check?

A

*Assuming that yum install nfs-utils is there.
*service was started nfs-server.
*configuration nfs server.
*configuration nfs client.

Showmount -e on the clients side

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 -l <nfsshare>
L is lazy mount</nfsshare>

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