Software RAID 1
FedoraForum.org - Fedora Support Forums and Community
Results 1 to 1 of 1
  1. #1
    grantc2 Guest

    Software RAID 1

    Hi All,

    I did the following tasks to get both disks in the array bootable:

    shell> grub

    shell> device (hd0) /dev/sda

    shell> root (hd0,0)

    shell> setup (hd0)

    shell> device (hd1) /dev/sdb

    shell> root (hd1,0)

    shell> setup (hd1)

    Now, I've tested failures and both disks booted fine, but how do I go about checking to see if grub is setup correctly on each disk on other boxes in the future? Basically, is there a faster way to make sure both disks will boot without testing?

    I took notes, so here they are:

    How To Install a Linux Software RAID with RAID 1.

    First in the install process, create seperate /boot, /, and swap

    partitions of the Linux Raid type. Next use the RAID setup to partition

    the RAID disk with:



    /boot = 200MB

    swap = 1G

    / = All Availible space



    Once the system boots monitor the rebuild with:

    shell> cat /proc/mdstat



    Once that finishes you need to make sure both disks are able

    to boot by making changes to grub.



    shell> grub

    shell> device (hd0) /dev/sda

    shell> root (hd0,0)

    shell> setup (hd0)

    shell> device (hd1) /dev/sdb

    shell> root (hd1,0)

    shell> setup (hd1)



    In the event of a disk crash, shutdown the system and install

    the new disk. Use fdisk to partition the new disk just like the

    good RAID disk. To see the current setup on the good disk do:



    shell> fdisk -l



    In fdisk make sure to label the new partitions with fd (Linux raid autodetect)

    Be sure to save the changes with the w command in fdisk. Use the

    fdisk -l command to make sure the layout of the disks is the same.



    Now issue:



    shell> cat /proc/mdstat



    This shows your the current RAID configuration. Now its time to rebuild

    the raid. If the drive sdb was the one that failed. Rebuilding it will

    look similar to this:





    shell> mdadm /dev/md1 --add /dev/sdb1

    shell> mdadm /dev/md2 --add /dev/sdb2

    shell> mdadm /dev/md0 --add /dev/sdb3



    Now configure grub to make sure both disks will boot.



    shell> grub

    shell> device (hd0) /dev/sda

    shell> root (hd0,0)

    shell> setup (hd0)

    shell> device (hd1) /dev/sdb

    shell> root (hd1,0)

    shell> setup (hd1)



    Thanks to:

    http://forums.fedoraforum.org/archiv...p/t-26912.html

    http://www.linuxhomenetworking.com/linux-adv/raid.htm

    http://www.linux-sxs.org/administration/grub-cmd.html

    http://www.dell.com/downloads/global/power/1q04-hul.pdf
    Last edited by grantc2; 1st November 2005 at 11:05 PM.

Similar Threads

  1. Replies: 0
    Last Post: 9th March 2009, 04:02 PM
  2. Installing a software raid on an existing non-raid system
    By jimispier in forum Hardware & Laptops
    Replies: 8
    Last Post: 4th March 2006, 06:51 AM
  3. Replies: 4
    Last Post: 16th November 2005, 01:24 PM
  4. Fake RAID and software RAID?
    By hapaboy in forum Installation, Upgrades and Live Media
    Replies: 0
    Last Post: 4th April 2005, 02:30 AM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •