Skip to content
Bots!
Bots!
  • About
    • Myself
    • আমার দোয়া
  • Bookmarks
    • Bookmarks
    • My OCI Bookmarks
    • Useful Proxmox Commands & Links
    • Learning Nano
    • Useful Sites
    • Useful Virtualbox Command
    • Useful MySQL Command
    • Useful Linux Command
    • BTT-CAS
  • Resources
    • Webinar on Cloud Adoption for Project Managers
  • Photos
  • Videos
  • Downloads
Bots!

CentOS Software Raid-1

Rumi, May 26, 2013May 26, 2013
Below are the steps on how to do the software RAID continuing from the hard disk partitioning section:
 
-1) Upon entering the partitioning review, it should looks like this:
 

 
2) Next is to delete every partition and left with only free space for both hard disk. It should looks like this:

 
3) So click the New button (or the F2 button) to start creating new partition. Straight away change the File System Type into Software RAID. In the Allowable Drives, please select SDA first, somehow CentOS won’t work if we select both hard disk at the same time. Put 100 for the Size as we want to create the space for boot first. Click the Ok button after finished:

 
4) Just do exactly the same like Step 3, but this time choose the SDB instead. Press Ok when done:

 
5) Next is the swap partition for the RAID. Click the New button and choose the File System Type to Software RAID. Choose SDA first for the Allowable Drives. Then please enter the Size for your swap. Remember, the swap size is always double from your total psychical RAM. Since mine was running under 512MB, then I’ll put 1024MB as my swap size. Click the Ok button to proceed:

 
6) Do follow Step 5 but select SDB for the Allowable Drives. Click Ok to continue:

 
7) Next is to create the partition for root. Select the Software RAID from the File System Type. Then select SDA first for the Allowable Drives. But this time, choose the Fill All Available Space option and click the Ok button:

 
8 ) Just follow the same step just like Step 7, but this time choose the SDB instead. Click the Ok button to complete the partitioning:

 
9) Upon finishing the last partitioning, the hard disk layout should looks like below. Click on the RAID button to proceed:

 
10) Now we will start creating the RAID device. Type /boot in the Mount Point. Select RAID1 for the RAID Level. Inside the RAID Members, please make sure you selected the right partition for the boot. From the list, just select the SDA1 and SDB1. Click Ok to create the boot partition:

 
11) Next is to create the RAID device for swap. Select the File System Type to Swap. Then the RAID Level is set to RAID1. Don’t forget to select the right RAID Members for the swap, which are SDA2 and SBD2. Click Ok button to save:

 
12) After that, now to set up the RAID device for root. Type / inside the Mount Point to indicate the root. Make sure to select the RAID Level to RAID1. By this time, the RAID Members should only left with SDA3 and SDB3, so just select both. Click Ok to complete the partitioning:

 
13) Below is the final screen of the partitions should looks like. If everything is correct, then press the Ok button to proceed with the installation:

 
14) When the CentOS installation has been completed and the server is rebooting for the first time, log into the server using the root. You can check the RAID status and progress by typing cat /proc/mdstat

 
15) By default, the GRUB boot loader only were installed in one of the hard disk only. If you forgot this step, your second hard disk can’t boot by itself. You need to copy the GRUB from the SDA to SDB. Just type grub and follow like below, line by line:
device (hd0) /dev/sda
root (hd0,0)
setup (hd0)
device (hd1) /dev/sdb
root (hd1,0)
setup (hd1)

 
16) Please take note that the software RAID will be running under MDADM. This is a software that being developed to handle the RAID procedure inside the server. You can type mdadm –help for further information
By the time you finished the Step 15, your software RAID is ready to go. Happy trying ;)
 
You can download the entire steps in PDF edition- Cnetos-Raid
Administrations Configurations (Linux) CentOSRAID

Post navigation

Previous post
Next post

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Myself…

Hi, I am Hasan T. Emdad Rumi, an IT Project Manager & Consultant, Virtualization & Cloud Savvyfrom Dhaka, Bangladesh. I have prior experience in managing numerous local and international projects in the area of Telco VAS & NMC, National Data Center & PKI Naitonal Root and CA Infrastructure. Also engaged with several Offshore Software Development Team.

Worked with Orascom Telecom-Banglalink, Network Elites as VAS partner, BTRC, BTT (Turkey) , Mango Teleservices Limited and Access to Informaiton (A2I-UNDP)

Currently working at Oracle Corporation as Principal Technology Solution and Cloud Architect.

You can reach me [h.t.emdad at gmail.com] and I will be delighted to exchange my views.

Tags

Apache Bind Cacti CentOS CentOS 6 CentOS 7 Debain Debian Debian 10 Debian 11 Debian 12 DKIM Docker endian icinga iptables Jitsi LAMP Letsencrypt Linux Munin MySQL Nagios Nextcloud NFS nginx pfsense php Postfix powerdns Proxmox RDP squid SSH SSL Ubuntu Ubuntu 16 Ubuntu 18 Ubuntu 20 Varnish virtualbox vpn Webmin XCP-NG zimbra

Topics

Recent Posts

  • Install Jitsi on Ubuntu 22.04 / 22.10 April 30, 2025
  • Key Lessons in life April 26, 2025
  • Create Proxmox Backup Server (PBS) on Debian 12 April 19, 2025
  • Add Physical Drive in Proxmox VM Guest April 19, 2025
  • Mount a drive permanently with fstab in Linux April 16, 2025
  • Proxmox 1:1 NAT routing March 30, 2025
  • Installation steps of WSL – Windows Subsystem for Linux March 8, 2025
  • Enabling Nested Virtualization In Proxmox March 8, 2025
  • How to Modify/Change console/SSH login banner for Proxmox Virtual Environment (Proxmox VE / PVE) March 3, 2025
  • Install Proxmox Backup Server on Debian 12 February 12, 2025

Archives

Top Posts & Pages

  • Install Jitsi on Ubuntu 22.04 / 22.10
©2025 Bots! | WordPress Theme by SuperbThemes