• Willkommen im Linux Club - dem deutschsprachigen Supportforum für GNU/Linux. Registriere dich kostenlos, um alle Inhalte zu sehen und Fragen zu stellen.

Raid1 mit Lvm bootet nicht mehr

vanstrand

Newbie
Hallo Forum,
ich betreue ehrenamtlich bei einer gemeinnützigen Organisation einen Linuxserver mit opensuse 11.1. Leider hat ein Mitarbeiter gestern 2 mal den Server im laufenden betrieb ausgeschaltet :schockiert:

Ergebnis nichts ging mehr. Es ist ein Raid1 installiert und ein LVM. Das Raid läuft soweit wieder und auf das LVM in md1 habe ich über eine LiveCd auch zugriff.

Wenn ich allerdings den Server boote bleibt er nach der Aktivierung der Volumegruppe vg1 hängen mit der Fehlermeldung:

blogd no message logging because /var filessystem in no accessible

Hat jemand eine Idee dazu?

Hier mal ein paar allgemeine Infos:

/dev/md0 /boot ext2 acl,user_xattr 1 2
/dev/vg1/home /home ext3 acl,user_xattr 1 2
/dev/vg1/local /local ext3 acl,user_xattr 1 2
/dev/vg1/opt /opt ext3 acl,user_xattr 1 2
/dev/vg1/root / ext3 acl,user_xattr 1 1
/dev/vg1/srv /srv ext3 acl,user_xattr 1 2
/dev/vg1/tmp /tmp ext3 acl,user_xattr 1 2
/dev/vg1/usr /usr ext3 acl,user_xattr 1 2
/dev/vg1/var /var ext3 acl,user_xattr 1 2
proc /proc proc defaults 0 0
sysfs /sys sysfs noauto 0 0
debugfs /sys/kernel/debug debugfs noauto 0 0
usbfs /proc/bus/usb usbfs auto,user,devmode=0777 0 0
/dev/fd0 /media/floppy auto noauto,user,sync 0 0
/dev/sr0 /media/cdrom udf,iso9660 auto,exec,user 0 0


linux:/mnt/etc # lvdisplay
--- Logical volume ---
LV Name /dev/vg1/home
VG Name vg1
LV UUID RXOyqo-qKKp-TvJ1-AJKS-ShyN-KvE0-9LiBul
LV Write Access read/write
LV Status available
# open 0
LV Size 150.00 GB
Current LE 38400
Segments 1
Allocation inherit
Read ahead sectors auto
- currently set to 256
Block device 253:0

--- Logical volume ---
LV Name /dev/vg1/local
VG Name vg1
LV UUID uwlRlI-oMLr-r6Uc-MZh9-mOvQ-AemS-xYXQZJ
LV Write Access read/write
LV Status available
# open 0
LV Size 4.75 GB
Current LE 1216
Segments 1
Allocation inherit
Read ahead sectors auto
- currently set to 256
Block device 253:1

--- Logical volume ---
LV Name /dev/vg1/opt
VG Name vg1
LV UUID 3BzKPk-gZwl-YEfR-gYTd-T44r-xAco-VONAoD
LV Write Access read/write
LV Status available
# open 0
LV Size 5.00 GB
Current LE 1280
Segments 1
Allocation inherit
Read ahead sectors auto
- currently set to 256
Block device 253:2

--- Logical volume ---
LV Name /dev/vg1/root
VG Name vg1
LV UUID pfsyCL-RDvJ-ZeyQ-NxVf-7AB1-x8eb-kMYEZ4
LV Write Access read/write
LV Status available
# open 1
LV Size 15.00 GB
Current LE 3840
Segments 1
Allocation inherit
Read ahead sectors auto
- currently set to 256
Block device 253:3

--- Logical volume ---
LV Name /dev/vg1/srv
VG Name vg1
LV UUID djK9Hk-dTp1-fra6-5EuM-TJJt-Y4wQ-hBQi0w
LV Write Access read/write
LV Status available
# open 0
LV Size 8.45 GB
Current LE 2162
Segments 1
Allocation inherit
Read ahead sectors auto
- currently set to 256
Block device 253:4

--- Logical volume ---
LV Name /dev/vg1/swap
VG Name vg1
LV UUID XTU94U-TXv1-82Aq-mfOc-zDvT-9Jsv-gYtpn3
LV Write Access read/write
LV Status available
# open 0
LV Size 4.00 GB
Current LE 1024
Segments 1
Allocation inherit
Read ahead sectors auto
- currently set to 256
Block device 253:5

--- Logical volume ---
LV Name /dev/vg1/tmp
VG Name vg1
LV UUID BZNQQY-zdCY-3pdZ-mw4d-KimD-GYFc-A0ADSg
LV Write Access read/write
LV Status available
# open 0
LV Size 10.00 GB
Current LE 2560
Segments 2
Allocation inherit
Read ahead sectors auto
- currently set to 256
Block device 253:6

