I'm trying to clone a VM and I'm getting this error:
Cannot change VG pve while PVs are missing.
See vgreduce --removemissing and vgextend --restoremissing.
TASK ERROR: clone failed: lvcreate 'pve/vm-112-disk-0' error: Cannot process volume group pve
When I try the suggested command, I get another error:
@pve:/etc/lvm/backup# vgreduce --removemissing
No command with matching syntax recognised. Run 'vgreduce --help' for more information.
Nearest similar command has syntax:
vgreduce --removemissing VG
Remove all missing PVs from a VG.
vgreduce --removemissing VG
Volume group "VG" not found
Cannot process volume group VG
root@pve:/etc/lvm/backup# vgextend --restoremissing
No command with matching syntax recognised. Run 'vgextend --help' for more information.
Correct command syntax is:
vgextend VG PV ...
root@pve:/etc/lvm/backup# vgextend VG PVE
No device found for PVE.
Before you ask, here is the output of VGS:
root@pve:/etc/lvm/backup# vgs
WARNING: Couldn't find device with uuid QtU37G-avH6-RSdH-8GFN-oGJB-MD5L-dLPYDR.
WARNING: VG pve is missing PV QtU37G-avH6-RSdH-8GFN-oGJB-MD5L-dLPYDR (last written to [unknown]).
VG #PV #LV #SN Attr VSize VFree
USBDisk 1 9 0 wz--n- <9.43t 570.17g
pve 2 26 0 wz-pn- 9.89t <9.32t
It looks like something is wrong with my PV, but I don't know how to fix it
Cannot change VG pve while PVs are missing.
See vgreduce --removemissing and vgextend --restoremissing.
TASK ERROR: clone failed: lvcreate 'pve/vm-112-disk-0' error: Cannot process volume group pve
When I try the suggested command, I get another error:
@pve:/etc/lvm/backup# vgreduce --removemissing
No command with matching syntax recognised. Run 'vgreduce --help' for more information.
Nearest similar command has syntax:
vgreduce --removemissing VG
Remove all missing PVs from a VG.
vgreduce --removemissing VG
Volume group "VG" not found
Cannot process volume group VG
root@pve:/etc/lvm/backup# vgextend --restoremissing
No command with matching syntax recognised. Run 'vgextend --help' for more information.
Correct command syntax is:
vgextend VG PV ...
root@pve:/etc/lvm/backup# vgextend VG PVE
No device found for PVE.
Before you ask, here is the output of VGS:
root@pve:/etc/lvm/backup# vgs
WARNING: Couldn't find device with uuid QtU37G-avH6-RSdH-8GFN-oGJB-MD5L-dLPYDR.
WARNING: VG pve is missing PV QtU37G-avH6-RSdH-8GFN-oGJB-MD5L-dLPYDR (last written to [unknown]).
VG #PV #LV #SN Attr VSize VFree
USBDisk 1 9 0 wz--n- <9.43t 570.17g
pve 2 26 0 wz-pn- 9.89t <9.32t
It looks like something is wrong with my PV, but I don't know how to fix it