Chain-mounting of NFS Drives (Cool idea, is it possible?)
I was curious as to whether the possibility of "chain-mounting" drives under Linux machines is possible.
For example, I have two machines which have large disk space and have directories which are mountable using NFS by other Linux machines. Each computer that wants to access these drives has to edit their /etc/fstab file in order to allow the drive mounting to occur during boot. In a large company (or a company that is growing rapidly), physically editing every fstab on every machine in order to access an NFS share is a pain.
I was curious if it was possible to, what I call, "chain-mount" the drives. This means all Linux machines in the company would be installed, and set up to mount two "gateway" machines automatically via fstab. (There are 2 in case 1 of the machines fails, the connection to the other computers is maintained)
All users in the company can access these "gateway" machines mounted directories as usual. Now here's the trick:
Is it possible to mount a directory within the shared directory of the "gateway" machines? This way, I can add as many new computers to the network, and only have to mount and edit the /etc/fstab files on the two gateway machines, because in theory, any directory under a mounted directory should also be mounted... correct?
I have tried this theory already, and was unable to successfully mount a directory under another remote mount. I know it's difficult to explain, and I apologize because I'm not the best at describing something without drawing a picture of it. :D But I figure you guru's shouldn't have a problem understanding what I'm trying to say. :) Thanks in advance!
NFS mounts of 'stacked' mounts
In a sense, what you are asking is, 'Can you export a mountpoint from one system (NFS Server) so that ALL discrete mountpoints underneath that mountpoint also get mounted on the clients.' - right?
I would have to say this is not supported in any flavor of Unix or Linux that I am aware of. If so, you could (erroneously) export your root directory ('/') and have absolutely everything underneath it available on the client system with one mount.
mount from a mounted nfs mounted nfs...
In a sense you have understood.
I would like to "mount a directory from a nfs server (B) which is already itself a nfs-mounted directory from another nfs server (A)."
The error occurs a "privelege problem, permission denied"...
If you said you haven't heard about this, well thanks in advance.