Hello all, I have a problem with removing the LVM partition that is used by windows vps. When I tried to remove the LVM partition, I got the error "Can''t remove open logical volume ." So I run parted /dev/VolGropu00/xxx then executed "rm 1", I got the Error: Partition /dev/mapper/VolGroup00-xxxp1 is being used. You must unmount it before you modify it with Parted. Anyone can tell me how to unmount it? Thanks. _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Taschik, Daniel
2009-Dec-01 10:48 UTC
Re: [Xen-users] can not remove windows vps from hard disk
Hello, you can unmount it with umount /dev/VolGropu00/xxx or type in mount and look what it tells you how your device is called. Cheers Daniel On 01.12.2009, at 11:43, Jingyun He wrote:> Hello all, > I have a problem with removing the LVM partition that is used by windows vps. > When I tried to remove the LVM partition, I got the error "Can''t > remove open logical volume ." > > So I run parted /dev/VolGropu00/xxx > then executed "rm 1", > > I got the Error: Partition /dev/mapper/VolGroup00-xxxp1 is being used. > You must unmount it before you modify it with Parted. > > Anyone can tell me how to unmount it? > > Thanks. > > _______________________________________________ > Xen-users mailing list > Xen-users@lists.xensource.com > http://lists.xensource.com/xen-users_______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Jingyun He
2009-Dec-01 10:51 UTC
Re: [Xen-users] can not remove windows vps from hard disk
that doesn''t work, umount: /dev/VolGroup00/xxx: not mounted also the result of command "mount" doesn''t have any thing related to lvm partition xxx. This is what I was confused. On Tue, Dec 1, 2009 at 11:48 AM, Taschik, Daniel <Daniel.Taschik@student.hpi.uni-potsdam.de> wrote:> Hello, > > you can unmount it with > > umount /dev/VolGropu00/xxx > > or type in mount and look what it tells you how your device is called. > > Cheers > > Daniel > > On 01.12.2009, at 11:43, Jingyun He wrote: > >> Hello all, >> I have a problem with removing the LVM partition that is used by windows vps. >> When I tried to remove the LVM partition, I got the error "Can''t >> remove open logical volume ." >> >> So I run parted /dev/VolGropu00/xxx >> then executed "rm 1", >> >> I got the Error: Partition /dev/mapper/VolGroup00-xxxp1 is being used. >> You must unmount it before you modify it with Parted. >> >> Anyone can tell me how to unmount it? >> >> Thanks. >> >> _______________________________________________ >> Xen-users mailing list >> Xen-users@lists.xensource.com >> http://lists.xensource.com/xen-users > >_______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Fajar A. Nugraha
2009-Dec-01 12:20 UTC
Re: [Xen-users] can not remove windows vps from hard disk
On Tue, Dec 1, 2009 at 5:43 PM, Jingyun He <jingyun.ho@gmail.com> wrote:> Hello all, > I have a problem with removing the LVM partition that is used by windows vps. > When I tried to remove the LVM partition, I got the error "Can''t > remove open logical volume ."As silly as this question might sound, is the windows vps still running? -- Fajar _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Jingyun He
2009-Dec-01 12:52 UTC
Re: [Xen-users] can not remove windows vps from hard disk
I executed "xm destroy" to stop the vps. On Tue, Dec 1, 2009 at 1:20 PM, Fajar A. Nugraha <fajar@fajar.net> wrote:> On Tue, Dec 1, 2009 at 5:43 PM, Jingyun He <jingyun.ho@gmail.com> wrote: >> Hello all, >> I have a problem with removing the LVM partition that is used by windows vps. >> When I tried to remove the LVM partition, I got the error "Can''t >> remove open logical volume ." > > As silly as this question might sound, is the windows vps still running? > > -- > Fajar >_______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Antonino Catinello
2009-Dec-01 12:58 UTC
AW: [Xen-users] can not remove windows vps from hard disk
Try to kill the qemu process if it''s still running. -----Ursprüngliche Nachricht----- Von: xen-users-bounces@lists.xensource.com [mailto:xen-users-bounces@lists.xensource.com] Im Auftrag von Jingyun He Gesendet: Dienstag, 1. Dezember 2009 13:53 An: Fajar A. Nugraha Cc: xen-users@lists.xensource.com Betreff: Re: [Xen-users] can not remove windows vps from hard disk I executed "xm destroy" to stop the vps. On Tue, Dec 1, 2009 at 1:20 PM, Fajar A. Nugraha <fajar@fajar.net> wrote:> On Tue, Dec 1, 2009 at 5:43 PM, Jingyun He <jingyun.ho@gmail.com> wrote: >> Hello all, >> I have a problem with removing the LVM partition that is used by windows vps. >> When I tried to remove the LVM partition, I got the error "Can''t >> remove open logical volume ." > > As silly as this question might sound, is the windows vps still running? > > -- > Fajar >_______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Jingyun He
2009-Dec-01 13:25 UTC
Re: [Xen-users] can not remove windows vps from hard disk
It is already stopped. One more thing is that, In the /dev/mapper directory, I have two device, one is VolGroup00-xxx, another is VolGroup00-xxxp1, And the error message says VolGroup00-xxxp1 is being used. On Tue, Dec 1, 2009 at 1:58 PM, Antonino Catinello <antonino@catinello.eu> wrote:> Try to kill the qemu process if it''s still running. > > > -----Ursprüngliche Nachricht----- > Von: xen-users-bounces@lists.xensource.com [mailto:xen-users-bounces@lists.xensource.com] Im Auftrag von Jingyun He > Gesendet: Dienstag, 1. Dezember 2009 13:53 > An: Fajar A. Nugraha > Cc: xen-users@lists.xensource.com > Betreff: Re: [Xen-users] can not remove windows vps from hard disk > > I executed "xm destroy" to stop the vps. > > On Tue, Dec 1, 2009 at 1:20 PM, Fajar A. Nugraha <fajar@fajar.net> wrote: >> On Tue, Dec 1, 2009 at 5:43 PM, Jingyun He <jingyun.ho@gmail.com> wrote: >>> Hello all, >>> I have a problem with removing the LVM partition that is used by windows vps. >>> When I tried to remove the LVM partition, I got the error "Can''t >>> remove open logical volume ." >> >> As silly as this question might sound, is the windows vps still running? >> >> -- >> Fajar >> > > _______________________________________________ > Xen-users mailing list > Xen-users@lists.xensource.com > http://lists.xensource.com/xen-users > > _______________________________________________ > Xen-users mailing list > Xen-users@lists.xensource.com > http://lists.xensource.com/xen-users >_______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Martin Gombac(
2009-Dec-01 13:31 UTC
Re: [Xen-users] can not remove windows vps from hard disk
Try using lsof and greep. Somth like lsof | grep mypart Jingyun He wrote:> It is already stopped. > > One more thing is that, > In the /dev/mapper directory, > I have two device, one is VolGroup00-xxx, > another is VolGroup00-xxxp1, > > And the error message says VolGroup00-xxxp1 is being used. > > On Tue, Dec 1, 2009 at 1:58 PM, Antonino Catinello > <antonino@catinello.eu> wrote: >> Try to kill the qemu process if it''s still running. >> >> >> -----Ursprüngliche Nachricht----- >> Von: xen-users-bounces@lists.xensource.com [mailto:xen-users-bounces@lists.xensource.com] Im Auftrag von Jingyun He >> Gesendet: Dienstag, 1. Dezember 2009 13:53 >> An: Fajar A. Nugraha >> Cc: xen-users@lists.xensource.com >> Betreff: Re: [Xen-users] can not remove windows vps from hard disk >> >> I executed "xm destroy" to stop the vps. >> >> On Tue, Dec 1, 2009 at 1:20 PM, Fajar A. Nugraha <fajar@fajar.net> wrote: >>> On Tue, Dec 1, 2009 at 5:43 PM, Jingyun He <jingyun.ho@gmail.com> wrote: >>>> Hello all, >>>> I have a problem with removing the LVM partition that is used by windows vps. >>>> When I tried to remove the LVM partition, I got the error "Can''t >>>> remove open logical volume ." >>> As silly as this question might sound, is the windows vps still running? >>> >>> -- >>> Fajar >>> >> _______________________________________________ >> Xen-users mailing list >> Xen-users@lists.xensource.com >> http://lists.xensource.com/xen-users >> >> _______________________________________________ >> Xen-users mailing list >> Xen-users@lists.xensource.com >> http://lists.xensource.com/xen-users >> > > _______________________________________________ > Xen-users mailing list > Xen-users@lists.xensource.com > http://lists.xensource.com/xen-users_______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Fajar A. Nugraha
2009-Dec-01 13:50 UTC
Re: [Xen-users] can not remove windows vps from hard disk
On Tue, Dec 1, 2009 at 8:25 PM, Jingyun He <jingyun.ho@gmail.com> wrote:> It is already stopped. > > One more thing is that, > In the /dev/mapper directory, > I have two device, one is VolGroup00-xxx, > another is VolGroup00-xxxp1,Ah :D My guess is somehow you''ve run kpartx on the LV. Try this: kpartx -dv /dev/VolGroup00/xxx If all goes well, it SHOULD remove the partition entries (i.e. /dev/mapper/VolGroup00-xxxp1). If not, and you don''t have it mounted, it''s possible that some process (qemu, or kernel process) is still using it. -- Fajar _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Jingyun He
2009-Dec-01 13:58 UTC
Re: [Xen-users] can not remove windows vps from hard disk
I had tried kpartx before, and it can not remove the partitoin entry /dev/VolGroup00/xxxp1 actually, if we run kpartx -a /dev/VolGroup00/xxx it will add a partition entry named /dev/VolGroup00/xxx1, but not /dev/VolGroup00/xxxp1 On Tue, Dec 1, 2009 at 2:50 PM, Fajar A. Nugraha <fajar@fajar.net> wrote:> On Tue, Dec 1, 2009 at 8:25 PM, Jingyun He <jingyun.ho@gmail.com> wrote: >> It is already stopped. >> >> One more thing is that, >> In the /dev/mapper directory, >> I have two device, one is VolGroup00-xxx, >> another is VolGroup00-xxxp1, > > Ah :D > > My guess is somehow you''ve run kpartx on the LV. Try this: > kpartx -dv /dev/VolGroup00/xxx > > If all goes well, it SHOULD remove the partition entries (i.e. > /dev/mapper/VolGroup00-xxxp1). If not, and you don''t have it mounted, > it''s possible that some process (qemu, or kernel process) is still > using it. > > -- > Fajar >_______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Alain Barthe
2009-Dec-02 10:06 UTC
Re: [Xen-users] can not remove windows vps from hard disk
2009/12/1 Jingyun He <jingyun.ho@gmail.com>> Hello all, > I have a problem with removing the LVM partition that is used by windows > vps. > When I tried to remove the LVM partition, I got the error "Can''t > remove open logical volume ." >Your LV looks like still active. You can see it with the command "lvscan". If so, you should try "lvchange -an /dev/VolGropu00/xxx". It could help.> > So I run parted /dev/VolGropu00/xxx > then executed "rm 1", > > I got the Error: Partition /dev/mapper/VolGroup00-xxxp1 is being used. > You must unmount it before you modify it with Parted. > > Anyone can tell me how to unmount it? > > Thanks. > > _______________________________________________ > Xen-users mailing list > Xen-users@lists.xensource.com > http://lists.xensource.com/xen-users >_______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Jingyun He
2009-Dec-02 19:09 UTC
Re: [Xen-users] can not remove windows vps from hard disk
OK, I just run the command "dmsetup remove VolGroup00 xxx", and after this, I can remove the LV partition successful. My question is: is it safe to run the command "dmsetup remove VolGroup00 xxx".? On Wed, Dec 2, 2009 at 11:06 AM, Alain Barthe <ab266061@gmail.com> wrote:> 2009/12/1 Jingyun He <jingyun.ho@gmail.com> >> >> Hello all, >> I have a problem with removing the LVM partition that is used by windows >> vps. >> When I tried to remove the LVM partition, I got the error "Can''t >> remove open logical volume ." > > Your LV looks like still active. You can see it with the command "lvscan". > If so, you should try "lvchange -an /dev/VolGropu00/xxx". > It could help. > >> >> So I run parted /dev/VolGropu00/xxx >> then executed "rm 1", >> >> I got the Error: Partition /dev/mapper/VolGroup00-xxxp1 is being used. >> You must unmount it before you modify it with Parted. >> >> Anyone can tell me how to unmount it? >> >> Thanks. >> >> _______________________________________________ >> Xen-users mailing list >> Xen-users@lists.xensource.com >> http://lists.xensource.com/xen-users > >_______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users