Wednesday, June 30, 2010

Holcomb Shower Doors, Seattle, Wa

[HowTo] Ubuntu mirror

Hello everyone, today I am back here to post a guide to install Ubuntu (version 10.04, the last exit at the time of this post) mirrored (RAID 1). Indeed, using the utility of the raid controller on the motherboard (an intel, but can not remember the model) during installation an error occurs in creating the file system that prevents the continuation of operations.

Let's practice:

  1. we start the pc with the live version of Ubuntu and open GParted (System-> Administration-> GParted).
    With this program we create two partitions (one on each disk) are exactly the same (regardless of format)
  2. Now we need to install Utility to manage the array, we open a shell and digiitiamo " sudo apt-get update" and then " sudo apt-get install mdadm .
    During installation you will be asked to configure the mail server, we will select "local only " and finish the quick setup wizard.
  3. Now let's create the array with this command:





    sudo mdadm - create / dev/md1 - verbose - level = 1 - raid-devices = 2 / dev/sda1 / dev / sdb1
    Practically this line says to create the array and mount it as / dev/md1, level 1 (level = 1) because we want a raid 1, consists of two devices and, finally, the two partitions that we must go to make up the raid.
    If you were to ask further confirmation, answer yes.
  4. then proceed to format the new device you just created with " mkfs.ext3 / dev/md1 . You can use the file system of your choice, not necessarily the ext3.
  5. Finally, we can install our beloved operating system, making sure to manually specify the partitions to use. If we are not very experienced, we create a partition from one device md1 and mount it on " / " and when we say that we do not have the swap, we do not care ... Now
  6. NOT restart because the new installation of Ubuntu does not have the utility raid (mdadm) that are going to install with the following commands:
    sudo mkdir / ubuntu
    sudo mount / dev/md1 / ubuntu
    sudo mount - bind / dev / / ubuntu / dev /
    sudo mount - bind / sys / / ubuntu / sys /
    sudo mount
    - bind / proc / / ubuntu / proc /
    sudo chroot / ubuntu
    This will imparitre as commands to the new installation of Ubuntu (the one made in paragraph 4), then we're going to repeat step 2.
  7. Finally install grub on both disks by typing:
    sudo grub-install / dev / sda
    sudo grub-install / dev / sdb
At this point we can restart our system and enjoy linux mirror.

Links: