Server A exports directory /srv via NFS with option nohide. A subdirectory within /srv, /srv/foo, is a mount point for another location on the NFS server using --bind option, like server# mount --bind /bar/foo/ /srv/foo/Client B imports A:/srv and mounts it on /mnt/srv using NFS. Contents of /mnt/srv are the contents of A:/srv.The problem is that /mnt/srv/foo is empty, while I'm expecting to see the contents of A:/bar/foo/ there.How to properly export and import NFS shares that have subdirectories as mount points also?
How to properly export and import NFS shares that have subdirectories as mount points also?
mount;nfs
Looks like every mount sub-point must be exported by the NFS server in order to be visible for clients. In the situation above the /etc/exports file should look like the following:/srv        *(rw,fsid=0,nohide,no_subtree_check)/srv/foo    *(rw,nohide,no_subtree_check)Then, importing /srv on the client with option -t nfs will make both /srv and /srv/foo properly available.edit by OPthis line      /srv/foo    *(rw,fsid=0,nohide,no_subtree_check)has worked in my case instead of    /srv/foo    *(rw,nohide,no_subtree_check) 