WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-users

RE: [Xen-users] howto delete a lvm with windows partition

To: "Martin Hierling" <martin@xxxxxxxxx>, "xen-users" <xen-users@xxxxxxxxxxxxxxxxxxx>
Subject: RE: [Xen-users] howto delete a lvm with windows partition
From: "Ross S. W. Walker" <rwalker@xxxxxxxxxxxxx>
Date: Tue, 8 Apr 2008 10:10:42 -0400
Delivery-date: Tue, 08 Apr 2008 07:11:21 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
Importance: normal
In-reply-to: <4eb282840804072231x30a03eb7mb391c7b65ced0baa@xxxxxxxxxxxxxx>
List-help: <mailto:xen-users-request@lists.xensource.com?subject=help>
List-id: Xen user discussion <xen-users.lists.xensource.com>
List-post: <mailto:xen-users@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-users>, <mailto:xen-users-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-users>, <mailto:xen-users-request@lists.xensource.com?subject=unsubscribe>
Priority: normal
References: <4eb282840804072231x30a03eb7mb391c7b65ced0baa@xxxxxxxxxxxxxx>
Sender: xen-users-bounces@xxxxxxxxxxxxxxxxxxx
Thread-index: AciZOdj6eaCYP6eiSg67psLnpUirlwASC2og
Thread-topic: [Xen-users] howto delete a lvm with windows partition
Martin Hierling wrote:
> 
> Hi List,
> 
> slightly OT but i have Xen and Windows running (xen 3.2.0, hvm, win
> 2k3) on top of a  lvm volume. Now i want to delete such a volume but i
> got the message:
> $ lvremove /dev/Xen0/Win2kServer
>   Can't remove open logical volume "Win2kServer"
> 
> The volume is not in use by any VM, but there is a partition table on
> it with 8Megs of free space and a ntfs partition. I also got 2
> devnodes i /dev/mapper :
> brw-r-----  1 root disk 254, 52 Mar 27 14:03 Xen0-Win2kServer
> brw-r-----  1 root disk 254, 53 Mar 27 14:03 Xen0-Win2kServer1
> 
> So how can i remove such a lvm volume?

What's the output of 'lvs'? Maybe it is open somewhere when you
think it is not. If you find it is open an 'lsof /dev/mapper'
may show you what process has it open.

-Ross



______________________________________________________________________
This e-mail, and any attachments thereto, is intended only for use by
the addressee(s) named herein and may contain legally privileged
and/or confidential information. If you are not the intended recipient
of this e-mail, you are hereby notified that any dissemination,
distribution or copying of this e-mail, and any attachments thereto,
is strictly prohibited. If you have received this e-mail in error,
please immediately notify the sender and permanently delete the
original and any copy or printout thereof.


_______________________________________________
Xen-users mailing list
Xen-users@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-users