Mailing List Archive

[OT] need autofs help
Hi admins.

I'm trying to get autofs for mounting homes working.
server - suse with kernel 2.4.20
client - gentoo with kernel 2.6.7
But it's not an suse- gentoo- kernel issue.

The files:
#auto.master
/home /etc/autofs/auto.home

#auto.home
* server02:/data/exports/home/&

The directories:
server:
/data/exports/home/user_xyz
client:
/home/user_xyz

The logging output:

automount[30309]: starting automounter version 3.1.7, path = /home, maptype =
file, mapname = /etc/autofs/auto.home
automount[30309]: Map argc = 1
automount[30309]: Map argv[0] = /etc/autofs/auto.home
automount[30309]: mount(bind): Testing if "mount --bind" works correctly...
automount[30309]: mount(bind): calling mount
--bind /tmp/autofs-bind-414a12cd-7665/dir1 /tmp/autofs-bind-414a12cd-7665/dir2
automount[30309]: using kernel protocol version 3

automount[30309]: attempting to mount entry /home/.directory
automount[30339]: lookup(file): looking up .directory
automount[30339]: lookup(file): .directory -> server02:/data/exports/home/&
automount[30339]: expanded entry: server02:/data/exports/home/.directory
automount[30339]: parse(sun): core of entry:
server02:/data/exports/home/.directory
automount[30339]: mount(nfs): calling mkdir /home/.directory
automount[30339]: mount(nfs): calling mount -t nfs
server02:/data/exports/home/.directory /home/.directory
automount[30339]: >> mount: server02:/data/exports/home/.directory failed,
reason given by server: No such file or directory
automount[30339]: mount(nfs): nfs: mount failure
server02:/data/exports/home/.directory on /home/.directory


After the first mount attempt i have an empty /home on the client, that's why
the lookup fails and we have an .directory

The only way to get it working is
# mkdir /home/user_xyz
on the client after the first mount attempt (and ignoring the file exist
message) or to do symlinks from the clients /home/ to any other directory to
tell automount which directories must mounted.

Changing auto.home to

#auto.home
user_xyz server02:/data/exports/home/user_xyz

don't work. I have no ideas nomore.


christian