Probleme mit LVM1-Volumes
Hallo,
ein System wurde vor längerer Zeit als Woody mit LVM1 aufgesetzt, seit irgendwann (Sarge? Etch? Kernel 2.6.18?) dann mit LVM2 betrieben und lief eigentlich auch problemlos. Nun sollte es LVM-snapshots machen, was nicht funktionierte.
In Kürze:
# lvcreate -L350M -s -n snap-var /dev/volg1/logv1
Rounding up size to full physical extent 352,00 MB
Invalid LV in extent map (PV /dev/sda3, PE 1080, LV 5, LE 0)
Couldn't fill logical volume maps.
Én Detail: Fangen wir logisch unten an.
# fdisk -l /dev/sda
Disk /dev/sda: 73.4 GB, 73410805760 bytes
254 heads, 63 sectors/track, 8960 cylinders
Units = cylinders of 16002 * 512 = 8193024 bytes
Device Boot Start End Blocks Id System
/dev/sda1 * 1 244 1952212+ 83 Linux
/dev/sda2 245 4485 33932241 8e LinuxLVM
/dev/sda3 4486 8960 35804475 8e LinuxLVM
Es gibt zwei PV, weil irgendwann die Platte von 36 auf 73 GB wuchs.
# pvdisplay
--- Physical volume ---
PV Name /dev/sda2
VG Name volg1
PV Size 32,36 GB / not usable 48,95 MB
Allocatable yes (but full)
PE Size (KByte) 32768
Total PE 1034
Free PE 0
Allocated PE 1034
PV UUID O17ru0-C8v2-3iLh-6isM-Z3n5-mn41-6nhDky
--- Physical volume ---
PV Name /dev/sda3
VG Name volg1
PV Size 34,15 GB / not usable 53,31 MB
Allocatable yes
PE Size (KByte) 32768
Total PE 1091
Free PE 11
Allocated PE 1080
PV UUID pe1zVS-YN39-Rw1k-Esfg-WIdG-cl5h-OhDZmF
Darauf dann eine VolumeGroup:
# vgdisplay
--- Volume group ---
VG Name volg1
System ID Knoppix1091952233
Format lvm1
VG Access read/write
VG Status resizable
MAX LV 256
Cur LV 5
Open LV 5
Max PV 256
Cur PV 2
Act PV 2
VG Size 66,41 GB
PE Size 32,00 MB
Total PE 2125
Alloc PE / Size 2114 / 66,06 GB
Free PE / Size 11 / 352,00 MB
VG UUID J75sG2-mUcD-aUet-g4EV-y3AS-UNfb-2LRwhj
mit einigen LVs drin:
# lvdisplay
--- Logical volume ---
LV Name /dev/volg1/logv1
VG Name volg1
LV UUID 000000-0000-0000-0000-0000-0000-000000
LV Write Access read/write
LV Status available
# open 1
LV Size 1,97 GB
Current LE 63
Segments 1
Allocation normal
Read ahead sectors 1024
Block device 254:0
[...]
Gut, nun sollte da also ein snapshot gemacht werden:
# lvcreate -L350M -s -n snap-var /dev/volg1/logv1
Rounding up size to full physical extent 352,00 MB
Invalid LV in extent map (PV /dev/sda3, PE 1080, LV 5, LE 0)
Couldn't fill logical volume maps.
Invalid LV in extent map (PV /dev/sda3, PE 1080, LV 5, LE 0)
Couldn't fill logical volume maps.
Invalid LV in extent map (PV /dev/sda3, PE 1080, LV 5, LE 0)
Couldn't fill logical volume maps.
Invalid LV in extent map (PV /dev/sda3, PE 1080, LV 5, LE 0)
Couldn't fill logical volume maps.
Volume group for uuid not found:
J75sG2mUcDaUetg4EVy3ASUNfb2LRwhj00000000000000000000000000000000
Failed to suspend origin logv1
aber "irgendwas" klappt nicht. Leider sind die Treffer der Suchmaschinen nicht sonderlich hilfreich.
Was ist hier kaputt?
Zuletzt bekam ich auf keinen LVM-Befehl mehr irgendwelche sinnvollen Ausgaben, sondern immer nur sowas:
# vgdisplay
Invalid LV in extent map (PV /dev/sda3, PE 1080, LV 5, LE 0)
Couldn't fill logical volume maps.
Invalid LV in extent map (PV /dev/sda3, PE 1080, LV 5, LE 0)
Couldn't fill logical volume maps.
Volume group "volg1" not found
Wie angesichts [1] schon zu befürchten war, kommt die Kiste nun nach einem Reboot nicht mehr hoch. Sehr unschön. Ich habe Knoppix 5.0.1 mit LVM2-Unterstützung zur Hand, aber das hat auch
nichts anderes mitzuteilen. [2] passt inhaltlich, hilft mir aber nicht, weil ich in das nicht mehr bootende System nicht hineinkomme. Unter Knoppix 5.0.1 habe ich nun zwar lvm10_1.0.8-8_i386.deb installiert, das antwortet aber nur
# /lib/lvm-10/pvscan
pvscan -- LVM driver/module not loaded?
Ich bräuchte dringend Hilfe.
Danke & viele Grüße
Paul
[1] http://archives.devshed.com/forums/linux-97/invalid-lv-in-extent-map-1632614.html
[2] http://www.copilotconsulting.com/mail-archives/linux-lvm.2005/msg00025.html
Reply to: