Skip to contentSkip to conversation

autofs mount remounted

DISCUSSION Cedric BRINER 2 participants 2 messages Dec 22, 2005 – Dec 23, 2005 Kernel automounter

lore
Share & tools
lore
#0 lore raw

hi,

I've the following situation where /home is managed by autofs and than I'd like to do a:
mount --bind /home /var/chroot/home

when I do a: ls /var/chroot/home my machine totaly hangs and have to shut down with the power button :( Is there a solution to this or should I just have twice an automounter:
- one which manage /home
- other which mange /var/chroot/home.

I'm wanting to do this, because I try to follow <http://alioth.debian.org/docman/view.php/30192/21/debian-amd64-howto.html#id27>
when my /home is managed with automount.

any idea ?

Ced.

Signature · 2 lines
Cedric BRINER
Geneva - Switzerland
maintainer
#1 lore raw
Quoted 9 lines · Cedric BRINER

hi,

I've the following situation where /home is managed by autofs and than I'd like to do a:
mount --bind /home /var/chroot/home

when I do a: ls /var/chroot/home my machine totaly hangs and have to shut down with the power button :( Is there a solution to this or should I just have twice an automounter:
- one which manage /home
- other which mange /var/chroot/home.

No, the path /var/chroot/home/<some key> doesn't match /home/<some key>. Before you ask why not just match the key, because that's the path the autofs filesystem is mounted on and the daemon relies on this for mounting and umounting filesystems.

Your machine shouldn't hang.
What kernel version and autofs4 kernel version do you have? A similar issue was fixed not long ago (ie. not to panic the kernel).

I would like to make this process path independent for the new version of autofs but as I said above mounting and umounting is heavily dependent of the path.

Even if I could do that I have seen that the two directory entries are different at the kernel level under a bind mount, as they should be. I'm not sure how I can handle that at all.

Ian