Re: [Vserver] lvremove: Can't remove open logical volume

2006-09-19 Thread Mehdi Bennani
Hello, thanks a lot for your answer. You can see this message posted by Daniel Hokka Zakrisson : http://archives.linux-vserver.org/200607/0139.html . His web site has this patch and some others. The debian package integrates it with others. I tried to apply the patch over 0.30.210 source and

Re: [Vserver] lvremove: Can't remove open logical volume

2006-09-19 Thread Mehdi Bennani
Hi Christian and Rik, Thank you for the umounting in all namespaces solution, it seems to partially solve the problem. But, for a reason I can't understand, some logical volunes still remain open even after performing vnamespace -e [xid] umount for each running context. Best regards,Mehdi

Re: [Vserver] lvremove: Can't remove open logical volume

2006-09-19 Thread Mehdi Bennani
SOLVED ! ! ! Hi all, I just found out that vnamespace -e [namespace of context xid] umount /your/lvm/volume must be performed TWO times in each namespace: -with /your/lvm/volume as the mountpoint, i.e /vservers/vs01 -with /your/lvm/volume as the lvm device, i.e /dev/volume1/vs01

Re: [Vserver] lvremove: Can't remove open logical volume

2006-09-19 Thread Herbert Poetzl
On Tue, Sep 19, 2006 at 01:29:26PM +0200, Mehdi Bennani wrote: SOLVED ! ! ! Hi all, I just found out that vnamespace -e [namespace of context xid] umount /your/lvm/volume must be performed TWO times in each namespace: -with /your/lvm/volume as the mountpoint, i.e

Re: [Vserver] lvremove: Can't remove open logical volume

2006-09-17 Thread Herbert Poetzl
On Fri, Sep 15, 2006 at 11:25:46AM +0200, Mehdi Bennani wrote: Hi, Try to unmount your volume for each active name space: vnamespace -e [namespace of context xid] umount /your/lvm/volume Thanks a lot, but my lv's are the root of each vserver so I have to stop them before umounting, then

[Vserver] lvremove: Can't remove open logical volume

2006-09-15 Thread Mehdi Bennani
Hello, I am setting up a host with LVM volumes for each vserver. I made scripts for vserver creation which include on-the-fly Logical Volume creation, formating and mount, that works pretty well. Things are getting worse when I try to delete a Logical Volume after having the vserver stopped and

Re: [Vserver] lvremove: Can't remove open logical volume

2006-09-15 Thread Christian Affolter
Hi! I am setting up a host with LVM volumes for each vserver. I made scripts for vserver creation which include on-the-fly Logical Volume creation, formating and mount, that works pretty well. Things are getting worse when I try to delete a Logical Volume after having the vserver stopped

Re: [Vserver] lvremove: Can't remove open logical volume

2006-09-15 Thread Rik Bobbaers
Try to unmount your volume for each active name space: vnamespace -e [namespace of context xid] umount /your/lvm/volume i scripted it like this: gandalf:~# cat /usr/local/bin/unmount_vserver #!/bin/sh if [ -n $1 ] then for i in `ls -1 /proc/virtual | egrep -v 'info|status'`; do vnamespace

Re: [Vserver] lvremove: Can't remove open logical volume

2006-09-15 Thread Mehdi Bennani
Hi, Try to unmount your volume for each active name space: vnamespace -e [namespace of context xid] umount /your/lvm/volume Thanks a lot, but my lv's are the root of each vserver so I have to stop them before umounting, then the namespace is no longer in use and I get: vnamespace:

Re: [Vserver] lvremove: Can't remove open logical volume

2006-09-15 Thread Christian Affolter
Try to unmount your volume for each active name space: vnamespace -e [namespace of context xid] umount /your/lvm/volume Thanks a lot, but my lv's are the root of each vserver so I have to stop them before umounting, then the namespace is no longer in use and I get: vnamespace:

Re: [Vserver] lvremove: Can't remove open logical volume

2006-09-15 Thread Rik Bobbaers
Mehdi Bennani wrote: Hi, Thanks a lot, but my lv's are the root of each vserver so I have to stop them before umounting, then the namespace is no longer in use and I get: vnamespace: vc_enter_namespace(): No such process Obviously if I try it before stopping the vserver, I get: umount:

Re: [Vserver] lvremove: Can't remove open logical volume

2006-09-15 Thread Xavier Montagutelli
On Friday 15 September 2006 11:38, Rik Bobbaers wrote: Mehdi Bennani wrote: Hi, Thanks a lot, but my lv's are the root of each vserver so I have to stop them before umounting, then the namespace is no longer in use and I get: vnamespace: vc_enter_namespace(): No such process