Error after backup Vm uuid

julien33290

New Member
Mar 21, 2017
5
0
1
38
Hello
I am french.
I have problème with proxmox after restore back up with other Hdd.

Restore is ok but When I want start m'y vm ,error

The message is

WARNING: Duplicate VG name VM-STORAGE: Existing MrlVHc-vFZq-aHyf-95xd-s5kJ-xlXZ-iNdnuQ (created here) takes precedence over xXWAyN-Sxw3-xzfn-Ty34-qc0j-Gt4u-AVvFDi
WARNING: Duplicate VG name VM-STORAGE: Existing MrlVHc-vFZq-aHyf-95xd-s5kJ-xlXZ-iNdnuQ (created here) takes precedence over xXWAyN-Sxw3-xzfn-Ty34-qc0j-Gt4u-AVvFDi
WARNING: Duplicate VG name VM-STORAGE: Existing xXWAyN-Sxw3-xzfn-Ty34-qc0j-Gt4u-AVvFDi (created here) takes precedence over MrlVHc-vFZq-aHyf-95xd-s5kJ-xlXZ-iNdnuQ
WARNING: Duplicate VG name VM-STORAGE: Existing MrlVHc-vFZq-aHyf-95xd-s5kJ-xlXZ-iNdnuQ (created here) takes precedence over xXWAyN-Sxw3-xzfn-Ty34-qc0j-Gt4u-AVvFDi
WARNING: Duplicate VG name VM-STORAGE: Existing xXWAyN-Sxw3-xzfn-Ty34-qc0j-Gt4u-AVvFDi (created here) takes precedence over MrlVHc-vFZq-aHyf-95xd-s5kJ-xlXZ-iNdnuQ
WARNING: Duplicate VG name VM-STORAGE: Existing MrlVHc-vFZq-aHyf-95xd-s5kJ-xlXZ-iNdnuQ (created here) takes precedence over xXWAyN-Sxw3-xzfn-Ty34-qc0j-Gt4u-AVvFDi
WARNING: Duplicate VG name VM-STORAGE: Existing MrlVHc-vFZq-aHyf-95xd-s5kJ-xlXZ-iNdnuQ (created here) takes precedence over xXWAyN-Sxw3-xzfn-Ty34-qc0j-Gt4u-AVvFDi
Couldn't find device with uuid rBLMIk-Rx9M-71gh-i1nj-heDV-CRIc-QgpEFE.
TASK ERROR: can't activate LV '/dev/VM-STORAGE/vm-101-disk-1': Refusing activation of partial LV VM-STORAGE/vm-101-disk-1. Use '--activationmode partial' to override.



Thank you
 
Hello
I am french.
I have problème with proxmox after restore back up with other Hdd.

Restore is ok but When I want start m'y vm ,error

The message is

