Bienvenido! - Willkommen! - Welcome!

Bitácora Técnica de Tux&Cía., Santa Cruz de la Sierra, BO
Bitácora Central: Tux&Cía.
Bitácora de Información Avanzada: Tux&Cía.-Información
May the source be with you!

Tuesday, September 14, 2010

grub probs with SW RAID

software raid 10 : my experience
Ressources


Manage a Linux RAID 10 Storage Server

Linux RAID and Hardware


I've seen a lot of confusion about Linux RAID, so let's clear that up. Linux software RAID has nothing to do with hardware RAID controllers. You don't need an add-on controller, and you don't need the onboard controllers that come on most motherboards. In fact, the lower-end PCI controllers and virtually all the onboard controllers are not true hardware controllers at all, but software-assisted, or fake RAID. There is no advantage to using these, and many disadvantages. If you have these, make sure they are disabled.
Ordinary PC motherboards support up to six SATA drives, and PCI SATA controllers provide an easy way to add more. Don't forget to scale up your power and cooling as you add drives.
If you're using PATA disks, only use one per IDE controller. If you have both a master/slave on a single IDE controller, performance will suffer and any failure risks bringing down both the controller and the second disk.

Debian: transfered Grub can’t find /dev/md0

It came out what is really the problem here: in /etc/mdadm/mdadm.conf there is the old set of hdds (through the UUIDs). Just replace:
ARRAY /dev/md0 UUID=x
with:
ARRAY /dev/md0 devices=/dev/sda1,/dev/sdb1
or whatever is your configuration, rebuild the initramfs with:
update-initramfs -k `uname -r` -c -t
do:
update-grub and grub-install "(md0)"
that’s it!
Die Grub-Install von LiveCD läuft doch auch über chroot.
sehen: 
/etc/fstab /etc/mtab /boot/grub/menu.lst
/etc/mdadm/mdadm.conf 
sowie

sudo blkid
sudo fdisk -l
mount

Versuche mal die UUID von md0 zu ändern

Versuche mal root direkt so zu übergeben:
root=/dev/md0

=====

Prompt mit blinkendem Cursor bringt:
ALERT! /dev/md0 does not exist. Dropping to a shell!
(initramfs) _
und /dev/md0 existiert nicht in dieser Konsole...
Solution:Du musst nochmal mit nem LiveSystem in ne chroot-Umgebung und den Schritt aus deiner Anleitung wiederholen, wo mdadm installiert wird und wo das initramfs upgedatet wird.
Also, in der Anleitung mit der ich das RAID aufgebaut hab, hab ich nix gefunden über initramfs, aber ich hab bischen hier im Forum gestöbert und mit dem Befehl
update-initramfs -u -k all
hab ich jetzt wohl mdadm integriert und dann diese initrd-Datei in meine boot-Partition kopiert, da ich nicht als chroot drin war. Also scheint zu gehen, der Rechner bootet und mount zeigt dass /dev/md0 als / eingehängt ist, das sieht doch schon mal gut aus.
Das initramfs aktualisieren:
sudo mount /dev/md0 /mnt
sudo mount -o bind /dev /mnt/dev
sudo mount -t proc /proc /mnt/proc
sudo chroot /mnt /bin/bash
all
sudo update-initramfs -u - k
Ok, das hat schon mal nicht funktioniert, das wäre eine Sache, die man am Wiki erweitern müsste - bei der "normalen" Ubuntu-LiveCD ist madam nicht von Anfang an geladen (bei der alternate LiveCD wohl schon...?)
Lösung:
sudo apt-get install mdadm 
=====



No comments: