You are not logged in.

#1 2012-04-30 20:57:16

hbweb500
Member
Registered: 2010-03-13
Posts: 23

A clumsy way of fixing hidden NFS subfolders

On my server, I have a hard drive with all of my data mounted to "/dc" (bad practice, I know). On this drive, I have a FUSE mount on "/dc/documents/tags". Furthermore, I keep all of my NFS shares listed in "/exports" by running

mount --bind /dc /exports/dc

On the client I can see all files in "/dc" except for those in "/dc/documents/tags", which appears empty. To fix this, I read about and applied the "nohide" option in "/etc/exports". This didn't work. I kept fiddling around, and resolved on the following "/etc/exports":

/export/dc 192.168.1.0/255.255.255.0(rw,async,nohide,no_subtree_check,insecure,no_root_squash)
/export/tags 192.168.1.0/255.255.255.0(fsid=1,rw,async,nohide,no_subtree_check,insecure,no_root_squash)

Where even though "tags" is a subfolder of "dc", I have it bound by running:

mount --bind /dc/documents/tags /exports/tags

On the client, I have to mount twice:

mount server:/export/dc foo
mount server:/export/tags foo/documents/tags

This works, but it seems clumsy. Is there a better way of doing this?

Offline

Board footer

Powered by FluxBB