LVM storage, logical volumes are not removed

mmenaz

Renowned Member
Jun 25, 2009
835
25
93
Northern east Italy
Hi, I'm using LVM storage, when I create a VM and add an hard disk to that storage, everything is ok, but when I remove it, the VM config is updated but the logical volume is not deleted, so I've exausted my space :)
I'm using pvetest repo
I.e. I've created vm 301, 302 and 303. I wanted do add 3 more (4 total) HD to each of them, but when I was in 303 I was unable because of no more free space in the LVM storage. Ok, I removed the 4° HD from 301 and 302, but still was unable to add, this time 2 more hd, to 303.
This is the situation:
Code:
root@prox2:~# lvs
  LV            VG       Attr     LSize   Pool Origin Data%  Move Log Copy%  Convert
  data          pve      -wi-ao-- 803,49g                                           
  root          pve      -wi-ao--  96,00g                                           
  swap          pve      -wi-ao--  15,00g                                           
  vm-104-disk-1 sas-data -wi-a--- 350,00g                                           
  vm-105-disk-1 sas-data -wi-a---  75,01g                                           
  vm-114-disk-1 sas-data -wi-a---  40,00g                                           
  vm-301-disk-1 sas-data -wi-----  50,00g                                           
  vm-301-disk-2 sas-data -wi-a---  50,00g                                           
  vm-301-disk-3 sas-data -wi-a---  50,00g                                           
  vm-301-disk-4 sas-data -wi-a---  50,00g                                           
  vm-302-disk-1 sas-data -wi-----  50,00g                                           
  vm-302-disk-2 sas-data -wi-a---  50,00g                                           
  vm-302-disk-3 sas-data -wi-a---  50,00g                                           
  vm-302-disk-4 sas-data -wi-a---  50,00g                                           
  vm-303-disk-1 sas-data -wi-----  50,00g
and this is my current version:
Code:
root@prox2:~# pveversion -v
proxmox-ve-2.6.32: 3.0-105 (running kernel: 2.6.32-21-pve)
pve-manager: 3.0-30 (running version: 3.0-30/3d1ccfa6)
pve-kernel-2.6.32-12-pve: 2.6.32-68
pve-kernel-2.6.32-19-pve: 2.6.32-96
pve-kernel-2.6.32-21-pve: 2.6.32-105
lvm2: 2.02.95-pve3
clvm: 2.02.95-pve3
corosync-pve: 1.4.5-1
openais-pve: 1.1.4-3
libqb0: 0.11.1-2
redhat-cluster-pve: 3.2.0-2
resource-agents-pve: 3.9.2-4
fence-agents-pve: 4.0.0-1
pve-cluster: 3.0-4
qemu-server: 3.0-20
pve-firmware: 1.0-23
libpve-common-perl: 3.0-4
libpve-access-control: 3.0-4
libpve-storage-perl: 3.0-9
vncterm: 1.1-4
vzctl: 4.0-1pve3
vzprocps: 2.0.11-2
vzquota: 3.1-2
pve-qemu-kvm: 1.4-13
ksm-control-daemon: 1.1-1

I'll remove the logical volume manually but would love this bug be investigated and fixed
Best regards
 

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!