Bug#315339: More problems w/ lvm2 and striped lvm1 volumes
Anders Hammarquist
iko at cd.chalmers.se
Thu Oct 13 14:51:57 UTC 2005
Hi!
Here is another data point. I just (tried to) upgrade to lvm2 2.01.14-3
and it breaks my striped lvm1 volme, but the single-disk one works fine.
I've tried the vgcfgbackup/vgcfgrestore trick to try to get the metadata
consistent, but no go. The lvm is sdb + sdc (yes, they're old disks...)
Any ideas? (other than running vgconvert from 2.01.04?)
Initially:
# pvdisplay -v /dev/sdb
Using physical volume(s) on command line
--- Physical volume ---
PV Name /dev/sdb
VG Name vg1
PV Size 3.00 GB / not usable 11.31 MB
Allocatable yes
PE Size (KByte) 8192
Total PE 382
Free PE 176
Allocated PE 206
PV UUID uUjd8k-fAF9-M3Nv-fMVh-JDb8-Lmde-XOBoZe
After vgcfgbackup+restore (so *something* changed):
# pvdisplay -v /dev/sdb
Using physical volume(s) on command line
--- Physical volume ---
PV Name /dev/sdb
VG Name vg1
PV Size 2.98 GB / not usable 0
Allocatable yes
PE Size (KByte) 8192
Total PE 382
Free PE 176
Allocated PE 206
PV UUID uUjd8k-fAF9-M3Nv-fMVh-JDb8-Lmde-XOBoZe
vgscan from 2.01.14 says (usr lives on vg1):
# vgscan
Reading all physical volumes. This may take a while...
LV usr: inconsistent LE count 206 != 412
Internal error: LV segments corrupted in usr.
Volume group "vg1" not found
Found volume group "vg2" using metadata type lvm1
Exit 5
# cat /etc/lvm/backup/vg1
# Generated by LVM2: Thu Oct 13 16:42:42 2005
contents = "Text Format Volume Group"
version = 1
description = "Created *after* executing '/sbin/vgcfgbackup'"
creation_host = "eskarina" # Linux eskarina 2.6.13.4 #1 SMP Wed Oct 12 22:27:15 MEST 2005 i686
creation_time = 1129214562 # Thu Oct 13 16:42:42 2005
vg1 {
id = "azz8CP-V6mU-DEyq-Riqc-LPC1-9h6o-xSlzPy"
seqno = 0
status = ["RESIZEABLE", "READ", "WRITE"]
system_id = "eskarina1076353081"
extent_size = 16384 # 8 Megabytes
max_lv = 256
max_pv = 256
physical_volumes {
pv0 {
id = "uUjd8k-fAF9-M3Nv-fMVh-JDb8-Lmde-XOBoZe"
device = "/dev/sdb" # Hint only
status = ["ALLOCATABLE"]
pe_start = 16768
pe_count = 382 # 2.98438 Gigabytes
}
pv1 {
id = "ouci2x-aJWh-pHgp-b9d6-Ox0I-rXAf-A3StE7"
device = "/dev/sdc" # Hint only
status = ["ALLOCATABLE"]
pe_start = 16768
pe_count = 382 # 2.98438 Gigabytes
}
}
logical_volumes {
usr {
id = "000000-0000-0000-0000-0000-0000-000000"
status = ["READ", "WRITE", "VISIBLE"]
allocation_policy = "normal"
read_ahead = 1024
segment_count = 1
segment1 {
start_extent = 0
extent_count = 412 # 3.21875 Gigabytes
type = "striped"
stripe_count = 2
stripe_size = 32 # 16 Kilobytes
stripes = [
"pv0", 0,
"pv1", 0
]
}
}
}
}
/Anders
--
-- Of course I'm crazy, but that doesn't mean I'm wrong.
Anders Hammarquist | iko at cd.chalmers.se
Physics student, Chalmers University of Technology, | Hem: +46 31 88 48 50
G|teborg, Sweden. RADIO: SM6XMM and N2JGL | Mob: +46 707 27 86 87
More information about the pkg-lvm-maintainers
mailing list