hi simon
> Will this mean you will be able to mount hostname:/ onto /net/hostname
> and then hostname:/usr onto /net/hostname/usr ?
it can do that now...
> This would be really useful with the new knfsd which doesn't give
> access to partitions mounted below / when / is exported. Or do you
> know of some other way around this?
for autofs.... I kludged it to do /net/hostname...works fine...
diff /Net/server1/etc/passwd /Net/home1/etc/passwd
ls -l /Net/*/etc/group
diff /.autofs/server1/etc/passwd /.autofs/home1/etc/passwd
if you have 5 machines or 500.... I'm fairly sure this schem will still
work.... just need a way to distribute the files to the 500 machines
and each one has to have a minimum level of tweeks ( autofs_fix.pl for example )
-
-
-
for each host:/export exporting whatever you wnat them them to see
/tmp *.yourdomain.com(rw,no_root_squash)
/export *.yourdomain.com(rw)
/home/usr *.yourdomain.com(rw)
/ *.yourdomain.com(ro)
for the mail server exporting /var/spool/mail
mail:/export
/var/spool/mail *.yourdomain.com(rw)
for the home server exporting /home
home:/export
/home *.yourdomain.com(rw)
-
- for the autofs part
-
For your each linux box importing other stuff
host:/etc/auto.master ( i like to use /.autofs for my mount point)
/.autofs /etc/auto.misc --timeout 600
--
-- you may configure autofs to whatever way you want within autofs' capabilities
--
host:/etc/auto.misc
# incoming/outgoing mail queue
mail -fstype=nfs,soft,intr mailServer:/var/spool/mail
#
# backup each local pc onto one home server and backup only one pc onto tape
home -fstype=nfs,soft,intr homeServer:/home
...
# users home dir on local pc
usr1 -fstype=nfs,soft,intr home1:/home/usr1
usr2 -fstype=nfs,soft,intr home2:/home/usr2
usr3 -fstype=nfs,soft,intr home3:/home/usr3
...
# other boxes, allowing read access to /
host1 -fstype=nfs,soft,intr host1:/
host2 -fstype=nfs,soft,intr host2:/
host3 -fstype=nfs,soft,intr host3:/
...
# other boxes, allowing read access to /
sun -fstype=nfs,soft,intr sun:/
sgi -fstype=nfs,soft,intr sgi:/
hp -fstype=nfs,soft,intr hp:/
host:# cd /home ; mv home home.orig ; ln -s /.autofs/home .
host:# cd /var/spool ; mv mail mail.orig ; ln -s /.autofs/mail .
restart nfs and autofs everything and ls -l /Net/{anyhosts}/etc/* should all work...
have fun
alvin
http://www.Linux-Consulting.com/Amd_AutoFS/autofs-HOWTO.html