Re: [Vserver] Unexpected behaviour with bind mounts

From: Herbert Poetzl <herbert_at_13thfloor.at>
Date: Mon 10 Oct 2005 - 19:09:00 BST
Message-ID: <20051010180900.GB5638@MAIL.13thfloor.at>

On Mon, Oct 10, 2005 at 02:28:01PM +0100, Jim Wight wrote:
> On Sat, 2005-10-08 at 16:22 +0200, Enrico Scholz wrote:
> > j.k.wight@ncl.ac.uk (Jim Wight) writes:
>
> > > umount /vservers/tkt/opt
> > >
> > > in post-stop (or postpost-stop),
> >
> > * these scripts are NOT executed within the vserver namespace so
> > /vservers/tkt/opt is not mounted at this place
> >
> > * there is not much need for an explicit unmount; when the last process
> > of the vserver/context dies, the namespace will not be referenced
> > anymore and an implicit unmount happens
>
> Implicit unmounts are not happening in my case. If I start and stop the
> vserver a number of times I end up with a pile of multiple identical
> mounts (according to df), but as I mentioned in my original message
> there are no corresponding entries in /proc/mounts (as there are when I
> perform the same mounts manually). The other odd thing is that df shows
> different numbers compared with the manual mount case: it shows the
> numbers for the filesystem that the mount point is in, rather than for
> the mounted filesystem.

hmm .. maybe you want to use the -n option to
mount, so that mount does not write stuff to
the mtab file?

HTH,
Herbert

> Jim
>
>
> _______________________________________________
> Vserver mailing list
> Vserver@list.linux-vserver.org
> http://list.linux-vserver.org/mailman/listinfo/vserver
_______________________________________________
Vserver mailing list
Vserver@list.linux-vserver.org
http://list.linux-vserver.org/mailman/listinfo/vserver
Received on Mon Oct 10 19:09:20 2005

[Next/Previous Months] [Main vserver Project Homepage] [Howto Subscribe/Unsubscribe] [Paul Sladen's vserver stuff]
Generated on Mon 10 Oct 2005 - 19:09:25 BST by hypermail 2.1.8