WARNING: Duplicate VG name VM-STORAGE: Existing MrlVHc-vFZq-aHyf-95xd-s5kJ-xlXZ-iNdnuQ (created here) takes precedence over xXWAyN-Sxw3-xzfn-Ty34-qc0j-Gt4u-AVvFDi
WARNING: Duplicate VG name VM-STORAGE: Existing MrlVHc-vFZq-aHyf-95xd-s5kJ-xlXZ-iNdnuQ (created here) takes precedence over xXWAyN-Sxw3-xzfn-Ty34-qc0j-Gt4u-AVvFDi
WARNING: Duplicate VG name VM-STORAGE: Existing xXWAyN-Sxw3-xzfn-Ty34-qc0j-Gt4u-AVvFDi (created here) takes precedence over MrlVHc-vFZq-aHyf-95xd-s5kJ-xlXZ-iNdnuQ
WARNING: Duplicate VG name VM-STORAGE: Existing MrlVHc-vFZq-aHyf-95xd-s5kJ-xlXZ-iNdnuQ (created here) takes precedence over xXWAyN-Sxw3-xzfn-Ty34-qc0j-Gt4u-AVvFDi
WARNING: Duplicate VG name VM-STORAGE: Existing xXWAyN-Sxw3-xzfn-Ty34-qc0j-Gt4u-AVvFDi (created here) takes precedence over MrlVHc-vFZq-aHyf-95xd-s5kJ-xlXZ-iNdnuQ
WARNING: Duplicate VG name VM-STORAGE: Existing MrlVHc-vFZq-aHyf-95xd-s5kJ-xlXZ-iNdnuQ (created here) takes precedence over xXWAyN-Sxw3-xzfn-Ty34-qc0j-Gt4u-AVvFDi
WARNING: Duplicate VG name VM-STORAGE: Existing MrlVHc-vFZq-aHyf-95xd-s5kJ-xlXZ-iNdnuQ (created here) takes precedence over xXWAyN-Sxw3-xzfn-Ty34-qc0j-Gt4u-AVvFDi
Couldn't find device with uuid rBLMIk-Rx9M-71gh-i1nj-heDV-CRIc-QgpEFE.
TASK ERROR: can't activate LV '/dev/VM-STORAGE/vm-101-disk-1': Refusing activation of partial LV VM-STORAGE/vm-101-disk-1. Use '--activationmode partial' to override.



Thank you
Hi,
what backup have you restored?
Looks that you change your pve-system and on the old (now active) system was the lvm-storage VM-STORAGE an different, than the actual one.

