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] VM and VDI deleted, but Space on Storage still used

To: Mike McClurg <mike.mcclurg@xxxxxxxxxx>
Subject: Re: [Xen-users] VM and VDI deleted, but Space on Storage still used
From: Tobias Matthaeus <tm@xxxxxxxxxxxx>
Date: Wed, 25 May 2011 15:40:52 +0200
Cc: "xen-users@xxxxxxxxxxxxxxxxxxx" <xen-users@xxxxxxxxxxxxxxxxxxx>
Delivery-date: Wed, 25 May 2011 06:42:21 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <4DDBE039.3010809@xxxxxxxxxx>
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/mailman/listinfo/xen-users>, <mailto:xen-users-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-users>, <mailto:xen-users-request@lists.xensource.com?subject=unsubscribe>
References: <61C763C9-2F19-4DA1-B6EA-FAB9C2DAB833@xxxxxxxxxxxx> <4DDBE039.3010809@xxxxxxxxxx>
Sender: xen-users-bounces@xxxxxxxxxxxxxxxxxxx
Hallo Mike,



> You shouldn't delete LVs yourself. There isn't a one-to-one mapping of VHDs 
> to LVs, and the data may be spread between several LVs. Please refer to this 
> document first: http://support.citrix.com/article/CTX122978
> 
> If this doesn't explain your situation, please come back and let us know. 
> It's not inconceivable that you've found a bug ;)


Okay, but I think that the document does not explain my situation. The 
situation is the following:

New Xen-Servers for XenPool and two new Hardware HBAs (EonStore). Today I 
created a VirtualMachine on a new and completely unused HBA. After VM creation 
on the Storage 8GB is used. Okay, that is the size of the disk.
During machine uptime lvscan show the following situation:

[root@xen0 ~]# lvscan 
  inactive          
'/dev/VG_XenStorage-c3a768e5-8461-884e-bc2d-dc6584b648c3/MGT' [4.00 MB] inherit
  inactive          
'/dev/VG_XenStorage-c3a768e5-8461-884e-bc2d-dc6584b648c3/VHD-c54e79b3-2214-46d1-b2a1-6ff313f31c45'
 [8.02 GB] inherit
  ACTIVE            
'/dev/VG_XenStorage-43757365-6aeb-4ff2-d64c-e2066bae5de9/VHD-2b2d7602-cd6b-4cbd-8c04-c714281964d5'
 [8.02 GB] inherit


After shutdown the VM lvscan show the following situation:

[root@xen0 ~]# lvscan 
  inactive          
'/dev/VG_XenStorage-c3a768e5-8461-884e-bc2d-dc6584b648c3/MGT' [4.00 MB] inherit
  inactive          
'/dev/VG_XenStorage-c3a768e5-8461-884e-bc2d-dc6584b648c3/VHD-c54e79b3-2214-46d1-b2a1-6ff313f31c45'
 [8.02 GB] inherit
  ACTIVE            
'/dev/VG_XenStorage-43757365-6aeb-4ff2-d64c-e2066bae5de9/VHD-2b2d7602-cd6b-4cbd-8c04-c714281964d5'
 [8.02 GB] inherit


I deleted via Windows XenCentre the VM and the Disk. But LVSCAN shows me, that 
the LVs still exists:
[root@xen0 ~]# lvscan 
  inactive          
'/dev/VG_XenStorage-c3a768e5-8461-884e-bc2d-dc6584b648c3/MGT' [4.00 MB] inherit
  inactive          
'/dev/VG_XenStorage-c3a768e5-8461-884e-bc2d-dc6584b648c3/VHD-c54e79b3-2214-46d1-b2a1-6ff313f31c45'
 [8.02 GB] inherit
  ACTIVE            
'/dev/VG_XenStorage-43757365-6aeb-4ff2-d64c-e2066bae5de9/VHD-2b2d7602-cd6b-4cbd-8c04-c714281964d5'
 [8.02 GB] inherit


vgdisplay and the xenCentre show me, that 8GB is used on the storage. But I 
deleted the disk, the checkbox was marked.

[root@xen0 ~]# vgdisplay VG_XenStorage-c3a768e5-8461-884e-bc2d-dc6584b648c3
  --- Volume group ---
  VG Name               VG_XenStorage-c3a768e5-8461-884e-bc2d-dc6584b648c3
  System ID             
  Format                lvm2
  Metadata Areas        1
  Metadata Sequence No  8
  VG Access             read/write
  VG Status             resizable
  MAX LV                0
  Cur LV                2
  Open LV               0
  Max PV                0
  Cur PV                1
  Act PV                1
  VG Size               2.73 TB
  PE Size               4.00 MB
  Total PE              715204
  Alloc PE / Size       2055 / 8.03 GB
  Free  PE / Size       713149 / 2.72 TB
  VG UUID               2sRGtQ-gQFk-lmDG-yIln-8S1U-VZUW-YLjJbJ




I do not understand, why after VM deleting the space is still used and not be 
freed. It is still in use on the storage...



Can you help me?



Thanks and Regards




Tobi




-- 

Tobias Matthaeus
Technik                                  tm@xxxxxxxxxxxx
Carmunity.com GmbH        http://www.carmunity.de
Mary-Astell-Str. 2                 T: +49-421-6265 130
28359 Bremen                     F: +49-421-6265 100
Deutschland

Handelsregisternummer:
HRB 19256 beim AG Bremen
Geschäftsführer:
Stefan Kathmeyer


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

<Prev in Thread] Current Thread [Next in Thread>