Results 1 to 4 of 4

Thread: Switch from single disk to 2-disk RAID1

  1. #1
    Join Date
    Dec 2006
    Location
    Richmond, VA
    Beans
    83
    Distro
    Ubuntu 9.10 Karmic Koala

    Switch from single disk to 2-disk RAID1

    My file server is currently running 12.04 (64-bit) on an Asus Crosshair II Formula. Currently the 100GB 7200k SATA system drive has three partitions:


    1. /boot
    2. swap
    3. / (on an LVM)


    I've just received the second disk that I ordered, so that I can finally get some disk redundancy. What I'm unclear on is the best way to do this. I'd prefer to use Linux RAID over the motherboard's RAID.

    I'm not sure if I can RAID-1 the entire disks, and partition the RAID device, because I don't know if the BIOS and the Grub bootloader in the MBR can detect and boot from the /boot partition on top of Linux MD RAID.

    I'm not sure if alternatively I can create a RAID-1 array of each partition, mirrored across both disks, because again I don't know if the BIOS and Grub bootloader can ignore the MD superblock and continue reading the /boot partition.

  2. #2
    Join Date
    Mar 2008
    Location
    My own private dimension
    Beans
    12
    Distro
    Kubuntu 7.10 Gutsy Gibbon

    Re: Switch from single disk to 2-disk RAID1

    While it's been a while since I've actually implemented this, I think I can answer some of your concerns.

    Assuming you installed grub to the MBR/disk (not to the partition), then BIOS can and will boot from it, period. Grub should also be smart enough to boot from an md-raid partition.

    Also, I believe md-raid is done on a per-partition basis, so you'll need to partition your second disk identically to your existing.

    Perhaps this article on Arch wiki might be of help? Sorry I'm not of more help, like I said, I haven't dealt with RAID in a while.

  3. #3
    Join Date
    Dec 2006
    Location
    Richmond, VA
    Beans
    83
    Distro
    Ubuntu 9.10 Karmic Koala

    Re: Switch from single disk to 2-disk RAID1

    Thanks! Grub is, indeed, installed to the MBR, and from what you're saying, it looks like it can handle md component partitions just fine. I'll definitely use that guide, modifying a bit, since /boot is on a separate partition, and / is running on LVM.
    Last edited by rickatnight11; July 11th, 2013 at 03:49 AM.

  4. #4
    Join Date
    Dec 2006
    Location
    Richmond, VA
    Beans
    83
    Distro
    Ubuntu 9.10 Karmic Koala

    Re: Switch from single disk to 2-disk RAID1

    I just tested this in a VM successfully. (As it turns out, I was wrong about the swap partition. The second partition is only a primary partition, and there's a logical partition, which contains the LVM with both swap and root as LVs.) I ended up simplifying things by only creating two primary partitions, for /boot and the swap/root LVM, and making them both RAID1 arrays. Grub boots the system just fine. Thanks for the help!

Bookmarks

Posting Permissions

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