Friday, February 26, 2016

Install Ubuntu to striped disks

Recently I needed to install Ubuntu to a striped disk set.  A striped disk set is when 2 or more hard drives are effectively merged together into a single hard drive.  So if your computer has two 1 TB hard drives, then striping them together would give you a single 2 TB hard drive.  I found a couple of guides online to do this, but they all involved starting up Ubuntu from a Live CD and performing the partitioning there, then rebooting and installing Ubuntu to the existing partition.  I wanted to just get it done during the installation.  It took several tries, but here is how I got it done from within Ubuntu setup.

I should add, this was done using Ubuntu Server 14.04 LTS x64.  The same procedure should work with Desktop, and it should work with other versions as well.  Also, before starting this both hard drives were clean, i.e. they did not have existing partitions.  First, run through setup until you get to the first screen about disk partitioning.

Step 1:  Do it manually
Move down and select "manual."

Step 2:  Create partition tables
If you move down you should see your disks (in my case, I have two 10GB hard drives).  Select each disk in turn.  You will be asked to confirm you want to create a partition table on the disk, say yes.

Step 3:  Configure RAID
Now both hard drives will show up as "free space."  Next move up to and select "configure software RAID."  You will again be prompted to commit changes to the disk, select yes.  On the next screen select "create MD device."

Select RAID0, which is stripping.  On the next screen use the space bar to check each disk that will be a part of the stripe then choose continue.  Then again choose yes to confirm your selection.

Finally select "finish" to complete the RAID setup.

Step 4:  Change partition use
Now, in addition to the multiple physical hard drives, you should see an entry for the RAID.  Select the first object under the RAID.  On the next page you need to change the "use as" to "use physical volume for LVM."  Then select "done setting up the partition."

Step 5:  Install LVM
Select up to "guided partitioning" then select "guided - use entire disk and set up LVM."  The next screen will show the two hard drives as well as the single RAID.  Select the RAID.  The confirm you want to write changes.  On the next screen verify the size of the partition and select continue.

Step 6:  Finalize and install
Select "finish partitioning and write changes to disk."  You will be prompted yet again to write changes to disk.  I promise, this is the last time.


After that the installation should continue as normal and install Ubuntu to your newly created striped disks.  Easy as pie, right?  Okay, maybe not.  But hopefully this guide helps you.

No comments:

Post a Comment