Exercise: NFS automount
Install autofs on n01 (NFS client).
Make sure /NFS/home directory is unmounted:
If it shows in the list of mounted file systems, unmount it.
Remove directory /NFS/home:
Configure the master map file, /etc/auto.master, and specify the
timeout 60 seconds. The content of file /etc/auto.master should be
/NFS /etc/auto.exports --timeout=60
Configure the exports map file, /etc/auto.exports:
home -rw,fstype=nfs4 master:/NFS/home
Restart or reload autofs:
Access the file system and check if it gets mounted:
Step out of the directory:
Run command df -h again in about two minutes to see if it gets unmounted automatically after the inactivity period.