Re: aggregate NFS export
- From: Chris Cox <ccox_nopenotthis@xxxxxxxxxxx>
- Date: Tue, 24 Jul 2007 11:09:12 -0500
phil-news-nospam@xxxxxxxx wrote:
Is there any way in Linux to create an NFS export that appears to clients
as a single export, but contains more than one actual filesystem (export
a directory and other filesystems are mounted on subdirectories and are
seen in the export)? How about if those filesystems are mounted _after_
an NFS client has mounted this? An ordinary userspace file server (e.g.
FTP server, web server, RSYNC server) can see mounts on subdirectories
that happen even after they start running. Maybe some userland form of
NFS daemon?
Use the automounter and an indirect automount (perhaps... you'll see
multiple mounts as needed, but it hides the work.. maybe ok for you??)
e.g.
File auto.master:
/home auto.home -bg,intr
File auto.home:
nis01 hostnis01:/export/nis01
nis02 hostnis02:/export/nis02
Thus when I go into /home/nis01 (from a client with the above
automount files setup and the automounter running) the directory
off of the host hostnis01 gets mounted there and when I go to
/home/nis02 the directory off of host hostnis02 gets
mounted at that location.
By placing mounts under the automounter, they'll mount when
used and unmount when not in use (can be tuned).
You can even use wildcards, consider:
File auto.home:
* &:/export/home
This would allow you to access /home/whatever-machine and
that will attempt to nfs mount whatever-machine:/export/home
at that point.
Perhaps this helps... might not be exactly what you are looking
for.
You can push the automount info out via NIS or LDAP too. If you
want to control all of this from a central point. Doing this with
NIS is more portable to broad variety of *ix variants and the
plethora of version levels. Only do LDAP if you know you
can support it. You'll need to tweak /etc/nsswitch.conf to let
it know to pull the automount data from NIS or LDAP on the clients.
The software based NFS server does allow you to do some of
the kind of trickery you mentioned... however it has a PLETHORA
of limitations and will probably frustrate you eventually.
.
- References:
- aggregate NFS export
- From: phil-news-nospam
- aggregate NFS export
- Prev by Date: Re: lseek: Value too large for defined data type
- Next by Date: Re: lseek: Value too large for defined data type
- Previous by thread: Re: aggregate NFS export
- Next by thread: to make soft interrupt with AX registers in linux?
- Index(es):
Relevant Pages
|