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

rootfs auf lvm, auf crypt, auf mdadm raid1, bootet nicht MEHR *alleine*



Tach Liste,

ich hab da mal nen klitzekleines Problem mit dem sonst so gewohnt
komfortablem booten ;)

(ernsthaft, man glaubt gar nicht was man da für nen 'Luxus' gewohnt
ist!)

Das Platten / System Layout ist wie im Betreff beschrieben vom lenny d-i
angelegt worden und bootete auch gut ne Woche lang täglich ohne murren:
Kernel auswählen, enter, warten, crypt Passphrase eintippern, warten,
einloggen, glücklich sein.
Zwischenzeitlich is aus dem Teil nen sehr glückliches sid geworden
(aktualisiere je nachdem täglich bis wöchentlich). Als 'sid' bootete es
auch immer problemfrei (lenny -> sid am Installationstag). Seit Montag
darf ich nun folgendes Prozedere zum booten durchgehen:
grub kernel Parameter mit break=mount ergänzen, booten, warten bis es
mich in die busybox shell wirft, modprobe dm-mod, mdadm -A --scan,
cryptsetup luksOpen /dev/md1 md1_crypt, Passphrase eintippern, vgchange
-ay (nicht unbedingt nötig!), exit, warten, einloggen, leicht mürrisch
sein.

Boote ich normal sieht das dann aus wie im screenshot zu sehen.

Ergebnis is das selbe. Ich lande nach nem grob 2 minütigem timeout
(warten aufs root-fs) in ebenfalls ner busybox shell ABER, mache ich das
selbe wie oben mit break=mount, mag lvm nicht. Dort exit und es meckert
immernoch über das fehlende device mit dem root-fs. Selbst da (das oben
nicht nötige) vgchange -ay zum aktivieren der lvs getippert und es
passiert nix. Im obigen mit break=mount zeigt er da eben 4 nun
aktivierte logische volumes an, hier nun aber rein gar nix, die devices
werden auch nicht erstellt (/dev/mapper/ bis auf 'control'
leer, /dev/dm-N nicht da...).
Nebenkriegsschauplätz wäre noch eine ab und zu nicht funktionierende USB
Tastatur zur Passphrase Eingabe. Das ging seit Tag1 nicht, hatte
dann /etc/initramfs-tools/modules angepasst (uhci_hcd und usbhid
reingeworfen), initrd neu generiert und wieder ne Woche ohne Probleme
gebootet (hatte ich ebenfalls an Tag1 gefixt). Nun passiert es aber bei
dem booten "zu Fuß" (siehe oben) manchmal das die USB Tastatur nicht
beim booten tut.
Zwischenzeitlich habe ich versucht das Problem zu debuggen und mir war
u.A. aufgefallen das auf einmal die crypto Module in der initrd gefehlt
hatten. Diese ebenfalls händisch wieder hinzugefügt und von da ab ging
zumindest der manuelle Weg, vorher meckerte der Kernel logischer Weise
(mit nicht direkt zielführenden Meldungen, aber für was gibts denn
google?) beim Versuch md1 zu entschlüsseln. Weiterhin hatte ich nen
mdadm upgrade, das hatte ich wieder rückgängig gemacht, initrd neu
gebaut (passierte automatisch) aber half nicht.
Ich habe nun weiter versucht bei den Skripten in der initrd
durchzublicken (weil fehlen dürfte ja nix mehr, sonst würde es manuell
"zu Fuß" ebenfalls nicht gehen) um zu verstehen wo es hängen könnte,
aber da wirds langsam zu wüst, Wald und Bäume und so, *tilt*.

Zusammenfassung: (ohje *g*)
2 200GB Platten am onboard sata controller (sda, sdb)
2 Partitionen pro Platte
  '-> 2 mdadm raid 1 arrays
      '-> md0 (aus sda1 und sdb1) für /boot
      '-> md1 (aus sda2 und sdb2) für crypt
           '-> crypt für LVM
               '-> LVs für /, /home, /srv

Mittlerweile gibts auch für /tmp nen lv (hatte ich ebenfalls am Vortag
des Bootproblems angelegt) aber daran sollte sich ja die initrd kaum
stören...

In der Anlage habe ich mal etwaige Details in Textdateien gepackt die
grob den an sich absolut validen Zustand des Systems und besonders des
LVMs darstellen sollen und auch sonst erstmal zum Fakten darstellen
dienen sollen):

Kernel 2.6.26-2-686 oder 2.6.29-1-686

fdisk -l /dev/sd[ab]    -> fdisk.txt
pvscan -v 2>/dev/null   -> pvscan.txt
vgscan -vv              -> vgscan-vv.txt
lvscan                  -> lvscan.txt
lvdisplay               -> lvdisplay.txt
mdadm.conf              -> mdadm.conf.txt
grub menu.lst           -> menu.lst.txt
file -s /dev/mapper/[ms]* /dev/dm-? /dev/sd[ab]* -> file-Ls.txt (nur der
Vollständigkeit halber *g*)

Hat da irgendjemand nen Denkanstoß bzw. evtl. sogar etwas Durchblick und
mag seine 2 cents dazu abgeben? Auf Dauer nervt der händische
Anschubbser zum booten. Aber noch will ich das Problem verstehen und am
Ende auch fixen können... neu installieren kann ja jeder ;-)

Grüße
Michael
(TCW / TCW_ auf IRCNet/freenode/oftc falls mal wer da anklopfen mag ;)
Disk /dev/sda: 200.0 GB, 200049647616 bytes
255 heads, 63 sectors/track, 24321 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x00047ee1

   Device Boot      Start         End      Blocks   Id  System
/dev/sda1               1          61      489951   fd  Linux raid autodetect
/dev/sda2              62       21337   170899470   fd  Linux raid autodetect
/dev/sda3   *       21338       24320    23960947+   7  HPFS/NTFS

Disk /dev/sdb: 200.0 GB, 200049647616 bytes
255 heads, 63 sectors/track, 24321 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x000bfdd9

   Device Boot      Start         End      Blocks   Id  System
/dev/sdb1               1          61      489951   fd  Linux raid autodetect
/dev/sdb2              62       21337   170899470   fd  Linux raid autodetect
uhci_hcd
usbhid
cbc
aes_generic
aes-i586
sha256_generic

  --- Logical volume ---
  LV Name                /dev/storage1/root
  VG Name                storage1
  LV UUID                ZFJ7R9-P0Wc-XtGt-Vxwc-1n8m-C1Y5-tkcZOg
  LV Write Access        read/write
  LV Status              available
  # open                 1
  LV Size                10,31 GB
  Current LE             2640
  Segments               2
  Allocation             inherit
  Read ahead sectors     auto
  - currently set to     256
  Block device           254:1
   
  --- Logical volume ---
  LV Name                /dev/storage1/home
  VG Name                storage1
  LV UUID                bgWm04-VSx7-1TOZ-0AN6-EJI7-Cyhh-on1iKB
  LV Write Access        read/write
  LV Status              available
  # open                 1
  LV Size                9,31 GB
  Current LE             2384
  Segments               1
  Allocation             inherit
  Read ahead sectors     auto
  - currently set to     256
  Block device           254:2
   
  --- Logical volume ---
  LV Name                /dev/storage1/srv
  VG Name                storage1
  LV UUID                dJFcMG-oOy6-w625-JtGz-cC9V-vVBH-Vg9hPi
  LV Write Access        read/write
  LV Status              available
  # open                 1
  LV Size                100,39 GB
  Current LE             25700
  Segments               1
  Allocation             inherit
  Read ahead sectors     auto
  - currently set to     256
  Block device           254:3
   
  --- Logical volume ---
  LV Name                /dev/storage1/tmp
  VG Name                storage1
  LV UUID                t1R0Ed-uDS5-OZzy-5fe4-x4wp-81I8-S6ho44
  LV Write Access        read/write
  LV Status              available
  # open                 1
  LV Size                4,59 GB
  Current LE             1175
  Segments               1
  Allocation             inherit
  Read ahead sectors     auto
  - currently set to     256
  Block device           254:4
   
  ACTIVE            '/dev/storage1/root' [10,31 GB] inherit
  ACTIVE            '/dev/storage1/home' [9,31 GB] inherit
  ACTIVE            '/dev/storage1/srv' [100,39 GB] inherit
  ACTIVE            '/dev/storage1/tmp' [4,59 GB] inherit
DEVICE partitions
CREATE owner=root group=disk mode=0660 auto=yes
ARRAY /dev/md0 level=raid1 num-devices=2 UUID=c7b19959:88e89ae3:25c39618:43f7b8c5
ARRAY /dev/md1 level=raid1 num-devices=2 UUID=5ea7ece5:2850073b:dc798b89:063a7f82
  PV /dev/dm-0   VG storage1   lvm2 [162,98 GB / 38,38 GB free]
  Total: 1 [162,98 GB] / in use: 1 [162,98 GB] / in no VG: 0 [0   ]
      Setting global/locking_type to 1
      File-based locking selected.
      Setting global/locking_dir to /var/lock/lvm
      Locking /var/lock/lvm/P_global WB
    Wiping cache of LVM-capable devices
    Wiping internal VG cache
    Finding all volume groups
      /dev/ram0: size is 16384 sectors
      /dev/ram0: size is 16384 sectors
      /dev/ram0: No label detected
      /dev/cdrom: size is 881996 sectors
  /dev/cdrom: open failed: Das Dateisystem ist nur lesbar
  Attempt to close device '/dev/cdrom' which is not open.
      /dev/loop0: size is 0 sectors
      /dev/sda: size is 390721968 sectors
      /dev/md0: size is 979712 sectors
      /dev/md0: size is 979712 sectors
      /dev/md0: No label detected
      /dev/dm-0: size is 341796728 sectors
      /dev/dm-0: size is 341796728 sectors
      /dev/dm-0: lvm2 label detected
      /dev/ram1: size is 16384 sectors
      /dev/ram1: size is 16384 sectors
      /dev/ram1: No label detected
      /dev/loop1: size is 0 sectors
      /dev/sda1: size is 979902 sectors
      /dev/sda1: size is 979902 sectors
      /dev/md1: size is 341798784 sectors
      /dev/md1: size is 341798784 sectors
      /dev/md1: No label detected
      /dev/root: size is 21626880 sectors
      /dev/root: size is 21626880 sectors
      /dev/root: No label detected
      /dev/ram2: size is 16384 sectors
      /dev/ram2: size is 16384 sectors
      /dev/ram2: No label detected
      /dev/loop2: size is 0 sectors
      /dev/sda2: size is 341798940 sectors
      /dev/sda2: size is 341798940 sectors
      /dev/dm-2: size is 19529728 sectors
      /dev/dm-2: size is 19529728 sectors
      /dev/dm-2: No label detected
      /dev/ram3: size is 16384 sectors
      /dev/ram3: size is 16384 sectors
      /dev/ram3: No label detected
      /dev/loop3: size is 0 sectors
      /dev/sda3: size is 47921895 sectors
      /dev/sda3: size is 47921895 sectors
      /dev/sda3: No label detected
      /dev/dm-3: size is 210534400 sectors
      /dev/dm-3: size is 210534400 sectors
      /dev/dm-3: No label detected
      /dev/ram4: size is 16384 sectors
      /dev/ram4: size is 16384 sectors
      /dev/ram4: No label detected
      /dev/loop4: size is 0 sectors
      /dev/dm-4: size is 9625600 sectors
      /dev/dm-4: size is 9625600 sectors
      /dev/dm-4: No label detected
      /dev/ram5: size is 16384 sectors
      /dev/ram5: size is 16384 sectors
      /dev/ram5: No label detected
      /dev/loop5: size is 0 sectors
      /dev/ram6: size is 16384 sectors
      /dev/ram6: size is 16384 sectors
      /dev/ram6: No label detected
      /dev/loop6: size is 0 sectors
      /dev/ram7: size is 16384 sectors
      /dev/ram7: size is 16384 sectors
      /dev/ram7: No label detected
      /dev/loop7: size is 0 sectors
      /dev/ram8: size is 16384 sectors
      /dev/ram8: size is 16384 sectors
      /dev/ram8: No label detected
      /dev/ram9: size is 16384 sectors
      /dev/ram9: size is 16384 sectors
      /dev/ram9: No label detected
      /dev/ram10: size is 16384 sectors
      /dev/ram10: size is 16384 sectors
      /dev/ram10: No label detected
      /dev/ram11: size is 16384 sectors
      /dev/ram11: size is 16384 sectors
      /dev/ram11: No label detected
      /dev/ram12: size is 16384 sectors
      /dev/ram12: size is 16384 sectors
      /dev/ram12: No label detected
      /dev/ram13: size is 16384 sectors
      /dev/ram13: size is 16384 sectors
      /dev/ram13: No label detected
      /dev/ram14: size is 16384 sectors
      /dev/ram14: size is 16384 sectors
      /dev/ram14: No label detected
      /dev/ram15: size is 16384 sectors
      /dev/ram15: size is 16384 sectors
      /dev/ram15: No label detected
      /dev/sdb: size is 390721968 sectors
      /dev/sdb1: size is 979902 sectors
      /dev/sdb1: size is 979902 sectors
      /dev/sdb2: size is 341798940 sectors
      /dev/sdb2: size is 341798940 sectors
      /dev/sdd: size is 1003520 sectors
      /dev/sdd1: size is 1003479 sectors
      /dev/sdd1: size is 1003479 sectors
      /dev/sdd1: No label detected
      Locking /var/lock/lvm/V_storage1 RB
    Finding volume group "storage1"
      Unlocking /var/lock/lvm/V_storage1
      Unlocking /var/lock/lvm/P_global
  Reading all physical volumes.  This may take a while...
  Found volume group "storage1" using metadata type lvm2
