I'd like to mount two nfs folder on local linux machine (nfs4)
Is it okay to mount as following? (note 2nd mount point is overlapped with the 1st mount)
# /etc/fstab
svr1:/folder1 /mnt nfs ...
svr2:/folder2 /mnt/share nfs ...
Mount points are created on local disk before mounting(/mnt, /mnt/share)
It looks okay when I tried, but I'like to know if there might be problems later. Do I have to take care in the order of mount?
EDIT: My mistake.
local:/mnt/share has been hidden by mounting svr1:/folder1 on /mnt.
svr2:/folder2 has been mounted on /mnt/share which is actually svr1:/folder1/share.
As long as svr1:/folder1/share is empty, is this setup good enough? Or it will bring mess someday?
/mnt
is not empty before the NFS mount, the contents will be hidden. This includes the directory/mnt/share
which will need to exist onsvr1:/folder1
./mnt
directly as this might simply expanding things in the future.