How do I mount an NFSv4 filesystem in two locations on a single client?
by The editorial team
Contributed by Andrew Ryan
Release Found: Red Hat Enterprise Linux 5
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:
[root@host]# mkdir /mnt/other_location [root@host]# mount --bind /mnt/nfs4 /mnt/other_location
The NFSv4 filesystem is now mounted (via a bind mount) at /mnt/other_location.







April 5th, 2007 at 1:36 am
Could you accomplish the same thing with a link from the original mount point to the “other” mount point?
April 6th, 2007 at 2:52 am
Using a –bind mount work when you’re doing things like chroot; symlinks do not.
October 6th, 2007 at 11:01 am
Could you accomplish the same thing with a link from the original mount point to the “other” mount point?