Forcefully delete a virtual disk in a full thin lvm pool

xproot

New Member
Jun 14, 2022
1
0
1
Hello, I've recently tried restoring a backup after accidentally deleting a VM, and the pool seems to be malfunctioning. A restart didn't fix, googled some bit. Tried
Code:
lvconvert --repair /dev/pve/data
and that gives me
Code:
Volume group "YUGEv3" has insufficient free space (30 extents): 2385 required.
I've been trying to remove disks from the command line to also no avail
Code:
lvm> lvremove /dev/YUGEv3/vm-300-disk-0 -f
  Thin pool YUGEv3-YUGEv3-tpool (253:10) transaction_id is 72, while expected 68.
  Failed to update pool YUGEv3/YUGEv3.
Can someone help me?

EDIT: lvscan
Code:
  ACTIVE            '/dev/pve/swap' [8.00 GiB] inherit
  ACTIVE            '/dev/pve/root' [59.25 GiB] inherit
  ACTIVE            '/dev/pve/data' [<151.63 GiB] inherit
  ACTIVE            '/dev/pve/vm-500-disk-0' [4.00 MiB] inherit
  ACTIVE            '/dev/pve/vm-500-disk-1' [4.00 MiB] inherit
  inactive          '/dev/YUGEv3/YUGEv3' [912.73 GiB] inherit
  inactive          '/dev/YUGEv3/vm-202-disk-0' [260.50 GiB] inherit
  inactive          '/dev/YUGEv3/vm-300-disk-0' [128.00 GiB] inherit
  inactive          '/dev/YUGEv3/vm-301-disk-0' [128.00 GiB] inherit
  inactive          '/dev/YUGEv3/vm-302-disk-0' [128.00 GiB] inherit
  inactive          '/dev/YUGEv3/YUGEv3_meta0' [<9.32 GiB] inherit
lvs
Code:
  LV            VG     Attr       LSize    Pool   Origin Data%  Meta%  Move Log Cpy%Sync Convert
  YUGEv3        YUGEv3 twi---tz--  912.73g                                                      
  YUGEv3_meta0  YUGEv3 -wi-------   <9.32g                                                      
  vm-202-disk-0 YUGEv3 Vwi---tz--  260.50g YUGEv3                                               
  vm-300-disk-0 YUGEv3 Vwi---tz--  128.00g YUGEv3                                               
  vm-301-disk-0 YUGEv3 Vwi---tz--  128.00g YUGEv3                                               
  vm-302-disk-0 YUGEv3 Vwi---tz--  128.00g YUGEv3                                               
  data          pve    twi-aotz-- <151.63g               0.01   1.05                            
  root          pve    -wi-ao----   59.25g                                                      
  swap          pve    -wi-ao----    8.00g                                                      
  vm-500-disk-0 pve    Vwi-a-tz--    4.00m data          14.06                                  
  vm-500-disk-1 pve    Vwi-a-tz--    4.00m data          1.56
 
Last edited:

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!