CentOS Installation with Software RAID

< Back to the Title Topic

CentOS Installation with Software RAID

Software RAID configuration on CentOS is performed during the installation of the operating system. Here we will perform RAID1 with 2 HDDs, named sda and sdb respectively.

Step 1: Boot into CentOS installation disc.

Step 2: Select “Install system with basic video driver”.

Step 3: Skip media test if prompted.

Step 4: Click “Next” to continue.

Step 5: Select your preferred system language, then click “Next” to continue.

Step 6: Select your preferred keyboard layout, then click “Next” to continue.

Step 7: Select “Basic Storage Device”, then click “Next” to continue.

Step 8: Set your server’s hostname (default: localhost.localdomain), then click “Next” to continue.

Step 9: Select a time zone for your server, then click “Next” to continue.

Step 10: Set a password for your server’s root account, then click “Next” to continue.

Step 11: Select “Create Custom Layout”, then click “Next” to continue.

Step 12: Delete existing data and partitions in HDD (if HDD is not blank).

Step 13: Create RAID Partition for sda

  1. Highlight sda and click “Create”, a window will pop up.
  2. In the “Create Storage” window, select “Create Software RAID” and choose “RAID Partition”, then click “Create”.
  3. In “Add Partition” window, configure the following as such:
  • File System Type: Software RAID
  • Allowable Drives: sda (Tick the checkbox)
  • Size: Any preferred size (eg. 50000MB)
  • Additional Size Options: Fixed Size
  • Click “OK”

Step 14: Create RAID Partition for sdb

  1. Highlight sdb and click “Create”, a window will pop up.
  2. In the “Create Storage” window, select “Create Software RAID” and choose “RAID Partition”, then click “Create”.
  3. In “Add Partition” window, configure the following as such:
  • File System Type: Software RAID
  • Allowable Drives: sdb (Tick the checkbox)
  • Size: Same size set for sda
  • Additional Size Options: Fixed Size
  • Click “OK”

Step 15: Highlight “Hard Drives”, then click “Create”. Then under “Create Software RAID”, select “RAID Device” and click “Create”.

Step 16: Configure the following settings as such:

  • Mount Point: /
  • ile System Type: ext4
  • AID Device: md0
  • AID Level: RAID1
  • AID Members: Tick both sda & sdb

Step 17: Click “Next”, then click “Yes” when prompted to continue with requested partitioning scheme. (Ignore swap partition warning)

Step 18: Click “Write changes to disk” when prompted.

Step 19: Click “Next” to start the installation. Wait for the installation to finish.

Step 20: Click “Reboot” when the installation finishes.

Previous How to send mail using ASP?
Next Install LEMP on CentOS 7