Skip to contentSkip to conversation

multiple mounts of same share on one host?

DISCUSSION Matthias Leopold 1 participant 1 message Apr 25, 2014

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

hi,

i've got a (probably rather basic) nfs usage question. i hope this is the right place to ask, please tell me otherwise.

i'm moving webspace content to nfs shares. because of suexec restrictions i have different paths to different subsets of the content on the client, but i wonder if i can still have all of the content in one path on one exported nfs share.

example:

i need

/home/content/foo

and

/var/www/content/bar

exported share "/export" could have

/export/foo
/export/bar

AFAICS there are three options:

.) mounting /export twice on different paths on the nfs client
.) mounting /export once and doing a bind mount
.) put foo and bar in different directories and exporting/mounting them separately

which of these options would you recommend?

thx very much for help
matthias