default		0
timeout		5
color cyan/blue white/blue

title		Debian GNU/Linux, kernel 2.6.29-1-686
root		(hd0,0)
kernel		/vmlinuz-2.6.29-1-686 root=/dev/mapper/storage1-root ro 
initrd		/initrd.img-2.6.29-1-686

title		Debian GNU/Linux, kernel 2.6.29-1-686 (single-user mode)
root		(hd0,0)
kernel		/vmlinuz-2.6.29-1-686 root=/dev/mapper/storage1-root ro single
initrd		/initrd.img-2.6.29-1-686

title		Debian GNU/Linux, kernel 2.6.26-2-686
root		(hd0,0)
kernel		/vmlinuz-2.6.26-2-686 root=/dev/mapper/storage1-root ro 
initrd		/initrd.img-2.6.26-2-686

title		Debian GNU/Linux, kernel 2.6.26-2-686 (single-user mode)
root		(hd0,0)
kernel		/vmlinuz-2.6.26-2-686 root=/dev/mapper/storage1-root ro single
initrd		/initrd.img-2.6.26-2-686

title		Debian GNU/Linux, kernel 2.6.26-1-686
root		(hd0,0)
kernel		/vmlinuz-2.6.26-1-686 root=/dev/mapper/storage1-root ro 
initrd		/initrd.img-2.6.26-1-686

title		Debian GNU/Linux, kernel 2.6.26-1-686 (single-user mode)
root		(hd0,0)
kernel		/vmlinuz-2.6.26-1-686 root=/dev/mapper/storage1-root ro single
initrd		/initrd.img-2.6.26-1-686


title		Other operating systems:
root

title		Microsoft Windows XP Professional
root		(hd0,2)
savedefault
makeactive
chainloader	+1
/dev/mapper/md1_crypt:     LVM2 (Linux Logical Volume Manager) , UUID: cux99TjV13BvLEjV36nWCP7yL2yQczk
/dev/mapper/storage1-home: Linux rev 1.0 ext3 filesystem data, UUID=b84ba924-131b-4760-bc73-5fb123ed261b (needs journal recovery) (large files)
/dev/mapper/storage1-root: Linux rev 1.0 ext3 filesystem data, UUID=8166db7d-28d2-4ce7-a3b8-9e1bf4fb0ab (needs journal recovery) (large files)
/dev/mapper/storage1-srv:  Linux rev 1.0 ext3 filesystem data, UUID=b0946e95-acc-49ba-bcc0-34b4428ec4d0 (needs journal recovery) (large files)
/dev/mapper/storage1-tmp:  Linux rev 1.0 ext3 filesystem data, UUID=5236da61-2c2b-4c0a-be17-b41c343d6e76 (needs journal recovery) (large files)
/dev/dm-0:                 LVM2 (Linux Logical Volume Manager) , UUID: cux99TjV13BvLEjV36nWCP7yL2yQczk
/dev/dm-1:                 Linux rev 1.0 ext3 filesystem data, UUID=8166db7d-28d2-4ce7-a3b8-9e1bf4fb0ab (needs journal recovery) (large files)
/dev/dm-2:                 Linux rev 1.0 ext3 filesystem data, UUID=b84ba924-131b-4760-bc73-5fb123ed261b (needs journal recovery) (large files)
/dev/dm-3:                 Linux rev 1.0 ext3 filesystem data, UUID=b0946e95-acc-49ba-bcc0-34b4428ec4d0 (needs journal recovery) (large files)
/dev/dm-4:                 Linux rev 1.0 ext3 filesystem data, UUID=5236da61-2c2b-4c0a-be17-b41c343d6e76 (needs journal recovery) (large files)
/dev/sda:                  x86 boot sector; GRand Unified Bootloader, stage1 version 0x3, stage2 address 0x2000, stage2 segment 0x200; partition 1: ID=0xfd, starthead 1, startsector 63, 979902 sectors; partition 2: ID=0xfd, starthead 0, startsector 979965, 341798940 sectors; partition 3: ID=0x7, active, starthead 0, startsector 342778905, 47921895 sectors, code offset 0x48
/dev/sda1:                 Linux rev 1.0 ext3 filesystem data, UUID=56b48d68-594e-4ce2-915e-4349e464288d
/dev/sda2:                 LUKS encrypted file, ver 1 [aes, cbc-essiv:sha256, sha1] UUID: 3ea67be7-dd42-478f-be07-aa413a1
/dev/sda3:                 x86 boot sector, Microsoft Windows XP Bootloader NTFS (german), code offset 0x52, OEM-ID "NTFS    ", sectors/cluster 8, reserved sectors 0, Media descriptor 0xf8, heads 255, hidden sectors 342778905, dos < 4.0 BootSector (0x80)
/dev/sdb:                  x86 boot sector; GRand Unified Bootloader, stage1 version 0x3, stage2 address 0x2000, stage2 segment 0x200; partition 1: ID=0xfd, starthead 1, startsector 63, 979902 sectors; partition 2: ID=0xfd, starthead 0, startsector 979965, 341798940 sectors, code offset 0x48
/dev/sdb1:                 Linux rev 1.0 ext3 filesystem data, UUID=56b48d68-594e-4ce2-915e-4349e464288d
/dev/sdb2:                 LUKS encrypted file, ver 1 [aes, cbc-essiv:sha256, sha1] UUID: 3ea67be7-dd42-478f-be07-aa413a1

Attachment: cimg2132.png
Description: PNG image


Reply to: