using autofs ...
Hi, I posted about a week ago to this list but got no answer ... I'll try again ...
I'm trying to use configure my autofs configuration in a way that I can mount all the users directories configured using NFS ...
Here's my original line in my fstab:
x.x.x.x:/home /home nfs
defaults,rsize=32768,wsize=32768,intr,noatime,soft 0 0
I would like to configure autofs to do this job for me in case my network fails ( which happens a lot ), here's what I have:
auto.master:
/ /etc/auto.home --timeout=60
auto.home:
home -defaults,rsize=32768,wsize=32768,intr,noatime,soft
x.x.x.x:/home
This configuration tries to mount the resource in /home
When I reload my service I try to see the status of the autofs application but it doesn't show any information. When I use a different key in the auto.master and auto.home to mount the resource in for
example: /home/users like so:
auto.master:
/home /etc/auto.home --timeout=60
auto.home:
users -defaults,rsize=32768,wsize=32768,intr,noatime,soft
x.x.x.x:/home
It works ... My question is, why can't I use the "/" directory as a key name?? And how could I configure the two files so I can mount everything in "/home" ??
Thanks in advance ..
Greetings ...
Signature · 1 line
#468171
Quoted 3 lines · raespi
It works ... My question is, why can't I use the "/" directory as a key name?? And how could I configure the two files so I can mount everything in "/home" ??
Because with normal indirect mounts / would be overmounted with an autofs filesystem.
The alternative is using direct mounts (assuming autofs5) by using /- for the mount point in the master map and give the full path of the mount point as key in the map, something like this should work:
auto.master:
/- /etc/auto.home
auto.home:
/home x.x.x.x:/home
Matthias