[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Xen-users] VM and VDI deleted, but Space on Storage still used



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


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.