Re: [vserver] autofs failing to umount in guest

From: Fog_Watch <db5_at_exemail.com.au>
Date: Tue 29 Dec 2009 - 10:36:58 GMT
Message-ID: <20091229213658.17e9e3c1@ns.fogwatch.com.au>

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.
Received on Tue Dec 29 10:37:42 2009
[Next/Previous Months] [Main vserver Project Homepage] [Howto Subscribe/Unsubscribe] [Paul Sladen's vserver stuff]
Generated on Tue 29 Dec 2009 - 10:37:45 GMT by hypermail 2.1.8