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