shergotty
Goto Top

SuSE Linux Grub Konfiguration - ausfallsicherer

Hallo zusammen,
ich möchte ein möglichst ausfallsicheres SuSE Linux 11.1 (Version ist vorgegeben) System aufbauen. Dazu habe zwei identische Server mit jeweils 3 x 1 GB SATA-Wechselplatten gekauft. Es soll ein cold Standby System aufgebaut werden, d.h. die Festplatten sollen gespiegelt werden (Raid 1) und immer eine der 3 HDs ist im Tresor mit aktuellen Daten gelagert.

Partitionierung:
/dev/sda1 swap
/dev/sda2 / (root)
/dev/sda3 /home


Raid 1: (Beispiel SATA0 | SATA1)
/dev/md0 = /dev/sda2 | /dev/sdb2
/dev/md1 = /dev/sda3 | /dev/sdb3


Die Partitionen für Swap sind nicht gespiegelt (ist dies richtig?) und auf /dev/md0 ist reiserfs für / eingerichtet sowie auf /dev/md1 für /home.

So funktioniert alles bislang ohne Probleme, die Spiegelung habe ich auch schon gewechselt (md0 = sdc2 | sdb2, ...).
Der Grub bietet als Auswahl das Booten von md0 oder md0 failsafe an.

Ist eine der beiden gespiegelten Festplatten nicht vorhanden, wird vom einseitigen Spiegel gebootet.


Jetzt habe ich den zweiten Server dazu genutzt, um das gleiche System, aber ohne Spiegelungen aufzusetzen und anschließend die beiden Grub-Konfigurationen zusammenzufügen.
Aber hier komme ich nicht weiter, obwohl ich mich jetzt schon eine Weile damit beschäftige und einiges angelesen habe.


Was mache ich falsch bzw. wie geht es richtig?
Ich vermute, dass ich den MBR nicht richtig gesetzt habe, denn versuche ich von einer einzigen Festplatte nach Auflösen des Spiegels zu booten, dann startet das Grub-Menü nicht einmal.


Danke für jede Hilfe, Hinweis oder Link zum Nachlesen!

Content-Key: 170378

Url: https://administrator.de/contentid/170378

Printed on: April 19, 2024 at 16:04 o'clock

Member: Shergotty
Shergotty Jul 25, 2011 at 12:39:18 (UTC)
Goto Top
Hier die Konfigurationsdateien:

back-to-top/etc/grub.conf

setup --stage2=/boot/grub/stage2 --force-lba (hd0,1) (hd0,1)
quit

back-to-top/etc/grub.conf (bearbeitet nach Web- Anleitung)

timeout 10
default 0
fallback 1
kernel (hd0,1)/boot/vmlinuz root=/dev/md0
initrd (hd0,1)/boot/initrd
kernel (hd1,1)/boot/vmlinuz root=/dev/md0
initrd (hd1,1)/boot/initrd


back-to-top/boot/grub/device.map

(hd0) /dev/disk/by-id/ata-ST91000640NS_9XG07KTH
(hd1) /dev/disk/by-id/ata-ST91000640NS_9XG08YQV


back-to-top/boot/grub/menu.lst

  1. Modified by YaST2. Last modification on Mi Jul 20 16:01:22 CEST 2011
default 0
fallback 3
timeout 30
gfxmenu (hd0,1)/boot/message
##YaST - activate

###Don't change this comment - YaST2 identifier: Original name: linux###
title Standard: gespiegelte Wechselfestplatten SATA0 | SATA1
root (hd0,1)
kernel /boot/vmlinuz-2.6.27.7-9-pae root=/dev/md0 resume=/dev/disk/by-id/ata-ST91000640NS_9XG07KTH-part1 splash=silent showopts vga=0x317
initrd /boot/initrd-2.6.27.7-9-pae

###Don't change this comment - YaST2 identifier: Original name: failsafe###
title Failsafe -- openSUSE 11.1 - 2.6.27.7-9
root (hd0,1)
kernel /boot/vmlinuz-2.6.27.7-9-pae root=/dev/md0 showopts ide=nodma apm=off noresume nosmp maxcpus=0 edd=off powersaved=off nohz=off highres=off processor.max_cstate=1 x11failsafe vga=0x317
initrd /boot/initrd-2.6.27.7-9-pae

###Don't change this comment - YaST2 identifier: Original name: linux###
title SATA0 - Notfall: von der linken Wechselfestplatte starten
root (hd0,1)
kernel /boot/vmlinuz-2.6.27.7-9-pae root=/dev/sda2 resume=/dev/sda1 splash=silent showopts vga=0x317
initrd /boot/initrd-2.6.27.7-9-pae

###Don't change this comment - YaST2 identifier: Original name: linux###
title SATA1 - Notfall: von der rechten Wechselfestplatte starten
root (hd1,1)
kernel /boot/vmlinuz-2.6.27.7-9-pae root=/dev/sdb2 resume=/dev/sdb1 splash=silent showopts vga=0x317
initrd /boot/initrd-2.6.27.7-9-pae