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

From MyWiki
Jump to: navigation, search
(Created page with "Reference - http://unix.stackexchange.com/questions/42131/how-to-properly-export-and-import-nfs-shares-that-have-subdirectories-as-mount-p <source lang="test"> Looks like eve...")
 
Line 1: Line 1:
 
Reference - http://unix.stackexchange.com/questions/42131/how-to-properly-export-and-import-nfs-shares-that-have-subdirectories-as-mount-p
 
Reference - http://unix.stackexchange.com/questions/42131/how-to-properly-export-and-import-nfs-shares-that-have-subdirectories-as-mount-p
  
<source lang="test">
+
<source lang="text">
 
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:
 
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:
  

Revision as of 17:29, 1 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)