How To Set Up Software RAID1 On A Running System (Incl. GRUB Configuration) (Fedora 8) - Page 3
7 Preparing /dev/sdaIf all goes well, you should now find /dev/md0 and /dev/md2 in the output of df -h [root@server1 ~]# df -h The output of cat /proc/mdstat should be as follows: [root@server1 ~]# cat /proc/mdstat Now we must change the partition types of our three partitions on /dev/sda to Linux raid autodetect as well: fdisk /dev/sda [root@server1 ~]# fdisk /dev/sda Command (m for help): <-- t Command (m for help): <-- t Command (m for help): <-- t Command (m for help): <-- w Calling ioctl() to re-read partition table. Now we can add /dev/sda1, /dev/sda2, and /dev/sda3 to the respective RAID arrays: mdadm --add /dev/md0 /dev/sda1 Now take a look at cat /proc/mdstat ... and you should see that the RAID arrays are being synchronized: [root@server1 ~]# cat /proc/mdstat (You can run watch cat /proc/mdstat to get an ongoing output of the process. To leave watch, press CTRL+C.) Wait until the synchronization has finished (the output should then look like this: [root@server1 ~]# cat /proc/mdstat ). Then adjust /etc/mdadm.conf to the new situation: mdadm --examine --scan > /etc/mdadm.conf /etc/mdadm.conf should now look something like this: cat /etc/mdadm.conf
8 Preparing GRUB (Part 2)We are almost done now. Now we must modify /boot/grub/menu.lst again. Right now it is configured to boot from /dev/sdb (hd1,0). Of course, we still want the system to be able to boot in case /dev/sdb fails. Therefore we copy the first kernel stanza (which contains hd1), paste it below and replace hd1 with hd0. Furthermore we comment out all other kernel stanzas so that it looks as follows: vi /boot/grub/menu.lst
Afterwards, update your ramdisk: mv /boot/initrd-`uname -r`.img /boot/initrd-`uname -r`.img_orig2 ... and reboot the system: reboot It should boot without problems. That's it - you've successfully set up software RAID1 on your running Fedora 8 system!
|
Join the discussion.
www.seamlessenterprise.com
IP Convergence
Integrate your wireless and wireline networks.
Learn how from the experts at Sprint.
www.seamlessenterprise.com
Wireless & Wireline Integration
Thoughts, strategies and solutions: join the discussion
www.seamlessenterprise.com
Unified Communications 2009
Join the Discussion. Now.
www.seamlessenterprise.com
Red Hat Virtual Experience - a free virtual event. Dec. 9th





print: 
Recent comments
10 hours 15 min ago
16 hours 3 min ago
17 hours 55 min ago
19 hours 40 min ago
23 hours 30 min ago
1 day 5 hours ago
1 day 5 hours ago
1 day 9 hours ago
1 day 15 hours ago
1 day 20 hours ago