Quote:
Originally Posted by kbscores
Unless you have the restore file already or there is partial metadata it probably won't work. It will most likely turn out that you need to recreate the lvm structure and restore data from a backup.
|
I have the restore file, asuming you talking about the bcakup file that is in /etc/lvm/backup. It looks like this:
Code:
# Generated by LVM2 version 2.02.100(2) (2013-08-13): Sun Dec 1 21:07:35 2013
contents = "Text Format Volume Group"
version = 1
description = "Created *after* executing 'vgdisplay'"
creation_host = "RJ-Server" # Linux RJ-Server 3.12.1-eRJe #1 SMP Wed Nov 27 23:01:45 CET 2013 x86_64
creation_time = 1385928455 # Sun Dec 1 21:07:35 2013
r5disk1vg {
id = "0WtcH9-QqHK-uB7H-oLOC-HuRm-VQ0G-eaUlNq"
seqno = 32
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 = "qlYT5y-TiqU-US31-TI6n-9FQT-wZUO-FdATKK"
device = "/dev/md0" # Hint only
status = ["ALLOCATABLE"]
flags = []
dev_size = 5860559232 # 2.72904 Terabytes
pe_start = 384
pe_count = 715400 # 2.72903 Terabytes
}
}
logical_volumes {
datalv {
id = "5xMXsN-7xk9-S8xn-aeMN-BX8u-zw8s-xViiZs"
status = ["READ", "WRITE", "VISIBLE"]
flags = []
segment_count = 1
segment1 {
start_extent = 0
extent_count = 51200 # 200 Gigabytes
type = "striped"
stripe_count = 1 # linear
stripes = [
"pv0", 0
]
}
}
auvilv {
id = "zKcZxp-lQCY-gxfc-WyJW-BHyL-mZS4-atLOl6"
status = ["READ", "WRITE", "VISIBLE"]
flags = []
segment_count = 1
segment1 {
start_extent = 0
extent_count = 524288 # 2 Terabytes
type = "striped"
stripe_count = 1 # linear
stripes = [
"pv0", 51200
]
}
}
}
}
My command I posted earlier is probably wrong and should have been this:
Code:
# pvcreate --uuid qlYT5y-TiqU-US31-TI6n-9FQT-wZUO-FdATKK /dev/md0
Since this is the UUID that is expected by this file?
And now I'm also wondering if I have to change the backupfile too, to match the correct UUID
Code:
r5disk1vg {
id = "0WtcH9-QqHK-uB7H-oLOC-HuRm-VQ0G-eaUlNq"
Your help is very much appreciated! Thanks!