[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Re: [lvm-devel] broken vg after vgconvert -M1, trying to recover



Hello.

Alasdair G Kergon wrote:
To recover, you should: update to a newer version such as 2.02.42 or 2.02.43,
find a suitable metadata backup file, edit it to ensure the LV UUIDs are
compatible with LVM1 (ie small consecutive numbers with leading zeroes)
then use vgcfgrestore.
OK, I recovered the backup from the
partition dump and upgraded lvm2 to
2.0.43. I changed the LV IDs, and
vgcfgrestore says this:
---
 PV /dev/sdb3 is a different format (seqno lvm1)
 Restore failed.
---

And if I also change the pv0 id,
I get this:
---
 Couldn't find device with uuid '000000-0000-0000-0000-0000-0000-000009'.
Segmentation fault
---

The segfault comes from archiver.c:296 -
pv->dev is NULL here, but the check is
missing.
Attached is my restored metadata backup.
Please let me know how can I recover from
that.

# Generated by LVM2: Wed Nov 21 16:06:38 2007

contents = "Text Format Volume Group"
version = 1

description = ""

creation_host = "localhost.localdomain"	# Linux localhost.localdomain 2.6.9-1.667 #1 Tue Nov 2 14:41:31 EST 2004 i686
creation_time = 1195661198	# Wed Nov 21 16:06:38 2007

fedora_vg {
id = "sJJxWC-ZIO4-8GhK-pwji-2KJS-MtuE-Q7K9z5"
seqno = 8
status = ["RESIZEABLE", "READ", "WRITE"]
extent_size = 65536
max_lv = 0
max_pv = 0

physical_volumes {

pv0 {
#id = "ZGhm2O-4WQJ-OQld-U8X2-YSV0-yL1P-bQ5cFq"
id = "000000-0000-0000-0000-0000-0000-000009"
device = "/dev/sdb3"

status = ["ALLOCATABLE"]
pe_start = 384
pe_count = 926
}
}

logical_volumes {

LogVol00 {
id = "000000-0000-0000-0000-0000-0000-000000"
status = ["READ", "WRITE", "VISIBLE"]
segment_count = 1

segment1 {
start_extent = 0
extent_count = 63

type = "striped"
stripe_count = 1	# linear

stripes = [
"pv0", 0
]
}
}

LogVol01 {
id = "000000-0000-0000-0000-0000-0000-000001"
status = ["READ", "WRITE", "VISIBLE"]
segment_count = 1

segment1 {
start_extent = 0
extent_count = 94

type = "striped"
stripe_count = 1	# linear

stripes = [
"pv0", 63
]
}
}

LogVol02 {
id = "000000-0000-0000-0000-0000-0000-000002"
status = ["READ", "WRITE", "VISIBLE"]
segment_count = 1

segment1 {
start_extent = 0
extent_count = 32

type = "striped"
stripe_count = 1	# linear

stripes = [
"pv0", 157
]
}
}

LogVol03 {
id = "000000-0000-0000-0000-0000-0000-000003"
status = ["READ", "WRITE", "VISIBLE"]
segment_count = 1

segment1 {
start_extent = 0
extent_count = 188

type = "striped"
stripe_count = 1	# linear

stripes = [
"pv0", 189
]
}
}

LogVol05 {
id = "000000-0000-0000-0000-0000-0000-000005"
status = ["READ", "WRITE", "VISIBLE"]
segment_count = 1

segment1 {
start_extent = 0
extent_count = 32

type = "striped"
stripe_count = 1	# linear

stripes = [
"pv0", 377
]
}
}

LogVol04 {
id = "000000-0000-0000-0000-0000-0000-000004"
status = ["READ", "WRITE", "VISIBLE"]
segment_count = 1

segment1 {
start_extent = 0
extent_count = 63

type = "striped"
stripe_count = 1	# linear

stripes = [
"pv0", 409
]
}
}

LogVol06 {
id = "000000-0000-0000-0000-0000-0000-000006"
status = ["READ", "WRITE", "VISIBLE"]
segment_count = 1

segment1 {
start_extent = 0
extent_count = 32

type = "striped"
stripe_count = 1	# linear

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

[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]