It took me quite some time to find a solution to this and none of the solutions I found were all of what I was looking for. I was left to create this solution from a collection of search results.

Scenario

I had completed a full installation of Ubuntu Lucid 10.04 on my home computer, setting up the RAID and LVM for the OS and primary Home partitions on a pair of 640GB Seagate 7200.10 Hard drives.

I then installed a pair of 1TB Seagate 7200.12 Hard drives for my large assortment of files, photos and and music. The RAID and LVM setup for these drives was completed after the installation of Ubuntu Lucid.

I used the Drive Manager GUI Tool included with Lucid to create the RAID Arrays and manage the volumes.

ubuntu-desktop-menu-disk-manager

create-raid-menu

Home Computer running 4 Hard Drives

  • 2x640GB for my OS and primary home partitions etc…
  • 2x1TB for my large assortment of files, photos and and music etc…

When I rebooted the computer I needed to go in to the computer file manager window and select each of the RAID Arrays to assemble and mount them. I wanted them to be mounted on boot just like the OS Array and Volumes.

filesystem-click-raid-to-mount

Process To Get RAID Arrays To Create Using Disk Manager to Mount on Boot

    1. Open up a Terminal
    2. Get Root
      sudo -s
    3. Get RAID Array Info
      mdadm --detail --scan
    4. Copy the ARRAY Information, it should look similar to this:
      ARRAY /dev/md0 level=raid0 num-devices=2 metadata=00.90 UUID=11a21c3d:c8226ca5:cd722499:0ead4794
      ARRAY /dev/md1 level=raid0 num-devices=2 metadata=00.90 UUID=4d1327f0:f08c44e5:c3b18ae7:ac9b0748
      ARRAY /dev/md2 level=raid0 num-devices=2 metadata=01.02 name=:data UUID=21075c1a:147b4a9a:ddf8fc20:b9ac797f
      ARRAY /dev/md6 level=raid0 num-devices=2 metadata=01.02 name=:stripe UUID=5b0a1148:f195d5e9:cef55c69:e340ee91
      ARRAY /dev/md4 level=raid0 num-devices=2 metadata=01.02 name=:archive UUID=eda55519:3d7fbc34:6c3c75da:56a5518c
      ARRAY /dev/md3 level=raid0 num-devices=2 metadata=01.02 name=:pictures UUID=0d1f1250:3bba0639:e9647533:0e578bcd
      ARRAY /dev/md5 level=raid0 num-devices=2 metadata=01.02 name=:virtual UUID=c6c5169b:3e84d588:f91b566f:aa9c3ed4

      This shows all available RAID ARRAYS in the system that are Mounted, including the existing ones from when I did the installation. Make sure to copy only the changes you need!

    5. Open up the mdadm.conf file
      nano /etc/mdadm/mdadm.conf
    6. Paste the Additional RAID ARRAY lines under the existing ARRAY lines
      # definitions of existing MD arrays
      ARRAY /dev/md0 level=raid0 num-devices=2 name=:swap UUID=11a21c3d:c8226ca5:cd722499:0ead4794
      ARRAY /dev/md1 level=raid0 num-devices=2 name=:ubuntu UUID=4d1327f0:f08c44e5:c3b18ae7:ac9b0748
      ARRAY /dev/md2 level=raid0 num-devices=2 name=:data UUID=21075c1a:147b4a9a:ddf8fc20:b9ac797f
      ARRAY /dev/md3 level=raid0 num-devices=2 name=:pictures UUID=0d1f1250:3bba0639:e9647533:0e578bcd
      ARRAY /dev/md4 level=raid0 num-devices=2 name=:archive UUID=eda55519:3d7fbc34:6c3c75da:56a5518c
      ARRAY /dev/md5 level=raid0 num-devices=2 name=:virtual UUID=c6c5169b:3e84d588:f91b566f:aa9c3ed4
      ARRAY /dev/md6 level=raid0 num-devices=2 name=:stripe UUID=5b0a1148:f195d5e9:cef55c69:e340ee91

      Add your ARRAY information to the bottom of the list under “# definitions of existing MD arrays”.

    7. Save
      press "CTRL + x" to start to exit
      press "y" for yes you want to save
      press "enter" to tell nano to write to the file
      nano will now exit.
    8. Reboot
      reboot

If you are using any additional Drive tools such as LVM you can some access these volumes and use fstab to mount them on boot.

Alternate Quick Solution

As provided by Chris Irwin and Sequentious over at www.reddit.com, here is a fast alternate solution while in the command line:

sudo mdadm --detail --scan | sudo tee -a /etc/mdadm/mdadm.conf

Thank you for the extra solution!