Tuesday, March 27, 2007

It is not possible to directly mount an NFSv4 filesystem in two locations on the same client. Instead, the same functionality can be achieved by using a bind mount to mount the first mount point at a second location. In order to achieve this:

Create a mount point:

[root@host]# mkdir /mnt/nfs4

Mount the server unto the mount point:

[root@host]# mount -t nfs4 server:/ /mnt/nfs4

The NFSv4 filesystem is now mounted at /mnt/nfs4. If it is necessary to mount this filesystem at another location, a bind mount must be used: