Difference between revisions of "NFS mounting a filesystem with mounts"

From MyWiki
Jump to: navigation, search
 
(One intermediate revision by the same user not shown)
Line 17: Line 17:
  
 
</source>
 
</source>
 +
<span style="color:red">'''The above did not actually work !!'''</span>

Latest revision as of 22:41, 10 April 2016

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 !!