Re: [vserver] Problems with scripts

From: Gustavo <lungpu_at_gmail.com>
Date: Fri 17 Aug 2007 - 12:38:47 BST
Message-ID: <624a23b80708170438j21134ad5q87483fbe39a0769f@mail.gmail.com>

On 8/16/07, Herbert Poetzl <herbert@13thfloor.at> wrote:
>
> > > actually you do not need to care about unmounting it,
> > > if you mounted it properly (inside the guest namespace)
> > > as it will get unmounted when the context disappears
> >
> > Not really, it is unmounted but remains on the mount tab on vserver
>
> the mtab should/can be rewritten on guest startup
> so that should not be a problem

I think that too, but for some reason in the host mount table the mount
point of the loop is not updated though the loop is correctly unmounted on
vserver stop, maybe I should mount it in any other place instead of
initialize script, I´ll try on start/stop script with checking of a file on
config dir.

> stop, and I also need to free the loop device after unmount.
> >
> > > Do you know any alternative for doing this?
> > >
> > > yeah, I would simply put it into the config fstab and
> > > be done with it, the tolls will automagically mount it
> > > for you and the kernel will take care of unmounting
> >
> > would it manage to free the loop?
>
> good point, not sure it will, personally I doubt it
> but that could be a simple command in the shutdown
> script, just to free up the device

yes, same as above, I´ll try on the vserver stop init script since
postpost-stop doesn´t works for this.

note: you do not have that issue with LVMs :)

But I still need additional partitions :(
I was trying to simulate the native scheme with an additional mount, so if
you want to backup a vserver with it filesystem it shouldn´t be much
problem, actually I made some scripts for that too :)

Promise to share them with you all when they work fine.

Thanks
Gustavo
Received on Fri Aug 17 12:38:59 2007

[Next/Previous Months] [Main vserver Project Homepage] [Howto Subscribe/Unsubscribe] [Paul Sladen's vserver stuff]
Generated on Fri 17 Aug 2007 - 12:39:05 BST by hypermail 2.1.8