NFS Flashcards
Diff NFSv3 / NFSv4
NFSv3: TCP + UDP
NFSv4: TCP Only
NFS mount modes
- Manually with mount
- Persistent at boot with vstab
- On Demand with an automounter
Install nfs client
dnf install nfs-utils
Manually mount nfs /shares/public to local /public
mount -t nfs serverb:/shares/public /public
Persistently mount nfs /shares/public to local /public
serverb:/shares/public /public nfs rw,sync 0 0
What is automounter?
service (autofs) that automatically (un)mounts file systems and NFS exports on demand
automounter advantage
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
direct mount
file system mounts to an unchanging, known mount point location
Indirect moint
mount point location is not known until the mount demand occurs (e.g. remote-mounted home directories)
Install automounter
sudo dnf install autofs nfs-utils
Use of master map file
1) identifies the base directory for mount points,
2) identifies the mapping file to create the automounts.
Where are the master map files located
/etc/auto.master.d
Extension of the master map file?
.autofs
Content of master map file for indirect mapping
/shares. /etc/auto.demo
Fully qualified path of the mount point
Master map mount point + Mapping file mount point