怎么把一个NFS4的文件系统挂载到一个客户端的两个位置?
解决方法:

发行版本:Red Hat Enterprise Linux 5

要直接把一个NFS4的文件系统挂载到一个客户端的两个位置,是不可能的。可以使用bind moud,把第一个挂载点挂载到第二个位置,来实现同样的功能。这样来做:

  1. 创建一个挂载点:
     [root@host]# mkdir /mnt/nfs4
  2. 把服务器挂到这个挂载点上:
     [root@host]# mount -t nfs4 server:/ /mnt/nfs4
  3. NFS4文件系统现在被挂载到/mnt/nfs4。要把它挂载到另外一个位置,使用bind mount:
     [root@host]# mkdir /mnt/other_location
     [root@host]# mount --bind /mnt/nfs4 /mnt/other_location
     现在NFS4文件系统被挂载到了(使用bind mount)/mnt/other_location。