Backup fails with Logical Volume already exists in volume group

Oskari Jokinen

New Member
Mar 20, 2018
2
0
1
34
Hi,
We recently had an issue with our proxmox cluster after upgrading to the newest version that was most likely related to the kernel bug issue mentioned in github.com/lxc/lxc/issues/2141 which eventually forced us to reboot the updated hypervisor after it went unresponsive when we had to restart some containers.

pveversion
pve-manager/5.1-46/ae8241d4 (running kernel: 4.13.13-6-pve)

Now there's one container which is unable to do backups, (some names from the output have been changed due to security reasons)

INFO: starting new backup job: vzdump 1246 --node hypervisor1 --remove 0 --mode snapshot --storage local-backup2 --compress lzo
INFO: Starting Backup of VM 1246 (lxc)
INFO: status = running
INFO: CT Name: container1
INFO: backup mode: snapshot
INFO: ionice priority: 7
INFO: create storage snapshot 'vzdump'
Using default stripesize 64.00 KiB.
snapshot create failed: starting cleanup
no lock found trying to remove 'backup' lock
ERROR: Backup of VM 1246 failed - lvcreate snapshot 'pve/snap_vm-1246-disk-1_vzdump' error: Logical Volume "snap_vm-1246-disk-1_vzdump" already exists in volume group "pve"
INFO: Backup job finished with errors
TASK ERROR: job errors

There is an LV with that name in the system, created when the system went down due to the earlier mentioned problem;

lvdisplay /dev/pve/snap_vm-1246-disk-1_vzdump
--- Logical volume ---
LV Path /dev/pve/snap_vm-1246-disk-1_vzdump
LV Name snap_vm-1246-disk-1_vzdump
VG Name pve
LV UUID 4wgqeR-OpvP-xVo9-1JkD-yazS-4Ugb-lKZ2an
LV Write Access read only
LV Creation host, time hypervisor1, 2018-03-19 22:58:26 +0200
LV Pool name data
LV Thin origin name vm-1246-disk-1
LV Status NOT available
LV Size 250.00 GiB
Current LE 64000
Segments 1
Allocation inherit
Read ahead sectors auto

Should it be safe to just lvremove that volume or is there an another way to deal with such issue?
 
Hey Oskari,
I am facing the same problem. Can you share any further experience? I haven't tried to delete the volume yet.
Best regards!
Eric
 
Hi,
We haven't done anything about the volume yet either, I've been waiting if someone here would have had further experience on the matter before trying to delete it.
-Oskari
 
same here, any solution for that without backup the data > remove the container -> re-create all -> restore the data?
 
how can I remove snap_vm-326-disk-1_vzdump?
lvremove snap_vm-326-disk-1_vzdump
not working :(

root@server215:/# lvs
LV VG Attr LSize Pool Origin Data% Meta% Move Log Cpy%Sync Convert
data pve twi-aotz-- 716.38g 56.15 25.99
root pve -wi-ao---- 96.00g
snap_vm-326-disk-1_vzdump pve Vri---tz-k 20.00g data vm-326-disk-1
swap pve -wi-ao---- 8.00g
vm-103-disk-1 pve Vwi-aotz-- 10.00g data 71.72
vm-213-disk-1 pve Vwi-aotz-- 130.00g data 53.38
vm-224-disk-1 pve Vwi-aotz-- 20.00g data 14.15
vm-226-disk-1 pve Vwi-aotz-- 150.00g data 86.69
vm-231-disk-1 pve Vwi-aotz-- 50.00g data 24.31
vm-234-disk-1 pve Vwi-aotz-- 30.00g data 75.50
vm-235-disk-1 pve Vwi-aotz-- 40.00g data 90.18
vm-311-disk-1 pve Vwi-aotz-- 30.00g data 31.17
vm-322-disk-1 pve Vwi-aotz-- 30.00g data 65.75
vm-323-disk-1 pve Vwi-aotz-- 20.00g data 40.26
vm-326-disk-1 pve Vwi-aotz-- 20.00g data 31.99
vm-331-disk-1 pve Vwi-aotz-- 150.00g data 32.88
 
hey guys,

I have almost same issue with one VM:
Code:
INFO: include disk 'scsi0' 'local-lvm-2t:vm-100-disk-0' 40G
INFO: include disk 'scsi1' 'local-lvm-2t:vm-100-disk-1' 30G
  Multiple VGs found with the same name: skipping vgData
ERROR: Backup of VM 100 failed - no such volume 'local-lvm-2t:vm-100-disk-0'
INFO: Backup job finished with errors
TASK ERROR: job errors

But in lvs | grep vm-100 says following:
Code:
# lvs | grep vm-100
  vm-100-disk-0   vgData Vwi-a-tz--  40.00g lvThinPool        100.00                                 
  vm-100-disk-1   vgData Vwi-a-tz--  30.00g lvThinPool        0.08

So its really discs for VM.. and I dont want to delete them, since data are there.. any idea how to solve it? :)
 
Interesting.. so problem is most probably because I have vgData on host and also in guest.. and somehow show this error.. when I deleted vgData from guest, backup is working.. bug?
 
Find the solution:
1. show this by Volume group by using command : lvdisplay
2. remove this lv by: lvremove /dev/pve/snap_vm-326-disk-1_vzdump
now the new snapshots works :)
Can you help me? I can't delete it according to your instructions
 

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!