are multiple FSIDs supported?
Subsystems (2)
Hello,
I'm building an NFSv4 FileServer. My goal is to service multiple machines on a LAN, each with their own, isolated namespace (I'm not sure that's the right terminology).
Reading the man page it seems that only ONE fsid=0 export is allowed per server. And that subdirectories of that root CAN be exported, but always under the same/one root.
That doesn't seem like "good isolation" to me.
My goal would be to export, for example
/nfs1 & it's subdirs ONLY to LAN box1
/nfs2 & it's subdirs ONLY to LAN box2
etc
I've seen some mentions & discussion online of multiple-fsid's, where /nfs1 would be exported as a root under fsid=0, /nfs2 under fsid=1, etc.
But this approach doesn't look like its currently supported or recommended. Even if it was I haven't found anything that says how a nfsv4 client would ADDRESS the specific fsid's. Something in the mount's URI I guess.
I know I might still be stuck in NFSv3 thinking about this, and NFSv4 subdirs might be isolated "well enough".
BenDJ
A message that is not in the archive (sent off-list or not yet received): babafd2f0910231132n464da0crc2a5cc0427af9a40-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org
Quoted 10 lines · Ben DJ
Hello,
I'm building an NFSv4 FileServer. My goal is to service multiple machines on a LAN, each with their own, isolated namespace (I'm not sure that's the right terminology).
Reading the man page it seems that only ONE fsid=0 export is allowed per server. And that subdirectories of that root CAN be exported, but always under the same/one root.
Quoted 7 lines
That doesn't seem like "good isolation" to me.
My goal would be to export, for example
/nfs1 & it's subdirs ONLY to LAN box1
/nfs2 & it's subdirs ONLY to LAN box2
etc
Multiple export namespaces aren't currently supported.
I'd like to some day, though I'd prefer to vary the namespace based on server ip address instead of by client ip address.
But for now I'd think just something like:
/nfs *(ro,fsid=0,...) /nfs/1 box1(rw,nohide,crossmnt) /nfs/2 box2(rw,nohide,crossmnt)
should server your purposes. box1 will still be able to see that a directory named /nfs/2 exists, but it shouldn't be able to descend into it. (And vice-versa for box2 and /nfs/1.)
--b.
Quoted 17 lines
I've seen some mentions & discussion online of multiple-fsid's, where /nfs1 would be exported as a root under fsid=0, /nfs2 under fsid=1, etc.
But this approach doesn't look like its currently supported or recommended. Even if it was I haven't found anything that says how a nfsv4 client would ADDRESS the specific fsid's. Something in the mount's URI I guess.
I know I might still be stuck in NFSv3 thinking about this, and NFSv4 subdirs might be isolated "well enough".
BenDJ
--
To unsubscribe from this list: send the line "unsubscribe linux-nfs" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
Hi Bruce,
On Fri, Oct 23, 2009 at 12:00 PM, J. Bruce Fields <[email protected]=
Quoted 10 lines
Quoted 5 lines · wrote:
My goal would be to export, for example
=A0/nfs1 & it's subdirs ONLY to LAN box1
=A0/nfs2 & it's subdirs ONLY to LAN box2
=A0etcMultiple export namespaces aren't currently supported.
I'd like to some day, though I'd prefer to vary the namespace based o=
n
Quoted 10 lines
server ip address instead of by client ip address.
But for now I'd think just something like:
=A0 =A0 =A0 =A0/nfs =A0 =A0*(ro,fsid=3D0,...)
=A0 =A0 =A0 =A0/nfs/1 =A0box1(rw,nohide,crossmnt)
=A0 =A0 =A0 =A0/nfs/2 =A0box2(rw,nohide,crossmnt)should server your purposes. =A0box1 will still be able to see that a directory named /nfs/2 exists,
There are a few situations where I'm going to have to figure out a way around this. I.e., where I don't want boxes to even "be able to see" other boxes' dirs.
Quoted 2 lines
but it shouldn't be able to descend into
it. =A0(And vice-versa for box2 and /nfs/1.)
Thanks for the suggestion and explanation. I'd seen the crossmnt option, but didn't understand how it was really different than nohide.
BenDJ