In order to export /usr and /bin via NFSv4, /exports was created and contains working bind mounts to /usr and /bin. The following lines are added to /etc/exports on the NFS server:

/exports      192.0.1.0/24(rw,sync,fsid=0,crossmnt,no_subtree_check)
/exports/usr  192.0.2.0/24(rw,sync,fsid=0,crossmnt,no_subtree_check)
/exports/bin  192.0.2.0/24(rw,sync,fsid=0,crossmnt,no_subtree_check)

After running

mount -t nfs server:/ /mnt

of an NFS-Client, it is observed that /mnt contains the content of the server's /usr directory instead of the content of the NFSv4 root folder.

Which option in /etc/exports has to be changed or removed in order to make the NFSv4 root folder appear when mounting the highest level of the server? (Specify ONLY the option name without any values or parameters.)

Answer: fsid

题解

「fsid」可以设置每个 NFS 的 ID,大部分的情况下不需要自己设置 ID。「0」或是「root」表示分享目录的根目录的 ID,也就是说可以借由设置「fsid=0」或是「fsid=root」,来让某个目录变成是 NFS 的根目录。

此题的「fsid=0」用法很怪,导致「/exports/usr」变成是 NFS 的根目录,应该要移除掉。