Back

How to install Ubuntu with software RAID-1

RAID "Redundant Array of Independent Disks" is a method of using multiple disks for different combinations to increase the reliability of data storage and/or improve performance of read/write operations, depending on the RAID level.

There are two types of RAID implementation:

1. Software

A special OS driver looks after physical media, and the OS works with a virtual combined disk space.

2. Hardware

A special controller looks after the physical media, the OS works with a virtual combined disk space.

In this case, we will set up software RAID of the first level, which will give the system disk resource two positive features:

1. Fault tolerance. RAID-1 is a mirrored disk array, and the disks are complete copies of each other. Should one of the disks fail, another one will perform its functions.

2. Increased productivity of reading discs as this operation can be performed simultaneously on two discs.

The following disk layout will be used:

Software RAID -1
/boot - 512MB
swap - 4GB
/  - all rest

1. Start the installation of Ubuntu, choose manual disk partitioning (). Clear the disks of sections, if any:

Disk partitioning interface in a system setup

2. Create an (sda) partitioning of 512MB on the first disk:

Disk partition size configuration interface in a terminal session

3. Choose the partitioning type – RAID:

Terminal interface with disk partition options, highlighting RAID

4. Complete by clicking "Done setting up the partition":

Partition editor for SCSI disk on RAID configuration

For the /boot partitioning (512mb), select Bootable flag: on

5. Here is what we get:

disk partition setup with RAID configuration highlighted

6. Then, create a 4GB RAID partitioning, and leave the rest of the space for the last partitioning.

7. Repeat the layout for the second disk (sdb). Here is what we get in the end:

Empty cloud servers dashboard with create VM option

8. After this operation, select software RAID. Indicate which partitionings are to be mirrored. Click Yes:

system configuration prompt for writing changes and configuring RAID

9. Next, we need to create virtual md devices that are, basically, RAID arrays:

Software RAID configuration menu with 'Create MD device' option

10. Select the level of our RAID -1:

Terminal selection screen for software RAID device type

11. Mark the first group of devices that will be mirrored. Do the same for sda2- sdb2, sda3-sdb3. Click Finish:

Disk partitioning interface for RAID1 array setup

12. We get 3 RAID md devices:

disk partitioning and RAID configuration menu in system setup

13. Now you must configure them and specify the file system, as well as the mount point for each of them. Finish by clicking "Done setting up the partition":

Terminal screen for RAID device partition editing

14. Here is the layout we get:

graphical user interface for configuring network settings

15. Complete the layout and continue installing the OS:

Screen displaying RAID disk partitioning options

Share

Suggested Articles

  • Linux administration

    How to setup FTP server on Ubuntu 16.04

  • Linux administration

    Using Monit process monitoring on Ubuntu/Debian