NFS Flashcards

1
Q

Diff NFSv3 / NFSv4

A

NFSv3: TCP + UDP
NFSv4: TCP Only

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

NFS mount modes

A
  1. Manually with mount
  2. Persistent at boot with vstab
  3. On Demand with an automounter
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

Install nfs client

A

dnf install nfs-utils

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

Manually mount nfs /shares/public to local /public

A
mount -t nfs serverb:/shares/public /public
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

Persistently mount nfs /shares/public to local /public

A
serverb:/shares/public  /public  nfs  rw,sync  0 0
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

What is automounter?

A

service (autofs) that automatically (un)mounts file systems and NFS exports on demand

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

automounter advantage

A

1) Auto unmounting protectes from unexpected corruption opening
2) in case of redundant servers, automounter can select the fastest connection each time that a new file system is requested
3) File systems mounted through the automounter are available to all users

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

direct mount

A

file system mounts to an unchanging, known mount point location

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

Indirect moint

A

mount point location is not known until the mount demand occurs (e.g. remote-mounted home directories)

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

Install automounter

A
sudo dnf install autofs nfs-utils
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

Use of master map file

A

1) identifies the base directory for mount points,
2) identifies the mapping file to create the automounts.

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

Where are the master map files located

A
/etc/auto.master.d
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

Extension of the master map file?

A

.autofs

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

Content of master map file for indirect mapping

A
/shares. /etc/auto.demo
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

Fully qualified path of the mount point

A

Master map mount point + Mapping file mount point

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

Example content of an indirect mapping file

A
work   -rw,sync  servera:/shares/work
17
Q

Formating rules for mount options

A
  1. start with dash
  2. Comma separated
  3. No white space
18
Q

Mapping file content when NFS server exports many directories

A
*    -rw,sync   serverb:/shares/&
19
Q

Autom master config for direct map

A
/-  /etc/auto.direct
20
Q

What is the key difference between indirect and direct mapping file content

A

Mount point in direct mapping case must be absolute

21
Q

Options for map files with nfs4 file system

A
-rw,sync,fstype=nfs4
22
Q

After each change of fstab what should you not forget?

A
systemctl daemon-reload