[PVE-User] disk devices not properly cleaned up after removing vm

Dhaussy Alexandre ADhaussy at voyages-sncf.com
Mon May 4 15:35:06 CEST 2015


Hello,

I'm back at work, sorry for the late response.

I have cleaned up the devices, so here's another example from now :

After stopping vms 103 & 104 :

root at proxmoxt9:~# lvs
   LV            VG          Attr      LSize   Pool Origin Data% Move 
Log Copy%  Convert
   vm-100-disk-1 T_proxmox_1 -wi-ao--- 101.00g
   vm-101-disk-1 T_proxmox_1 -wi-ao--- 101.00g
   vm-102-disk-1 T_proxmox_1 -wi------ 41.00g
   vm-103-disk-1 T_proxmox_1 -wi-a---- 41.00g
   vm-104-disk-1 T_proxmox_1 -wi------ 41.00g
   data          pve         -wi-ao--- 69.57g
   root          pve         -wi-ao--- 34.00g
   swap          pve         -wi-ao---  17.00g

root at proxmoxt9:~# dmsetup status
T_proxmox_1-vm--101--disk--1: 0 211812352 linear
VSCVNX4_T_proxmox_2: 0 4294967296 multipath 2 0 0 0 1 1 A 0 4 0 8:176 A 
0 8:192 A 0 8:96 A 0 8:128 A 0
T_proxmox_1-vm--100--disk--1: 0 211812352 linear
pve-swap: 0 35651584 linear
pve-root: 0 71303168 linear
pve-data: 0 145907712 linear
VSCVNX3_T_proxmox_1: 0 4294967296 multipath 2 0 0 0 1 1 A 0 4 0 8:144 A 
0 8:160 A 0 8:32 A 0 8:80 A 0
T_proxmox_1-vm--103--disk--1: 0 85983232 linear


And the state of the devices after removing vms 103 & 104 (from GUI) :

root at proxmoxt9:~# lvs
   LV            VG          Attr      LSize   Pool Origin Data% Move 
Log Copy%  Convert
   vm-100-disk-1 T_proxmox_1 -wi-ao--- 101.00g
   vm-101-disk-1 T_proxmox_1 -wi-ao--- 101.00g
   vm-102-disk-1 T_proxmox_1 -wi------ 41.00g
   data          pve         -wi-ao--- 69.57g
   root          pve         -wi-ao--- 34.00g
   swap          pve         -wi-ao--- 17.00g

root at proxmoxt9:~# dmsetup status
T_proxmox_1-vm--101--disk--1: 0 211812352 linear
VSCVNX4_T_proxmox_2: 0 4294967296 multipath 2 0 0 0 1 1 A 0 4 0 8:176 A 
0 8:192 A 0 8:96 A 0 8:128 A 0
T_proxmox_1-vm--100--disk--1: 0 211812352 linear
pve-swap: 0 35651584 linear
pve-root: 0 71303168 linear
pve-data: 0 145907712 linear
VSCVNX3_T_proxmox_1: 0 4294967296 multipath 2 0 0 0 1 1 A 0 4 0 8:144 A 
0 8:160 A 0 8:32 A 0 8:80 A 0
T_proxmox_1-vm--103--disk--1: 0 85983232 linear


Le 24/04/2015 19:30, Dietmar Maurer a écrit :
> What is the output of
>
> # dmsetup status
>
> (on first node)
>
>> -- On first node :
>>
>> lvs | grep disk :
>>     vm-100-disk-1 T_proxmox_1 -wi------ 101.00g
>>
>> dmsetup ls | grep disk :
>> T_proxmox_1-vm--101--disk--1    (253:6) <-- should have been deleted
>> T_proxmox_1-vm--100--disk--1    (253:5)
>>


More information about the pve-user mailing list