RAID 1 array not found in server installer

Problem solved, all it took was my Portuguese ingenuity or "Desenrascanço". The uncanny ability passed down through the generations to solve any problem with merely a penny and a string. ( I didn't solve the problem with a penny and a string but you get the point ).

So here is the solution:

  1. Connect one of the disks to the motherboard, let's call source from now on.
  2. Install Ubuntu Server on source disk.
  3. Run sudo apt-get update
  4. Run sudo apt-get upgrade
  5. Install dmraid, by running sudo apt-get install dmraid
  6. Put the modules dm-mod and dm-mirror inside the /etc/modules file, just sudo nano /etc/modules
  7. Connect the source disk to the PCI card on the first SATA port, connect the other disk on any other port
  8. Create the RAID 1 array. And boot the computer using the RAID array, it's going to boot, because one of the disks is bootable.
  9. Confirm that the raid is running by issuing: sudo dmraid -ay, something on the lines of this should appear: "*sil_bhbgdjddagcc: 0 976771072 mirror core 2 131072 nosync 2 /dev/sdd 0 /dev/sde 0 1 handle_errors.*"
  10. Disconnect the second disk ( the one that is not the source disk ).
  11. Boot from the array again, and make a change to any file. Then shutdown.
  12. Connect the disconnected drive and rebuild the array.
  13. Wait a long time...

...and if everything went well you should now have a running RAID 1 array on your server.

How did I check if the RAID 1 array was working? Just boot from each drive separately connected to the motherboard, if it boot's then it means that the rebuild was done correctly.

After checking that the rebuild was done correctly you have to rebuild again. After finishing with this boot's and rebuilds, you just have to change one file on one disk while using the RAID 1 array, then shutdown, disconnect the disks from the array.

Then boot from them separately and check for the change you made to that file is on both disks, if the changes are there, it means the RAID 1 array is working. Then it's time for another rebuild, and the system is ready to use.

Why do I have to rebuild the array every time I boot from one or another, because every time the server boots there are changes on the disks, that's why.

This solution doesn't work with another types of RAID arrays, RAID 5 should be a no go, because the data is spread across the disks, RAID 10, shouldn't work either because the data is stripped and mirrored, RAID 0 is not a problem because it's detected by the install.


Im also portuguese and I have a much better solution:

  1. Install Ubuntu Server 11.04 which installs just fine on RAID 1 arrays
  2. Do a do-release-upgrade after installation is complete.

A few minutes later your system will be running Ubuntu 11.10