Subject: Re: [vserver] autofs failing to umount in guest
From: Fog_Watch <db5@exemail.com.au>
Date: Tue, 29 Dec 2009 21:36:58 +1100

On Tue, 29 Dec 2009 09:06:37 +0100
Herbert Poetzl <herbert@13thfloor.at> wrote:

> try with chroot (from the host) into the guest
> data (root dir), otherwise it is probably apples
> and oranges ...
Is this what you were thinking:

hostname mnt # mount -t proc none /vservers/as/proc/
hostname mnt # chroot /vservers/as/ /bin/bash
hostname / # /etc/init.d/autofs start
* Starting
automounter...                                                 [ ok ]
hostname / # df | grep cdrom
df: `/usr/portage/packages': No such file or directory
hostname / # cd /mnt/cdrom
hostname cdrom # df | grep cdrom
df: `/usr/portage/packages': No such file or directory
/dev/sr0                717098    717098         0
100% /mnt/removables/cdrom
hostname cdrom # cd ~
hostname ~ # df | grep cdrom
df: `/usr/portage/packages': No such file or directory
hostname ~ # exit
exit
hostname mnt # umount /vservers/as/proc/

That is, when chrooted into the vserver autofs operates correctly.

> please try with lsof +d and lsof +D as well ...
When in the vserver:

hostname ~ # df | grep cdrom
/dev/sr0                717098    717098         0
100% /mnt/removables/cdrom
hostname ~ # lsof +d /mnt
hostname ~ # lsof +D /mnt
hostname ~ # 

Nothin' much there.

Regards

Fog_Watch
-- 
Lose wait.  Get Gentoo.