--- Logical volume ---
LV Name /dev/vg1/usr
VG Name vg1
LV UUID HBLCYN-Mg0g-6PY4-U5d6-qUuQ-qRUy-nKfGKI
LV Write Access read/write
LV Status available
# open 0
LV Size 15.00 GB
Current LE 3840
Segments 1
Allocation inherit
Read ahead sectors auto
- currently set to 256
Block device 253:7

--- Logical volume ---
LV Name /dev/vg1/var
VG Name vg1
LV UUID Jbuecf-K3Kb-X3gn-NtwT-nXye-x6Bc-13inZc
LV Write Access read/write
LV Status available
# open 0
LV Size 10.00 GB
Current LE 2560
Segments 1
Allocation inherit
Read ahead sectors auto
- currently set to 256
Block device 253:8

linux:/mnt/etc # mdadm --detail /dev/md0
/dev/md0:
Version : 0.90
Creation Time : Thu Jul 16 17:16:49 2009
Raid Level : raid1
Array Size : 104320 (101.89 MiB 106.82 MB)
Used Dev Size : 104320 (101.89 MiB 106.82 MB)
Raid Devices : 2
Total Devices : 2
Preferred Minor : 0
Persistence : Superblock is persistent

Update Time : Thu Jul 16 17:16:50 2009
State : clean
Active Devices : 2
Working Devices : 2
Failed Devices : 0
Spare Devices : 0

UUID : 88057f41:8c539fc0:a74c32ba:c27fc7b1 (local to host linux)
Events : 0.4

Number Major Minor RaidDevice State
0 8 1 0 active sync /dev/sda1
1 8 17 1 active sync /dev/sdb1


linux:/mnt/etc # mdadm --detail /dev/md127
/dev/md127:
Version : 0.90
Creation Time : Thu Jul 16 11:50:36 2009
Raid Level : raid1
Array Size : 244091520 (232.78 GiB 249.95 GB)
Used Dev Size : 244091520 (232.78 GiB 249.95 GB)
Raid Devices : 2
Total Devices : 2
Preferred Minor : 127
Persistence : Superblock is persistent

Update Time : Thu Jul 16 19:55:55 2009
State : clean
Active Devices : 2
Working Devices : 2
Failed Devices : 0
Spare Devices : 0

UUID : 30c31958:b056c88a:a74c32ba:c27fc7b1 (local to host linux)
Events : 0.288

Number Major Minor RaidDevice State
0 8 2 0 active sync /dev/sda2
1 8 18 1 active sync /dev/sdb2


Grüße
Patrik
 
A

Anonymous

Gast
Die Fehlermeldung die du uns angibst kann meiner Meinung nach die die erste sein, da sie aus dem "syslog" Script kommt, die Filesysteme werden aber schon vorher im "boot.localfs" Script eingehängt. Dort müsste irgend eine Fehlermeldung zu finden sein-
Entweder ist das Verzeichnis /var auf der Rootparition defekt oder verschwunden oder das Filesystem hat größere Probleme und kann entweder gar nicht oder nur readonly eingehängt werden.

Starte das System im Singelusermodus in dem du im Bootloader die Option "1" an das Ende der Kernelzeile bei den Bootoptionen schreibst. Dort hin sollte es booten, da Syslog in diesem Runlevel normalerweise nicht gestartet wird.
Von dort aus kannst du jetzt mal die Ausgabe von dmesg anschauen. Auch mal schauen was gemountet ist. Eventuell muss über /var ein forcierter Filesystemcheck gestartet werden. Es müssten alle deine lokalen Filesystem dort "rw" gemountet sein. Wenn nicht dann am besten mal alle Filesysteme beim nächsten Booten forciert checken lassen.
Dazu einfach eine leere Datei "/forcefsck" anlegen und rebooten. Treten dabei größere Fehler auf die Linux nicht ohne Bestätigung selbst reparieren will, dann bleibt der Boot beim Filesystemcheck hängen und du musst per Hand einen Filesystemcheck starten.

Code:
/sbin/fsck -f -y FILESYSTEM
wahrscheinlich ist das FILESYSTEM dann bei dir "/" oder "/var"
Siehe auch hier

robi
 
OP
V

vanstrand

Newbie
Hallo Robi,

ich habe mir die Bootmeldungen gerade noch mal angeschaut, die Fehlermelung /var Filesystem ist in der Tat nicht die erste. Folgende Fehlermeldungen wurden angezeigt "Invalid Argument fsck.ext2....... /dev/md0" Die größe der Partition war kleiner als angegeben, das habe ich behoben. Beim Reboot hing er aber wieder mit der gleichen Meldung an der gleichen stelle. Der zweite Fehler war, dass in der fstab noch /dev/md0 stand anstelle von md126.

Jetzt läuft die Maschine wieder :D

Danke nochmal für deine Hilfe und Grüße

Patrik
 
Oben