NFS mounting a filesystem with mounts

From MyWiki
Revision as of 22:41, 10 April 2016 by George2 (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

Reference - http://unix.stackexchange.com/questions/42131/how-to-properly-export-and-import-nfs-shares-that-have-subdirectories-as-mount-p

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 OP
this line
 
    /srv/foo    *(rw,fsid=0,nohide,no_subtree_check)
has worked in my case instead of
 
    /srv/foo    *(rw,nohide,no_subtree_check)

The above did not actually work !!