Skip to content
Nosce Te Ipsum
  • Home
  • About me
  • My COETAIL Blogs
    • Course 1
    • Course 2
    • Course 3
    • Course 4
  • Testimonials
    • Professional
    • Personal
Site Search

Software RAID in Linux

  • March 7, 2011March 7, 2011
  • by Muhammad
Share on Facebook
Facebook
Tweet about this on Twitter
Twitter
Share on LinkedIn
Linkedin
Pin on Pinterest
Pinterest
Share on Reddit
Reddit
Email this to someone
email
Share on StumbleUpon
StumbleUpon
Digg this
Digg

Some new servers have BIOS based RAID instead of using a proper RAID controller. In this case you might have to use software raid. During installation when you are at the disk partition step choose customised partitioning. Assuming Linux is your single OS on the system, you have identical drives (you don’t really need them identical as long as equal space is available on all partitions) follow the steps below – example screen shots are from CentOS installation.
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. Put100 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 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

Share on Facebook
Facebook
Tweet about this on Twitter
Twitter
Share on LinkedIn
Linkedin
Pin on Pinterest
Pinterest
Share on Reddit
Reddit
Email this to someone
email
Share on StumbleUpon
StumbleUpon
Digg this
Digg
ClearOS – more installation tips
Installing Linux on MacIntel
Muhammad
centos linux software raid

Related articles

Dynamic DNS client setup for…
Install Nginx, MySQL and PHP…
Attaching an external storage with…
Setting up L2TP/IPSEC server using…
(c) Raspberry Pi
Starting with Raspberry Pi
Using GeoIP database to identify…
…after a long absence
ISOLINUX: No DEFAULT or UI…
Installing and Running MinecraftEdu on…
clean mail queue with Perl…

Leave a Reply Cancel reply

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

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Follow Me!

Follow Me On TwitterFollow Me On LinkedInFollow Me On PinterestFollow Me On About.meFollow Me On Wordpress
May 2025
M T W T F S S
« Oct    
 1234
567891011
12131415161718
19202122232425
262728293031  

2009 2010 2011 Amelie apache beijing birthday clearos crèpes debian december 2009 dubai email february firewall guide holidays ill install internet kuala lumpur linux list mac maheen mobile october 2009 outlook Pakistan raspberry raspberry pi router search Sharepoint smtp snow spring ubuntu unix VLAN VPN windows 7 winter xian Zimbra

WP Cumulus Flash tag cloud by Roy Tanck requires Flash Player 9 or better.

Categories

Licensed under a Creative Commons Attribution-NonCommercial-NoDerivs 3.0 Unported License.
Theme by Colorlib Powered by WordPress
  • Home
  • About me
  • My COETAIL Blogs
  • Testimonials