Can you post the output of following commands:
Code:
cat /etc/lvm/backup/*

pvdisplay
vgdisplay
Udo
 
hello
i restored several vm.five vm(linux,windows......)




cat /etc/lvm/backup/*



root@SVR-09-EPE:~# cat /etc/lvm/backup/*
# Generated by LVM2 version 2.02.116(2) (2015-01-30): Tue Mar 21 12:09:47 2017

contents = "Text Format Volume Group"
version = 1

description = "Created *after* executing 'lvextend -l +100%FREE /dev/mapper/pve- root'"

creation_host = "SVR-09-EPE" # Linux SVR-09-EPE 4.4.44-1-pve #1 SMP PVE 4.4.4 4-84 (Thu, 9 Mar 2017 12:06:34 +0100) x86_64
creation_time = 1490094587 # Tue Mar 21 12:09:47 2017

pve {
id = "UcOLeJ-Dmpg-C3Mh-9xoP-bdoo-FHL6-cckeJj"
seqno = 9
format = "lvm2" # informational
status = ["RESIZEABLE", "READ", "WRITE"]
flags = []
extent_size = 8192 # 4 Megabytes
max_lv = 0
max_pv = 0
metadata_copies = 0

physical_volumes {

pv0 {
id = "6CHXwE-cugA-EcIf-ZZp1-4gIY-2hpk-ctthD9"
device = "/dev/sdb3" # Hint only

status = ["ALLOCATABLE"]
flags = []
dev_size = 7812411359 # 3.63794 Terabytes
pe_start = 2048
pe_count = 953663 # 3.63794 Terabytes
}
}

logical_volumes {

swap {
id = "iSpjtJ-JmBQ-1occ-N4oD-gAnR-HRpl-fFj9UV"
status = ["READ", "WRITE", "VISIBLE"]
flags = []
creation_host = "proxmox"
creation_time = 1490015877 # 2017-03-20 14:17:57 +0 100
segment_count = 1

segment1 {
start_extent = 0
extent_count = 2048 # 8 Gigabytes

type = "striped"
stripe_count = 1 # linear

stripes = [
"pv0", 0
]
}
}

root {
id = "LTg28z-sVyR-7RNn-yyhU-E7yN-mm0D-gYk1ym"
status = ["READ", "WRITE", "VISIBLE"]
flags = []
creation_host = "proxmox"
creation_time = 1490015877 # 2017-03-20 14:17:57 +0 100
segment_count = 1

segment1 {
start_extent = 0
extent_count = 951615 # 3.63012 Terabytes

type = "striped"
stripe_count = 1 # linear

stripes = [
"pv0", 2048
]
}
}
}
}
# Generated by LVM2 version 2.02.116(2) (2015-01-30): Wed Mar 22 09:21:22 2017

contents = "Text Format Volume Group"
version = 1

description = "Created *after* executing '/sbin/vgs --separator : --noheadings - -units b --unbuffered --nosuffix --options vg_name,vg_size,vg_free'"

creation_host = "SVR-09-EPE" # Linux SVR-09-EPE 4.4.44-1-pve #1 SMP PVE 4.4.4 4-84 (Thu, 9 Mar 2017 12:06:34 +0100) x86_64
creation_time = 1490170882 # Wed Mar 22 09:21:22 2017

VM-STORAGE {
id = "MrlVHc-vFZq-aHyf-95xd-s5kJ-xlXZ-iNdnuQ"
seqno = 23
format = "lvm2" # informational
status = ["RESIZEABLE", "READ", "WRITE"]
flags = []
extent_size = 8192 # 4 Megabytes
max_lv = 0
max_pv = 0
metadata_copies = 0

physical_volumes {

pv0 {
id = "rBLMIk-Rx9M-71gh-i1nj-heDV-CRIc-QgpEFE"
device = "unknown device" # Hint only

status = ["ALLOCATABLE"]
flags = ["MISSING"]
dev_size = 3905943552 # 1.81885 Terabytes
pe_start = 2048
pe_count = 476799 # 1.81884 Terabytes
}

pv1 {
id = "HaMBd5-0OcW-6K2M-QPQa-YQNg-zWi0-jY3nHE"
device = "/dev/VM-STORAGE/vm-106-disk-2" # Hint o nly

status = ["ALLOCATABLE"]
flags = []
dev_size = 1953521664 # 931.512 Gigabytes
pe_start = 2048
pe_count = 238466 # 931.508 Gigabytes
}
}

logical_volumes {

vm-106-disk-1 {
id = "qhWqX0-OUhJ-e6ff-ocaz-x078-8G8U-00WvGq"
status = ["READ", "WRITE", "VISIBLE"]
flags = []
tags = ["pve-vm-106"]
creation_host = "SVR-09-EPE"
creation_time = 1485349468 # 2017-01-25 14:04:28 +0 100
segment_count = 1

segment1 {
start_extent = 0
extent_count = 256000 # 1000 Gigabytes

type = "striped"
stripe_count = 1 # linear

stripes = [
"pv0", 0
]
}
}

vm-102-disk-1 {
id = "UjxwSZ-iv8K-qGOC-0Fa8-9zW0-1I1S-6C8ocD"
status = ["READ", "WRITE", "VISIBLE"]
flags = []
tags = ["pve-vm-102"]
creation_host = "SVR-09-EPE"
creation_time = 1485430147 # 2017-01-26 12:29:07 +0 100
segment_count = 1

segment1 {
start_extent = 0
extent_count = 131072 # 512 Gigabytes

type = "striped"
stripe_count = 1 # linear

stripes = [
"pv0", 256000
]
}
}

vm-103-disk-1 {
id = "8MZ25k-k5uM-Z2AM-MZrc-2431-ZIOR-NO3EKP"
status = ["READ", "WRITE", "VISIBLE"]
flags = []
tags = ["pve-vm-103"]
creation_host = "SVR-09-EPE"
creation_time = 1485437333 # 2017-01-26 14:28:53 +0 100
segment_count = 1

segment1 {
start_extent = 0
extent_count = 51200 # 200 Gigabytes

type = "striped"
stripe_count = 1 # linear

stripes = [
"pv0", 412672
]
}
}

vm-104-disk-1 {
id = "9WOKT7-9JbP-NGVf-jkg3-Nzc8-yvV2-F2ikIM"
status = ["READ", "WRITE", "VISIBLE"]
flags = []
tags = ["pve-vm-104"]
creation_host = "SVR-09-EPE"
creation_time = 1485437423 # 2017-01-26 14:30:23 +0 100
segment_count = 1

segment1 {
start_extent = 0
extent_count = 12800 # 50 Gigabytes

type = "striped"
stripe_count = 1 # linear

stripes = [
"pv0", 463872
]
}
}

vm-100-disk-1 {
id = "fq1FLf-hUtZ-OzxS-SNf6-AMkJ-SY5g-5rS7k5"
status = ["READ", "WRITE", "VISIBLE"]
flags = []
tags = ["pve-vm-100"]
creation_host = "SVR-09-EPE"
creation_time = 1486559343 # 2017-02-08 14:09:03 +0 100
segment_count = 1

segment1 {
start_extent = 0
extent_count = 76800 # 300 Gigabytes

type = "striped"
stripe_count = 1 # linear

stripes = [
"pv1", 0
]
}
}

vm-101-disk-1 {
id = "MmABIn-1Ufa-1tIH-AH2Z-qlDo-fx6I-JPIDYe"
status = ["READ", "WRITE", "VISIBLE"]
flags = []
tags = ["pve-vm-101"]
creation_host = "SVR-09-EPE"
creation_time = 1486561580 # 2017-02-08 14:46:20 +0 100
segment_count = 1

segment1 {
start_extent = 0
extent_count = 8192 # 32 Gigabytes

type = "striped"
stripe_count = 1 # linear

stripes = [
"pv0", 387072
]
}
}

vm-101-disk-2 {
id = "kZybnm-yNWB-YFNS-z7TJ-RWFo-utlH-duAEVB"
status = ["READ", "WRITE", "VISIBLE"]
flags = []
tags = ["pve-vm-101"]
creation_host = "SVR-09-EPE"
creation_time = 1486561603 # 2017-02-08 14:46:43 +0 100
segment_count = 1

segment1 {
start_extent = 0
extent_count = 12800 # 50 Gigabytes

type = "striped"
stripe_count = 1 # linear

stripes = [
"pv0", 395264
]
}
}
}
}



pvdisplay



root@SVR-09-EPE:~# pvdisplay
WARNING: Duplicate VG name VM-STORAGE: Existing MrlVHc-vFZq-aHyf-95xd-s5kJ-xlXZ-iNdnuQ (created here) takes precedence over xXWAyN-Sxw3-xzfn-Ty34-qc0j-Gt4u-AVvFDi
WARNING: Duplicate VG name VM-STORAGE: Existing MrlVHc-vFZq-aHyf-95xd-s5kJ-xlXZ-iNdnuQ (created here) takes precedence over xXWAyN-Sxw3-xzfn-Ty34-qc0j-Gt4u-AVvFDi
--- Physical volume ---
PV Name /dev/sdc1
VG Name VM-STORAGE
PV Size 5.46 TiB / not usable 2.98 MiB
Allocatable yes
PE Size 4.00 MiB
Total PE 1430399
Free PE 655868
Allocated PE 774531
PV UUID U92odp-3cxx-aPXE-m4Rl-xDma-1i3M-kQ7uIp

--- Physical volume ---
PV Name /dev/sdb3
VG Name pve
PV Size 3.64 TiB / not usable 1.98 MiB
Allocatable yes (but full)
PE Size 4.00 MiB
Total PE 953663
Free PE 0
Allocated PE 953663
PV UUID 6CHXwE-cugA-EcIf-ZZp1-4gIY-2hpk-ctthD9

Couldn't find device with uuid rBLMIk-Rx9M-71gh-i1nj-heDV-CRIc-QgpEFE.
--- Physical volume ---
PV Name unknown device
VG Name VM-STORAGE
PV Size 1.82 TiB / not usable 3.00 MiB
Allocatable yes
PE Size 4.00 MiB
Total PE 476799
Free PE 4735
Allocated PE 472064
PV UUID rBLMIk-Rx9M-71gh-i1nj-heDV-CRIc-QgpEFE

--- Physical volume ---
PV Name /dev/VM-STORAGE/vm-106-disk-2
VG Name VM-STORAGE
PV Size 931.51 GiB / not usable 4.00 MiB
Allocatable yes
PE Size 4.00 MiB
Total PE 238466
Free PE 161666
Allocated PE 76800
PV UUID HaMBd5-0OcW-6K2M-QPQa-YQNg-zWi0-jY3nHE












 
vgdisplay

root@SVR-09-EPE:~# vgdisplay
WARNING: Duplicate VG name VM-STORAGE: Existing MrlVHc-vFZq-aHyf-95xd-s5kJ-xlX Z-iNdnuQ (created here) takes precedence over xXWAyN-Sxw3-xzfn-Ty34-qc0j-Gt4u-AV vFDi
WARNING: Duplicate VG name VM-STORAGE: Existing MrlVHc-vFZq-aHyf-95xd-s5kJ-xlX Z-iNdnuQ (created here) takes precedence over xXWAyN-Sxw3-xzfn-Ty34-qc0j-Gt4u-AV vFDi
WARNING: Duplicate VG name VM-STORAGE: Existing xXWAyN-Sxw3-xzfn-Ty34-qc0j-Gt4 u-AVvFDi (created here) takes precedence over MrlVHc-vFZq-aHyf-95xd-s5kJ-xlXZ-iN dnuQ
--- Volume group ---
VG Name VM-STORAGE
System ID
Format lvm2
Metadata Areas 1
Metadata Sequence No 16
VG Access read/write
VG Status resizable
MAX LV 0
Cur LV 7
Open LV 2
Max PV 0
Cur PV 1
Act PV 1
VG Size 5.46 TiB
PE Size 4.00 MiB
Total PE 1430399
Alloc PE / Size 774531 / 2.95 TiB
Free PE / Size 655868 / 2.50 TiB
VG UUID xXWAyN-Sxw3-xzfn-Ty34-qc0j-Gt4u-AVvFDi

WARNING: Duplicate VG name VM-STORAGE: Existing MrlVHc-vFZq-aHyf-95xd-s5kJ-xlX Z-iNdnuQ (created here) takes precedence over xXWAyN-Sxw3-xzfn-Ty34-qc0j-Gt4u-AV vFDi
--- Volume group ---
VG Name pve
System ID
Format lvm2
Metadata Areas 1
Metadata Sequence No 9
VG Access read/write
VG Status resizable
MAX LV 0
Cur LV 2
Open LV 2
Max PV 0
Cur PV 1
Act PV 1
VG Size 3.64 TiB
PE Size 4.00 MiB
Total PE 953663
Alloc PE / Size 953663 / 3.64 TiB
Free PE / Size 0 / 0
VG UUID UcOLeJ-Dmpg-C3Mh-9xoP-bdoo-FHL6-cckeJj

WARNING: Duplicate VG name VM-STORAGE: Existing xXWAyN-Sxw3-xzfn-Ty34-qc0j-Gt4 u-AVvFDi (created here) takes precedence over MrlVHc-vFZq-aHyf-95xd-s5kJ-xlXZ-iN dnuQ
WARNING: Duplicate VG name VM-STORAGE: Existing MrlVHc-vFZq-aHyf-95xd-s5kJ-xlX Z-iNdnuQ (created here) takes precedence over xXWAyN-Sxw3-xzfn-Ty34-qc0j-Gt4u-AV vFDi
--- Volume group ---
VG Name VM-STORAGE
System ID
Format lvm2
Metadata Areas 1
Metadata Sequence No 23
VG Access read/write
VG Status resizable
MAX LV 0
Cur LV 7
Open LV 0
Max PV 0
Cur PV 2
Act PV 1
VG Size 2.73 TiB
PE Size 4.00 MiB
Total PE 715265
Alloc PE / Size 548864 / 2.09 TiB
Free PE / Size 166401 / 650.00 GiB
VG UUID MrlVHc-vFZq-aHyf-95xd-s5kJ-xlXZ-iNdnu





thank
 
hello
i restored several vm.five vm(linux,windows......)
...
VM-STORAGE {
id = "MrlVHc-vFZq-aHyf-95xd-s5kJ-xlXZ-iNdnuQ"
seqno = 23
format = "lvm2" # informational
status = ["RESIZEABLE", "READ", "WRITE"]
flags = []
extent_size = 8192 # 4 Megabytes
max_lv = 0
max_pv = 0
metadata_copies = 0

physical_volumes {

pv0 {
id = "rBLMIk-Rx9M-71gh-i1nj-heDV-CRIc-QgpEFE"
device = "unknown device" # Hint only

status = ["ALLOCATABLE"]
flags = ["MISSING"]
dev_size = 3905943552 # 1.81885 Terabytes
pe_start = 2048
pe_count = 476799 # 1.81884 Terabytes
}

pv1 {
id = "HaMBd5-0OcW-6K2M-QPQa-YQNg-zWi0-jY3nHE"
device = "/dev/VM-STORAGE/vm-106-disk-2" # Hint o nly

status = ["ALLOCATABLE"]
flags = []
dev_size = 1953521664 # 931.512 Gigabytes
pe_start = 2048
pe_count = 238466 # 931.508 Gigabytes
}
}
...

--- Physical volume ---
PV Name /dev/sdc1
VG Name VM-STORAGE
PV Size 5.46 TiB / not usable 2.98 MiB
Allocatable yes
PE Size 4.00 MiB
Total PE 1430399
Free PE 655868
Allocated PE 774531
PV UUID U92odp-3cxx-aPXE-m4Rl-xDma-1i3M-kQ7uIp
...
Couldn't find device with uuid rBLMIk-Rx9M-71gh-i1nj-heDV-CRIc-QgpEFE.
--- Physical volume ---
PV Name unknown device
VG Name VM-STORAGE
PV Size 1.82 TiB / not usable 3.00 MiB
Allocatable yes
PE Size 4.00 MiB
Total PE 476799
Free PE 4735
Allocated PE 472064
PV UUID rBLMIk-Rx9M-71gh-i1nj-heDV-CRIc-QgpEFE

--- Physical volume ---
PV Name /dev/VM-STORAGE/vm-106-disk-2
VG Name VM-STORAGE
PV Size 931.51 GiB / not usable 4.00 MiB
Allocatable yes
PE Size 4.00 MiB
Total PE 238466
Free PE 161666
Allocated PE 76800
PV UUID HaMBd5-0OcW-6K2M-QPQa-YQNg-zWi0-jY3nHE
Hi,
you use the VG VM-STORAGE twice! Once on the node - ok!
But also an VG with the same name in VM 106.

VM 106 has the issue, that one device for the VM is missing - you restored only one from two disks!

You should use filter - so that your host don't see LVMs inside VMs. This happens if you use whole disks for lvm inside guest.

Udo
 
yes vm 106 does not work (bad restored)
but 100,101 , 102 ,103

TASK ERROR: can't activate LV '/dev/VM-STORAGE/vm-101-disk-1': Refusing activation of partial LV VM-STORAGE/vm-101-disk-1. Use '--activationmode partial' to override

thank
 
yes vm 106 does not work (bad restored)
but 100,101 , 102 ,103

TASK ERROR: can't activate LV '/dev/VM-STORAGE/vm-101-disk-1': Refusing activation of partial LV VM-STORAGE/vm-101-disk-1. Use '--activationmode partial' to override

thank
Hi,
read my post again:
1. filter the guest-LV on the host (/etc/lvm/lvm.conf)
2. use all physical volumes (pv) of the lvm inside the VM

Udo
 

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!