VM Clone is failing

elmatador

New Member
Sep 26, 2024
3
0
1
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
 
I'm still having major issues with VG not found in this PV.

I've been searching all over the internet but have not found anything. Can someone chime in, please?
 
Ok, so after a long time on trial and error, I think I found a solution (although I'm not sure what caused the problem).

I have used the command:

Code:
vgreduce --removemissing pve

This seems to have cleared a PV that was in the VG causing the problem

I *think* this PV is part of a directory I added to Proxmox to it could be a self-inflicted problem by the system. But I could be wrong. In any case, I hope the command can be helpful to other people who find this.