lvm broken with lvconvert --repair shows insufficient free space

Linyu

Well-Known Member
Jun 14, 2019
43
2
48
25
Hi forum,
I am suffering in a problem due to a system crash, I am using LVM-THIN created in proxmox GUI, the lvm seems broken and I saw it needs to fix manually in system log, so I try to use

Code:
lvconvert --repair data/data

to repair it, but it tells:

Code:
Volume group "data" has insufficient free space (128 extents): 4048 required.

More info:

Code:
root@cn-hk1:/var/log# vgdisplay
  --- Volume group ---
  VG Name               data
  System ID             
  Format                lvm2
  Metadata Areas        1
  Metadata Sequence No  1966
  VG Access             read/write
  VG Status             resizable
  MAX LV                0
  Cur LV                452
  Open LV               0
  Max PV                0
  Cur PV                1
  Act PV                1
  VG Size               <6.52 TiB
  PE Size               4.00 MiB
  Total PE              1708391
  Alloc PE / Size       1708263 / <6.52 TiB
  Free  PE / Size       128 / 512.00 MiB
  VG UUID               poHuf1-Cftk-IZIt-HmRq-rO5r-Dyf9-e0xcyz

It seems that the proxmox will use all space in a volume group to create a thin-pool, so here is the problem, I don't know how to fix it, now all the lv is inactive, any help?

 
I've added a disk to vgextend the vg, after lvconvert --repair data/data, I can see some lv is active now, but beyond that, I got this error :

Code:
root@cn-hk1:/dev/mapper# lvchange -ay /dev/data/vm-917065-disk-0
device-mapper: reload ioctl on  (253:4) failed: No data available