I have spent the last 4 days or so trying to setup Ubuntu server 12.04.2 with RAID1. I have looked at several different links and tried different configurations and workarounds. So far, I have not come out with a successful installation that passes the final test -- pulling out one drive, booting and checking the contents of my home folder, and doing the same for the other drive.
So far, the closest I have come to succeeding is by setting up partitions this way:
/dev/sda1: allocated for RAID
/dev/sda2: swap area
/dev/sdb1: allocated for RAID
/dev/sdb2: swap area (or left unassigned -- which somehow gets allocated as a swap area later on anyway)
/dev/md0: (paired sda1 and sdb1) RAID1 device, ext4 filesystem, mount point /
This installs successfully, I boot the system, then create a file called "test" on my home folder.
I then shut down, disconnect drive b, power up, and check my home folder. "test" is there...so far so good. Then I create a second file, "test2."
I shut down, reconnect drive b, power up, and check the folder. Both files are there.
I shut down, disconnect drive a, power up and check the folder. Both files are ABSENT from drive b.
If anyone has any ideas on how I can successfully set this up and get my RAID1 working, I will be very grateful and happy.
Oh yes...I've tried setups with 3 partitions instead of 2, with EFI Boot and/or biosgrub, with no success (Either it would not boot, or I encounter the same situation with the test results above)
Thanks.
/etc/mdadm/mdadm.conf
. – Danatela Jul 12 '13 at 04:29