Tuesday, January 9, 2007

How I Migrate Fedora Core 4 From No Raid To Raid

Recently I migrate a Fedora Core 4 to raid.
I used two Gentoo howtos:
http://gentoo-wiki.com/HOWTO_Migrate_To_RAID
http://gentoo-wiki.com/HOWTO_Install_on_Software_RAID

The only one problem in fedora was the loading of raid1 module. Because it is not built in the kernel, and i was unable to boot the system with raid support. I expected to be built in the kernel or in the initrd, but it wasn't.I use mkinitrd to add the module in the initrd image. Here is the command for generating initrd with raid support.

mkinitrd -v --preload=raid1 --preload=raid5 /boot/initrd-2.6.17-1.2139_FC4_RAID.img 2.6.17-1.2139_FC4
after that you need to change the initrd in your grub.conf, and to look like this

boot=/dev/hd0
default=0
timeout=5
splashimage=(md0,0)/boot/grub/splash.xpm.gz
hiddenmenu

title Fedora Core (2.6.17-1.2139_FC4)
root (hd0,0)
kernel /boot/vmlinuz-2.6.17-1.2139_FC4 ro root=/dev/md0
initrd /boot/initrd-2.6.17-1.2139_FC4_RAID.img
and yet you can boot in your Fedora with raid.

No comments: