how to use keys ...
Hi, i've been trying out the autofs mounter to gain more availability in my network environment ... I have a number of users created already under :
/home/.....
/home/teratux :: For example
I want to be able to automount a resource from NFS in this exact location. This is my auto.master:
/home /etc/auto.home --timeout=10
This is my auto.home:
x -ro,soft,intr,rsize=32768,wsize=32768,noatime
10.7.22.178:/home
My problem lies where the "x" is. How do I use an indirect key name in a way that any request under /home automatically fires up the automounter?? I already tried:
auto.master:
/ /etc/auto.home --timeout=10
auto.home:
home -ro,soft,intr,rsize=32768,wsize=32768,noatime
10.7.22.178:/home
With no success. The /etc/init.d/autofs status script doesn't show anything going on ... I'm using Debian as you can already imagine, a 2.6.26 standard kernel, and autofs 4.1.4
Can anyone help me??
Thanks ...
Signature · 1 line
#468171
Quoted 4 lines · raespi
/home/teratux:: For exampleI want to be able to automount a resource from NFS in this exact location.
Our setup is a bit more traditional. This is what we're doing:
$ cat /etc/auto.master # ... /nfs /etc/auto.net +auto.master
$ ypcat -k auto.master /net/vol auto.vol -rw,hard,intr /net/appl auto.appl -rw,hard,intr /net/hosts -hosts -rw,hard,intr /net/home auto.home -rw,hard,intr
$ ypcat -k auto.home ... wooledg imadev:/home/wooledg leek vandev:/home/leek ...
It's a bit higher maintenance than you were aiming for (we have one line per user account in the auto.home NIS map), but it gives user account directories directly underneath the autofs mount point (in our case it's /net/home, but it could as easily be /home). It also has the advantage of flexibility -- if the physical location of a user's home directory changes, it's just a one-line change in the auto.home map followed by an NIS map push.
We have a mixed network of HP-UX, Debian and Red Hat machines. This works on all of them.
Quoted 11 lines · raespi
Hi, i've been trying out the autofs mounter to gain more availability in my network environment ... I have a number of users created already under :
/home/.....
/home/teratux:: For exampleI want to be able to automount a resource from NFS in this exact location. This is my auto.master:
Quoted 6 lines
/home
/etc/auto.home--timeout=10This is my auto.home:
x -ro,soft,intr,rsize=32768,wsize=32768,noatime
10.7.22.178:/home
So the auto.master i scorrect. If you want to use wildcards, you can do so by using the following auto.home:
* -ro,soft,intr,rsize=32768,wsize=32768,noatime 10.7.22.178:/home/&
So if you do a cd /home/abc it tries to mount 10.7.22.178:/home/abc at this location.
Regards,
Martin