How to Setup Fedora 11 and a Software RAID 0, 1, 5, 6 or 10 Array with a GUI

Posted by admin on July 24, 2009 at 12:00 am
Filed under: Tutorial

Over the last couple of months I’ve been using a hack to allow software RAID 5 on Windows XP. This hack has worked great for the few months I’ve used it, but I have found a two key features missing from Windows XP’s implementation of software RAID. The first missing feature is the ability to add a hard drive to an existing RAID 5 array. The second missing feature is the ability to make different RAID setups appear as one drive. For example, let’s say I have three 500gb hard drives in a RAID 5 and two 250gb hard drives in a RAID 1. I would like the ability to make these two different arrays function as one big drive. After a little bit of research, I’ve found that Linux is the solution to my problem. Also, I’ve found that Linux has support for software RAID 6 and RAID 10, a nice bonus if users are looking for increased fault tolerance or increased speed. Although RAID on Linux was a little bit tough to set up, because I’m not used to Linux and because Linux developers aren’t the best with GUI’s, I eventually worked it out.

payday loans covington ga cash advance without employment verification

Step #1 Pick the desired RAID and get the needed hardware.

The first step is to decide on the type of RAID. Go to my article on simple RAID level explanations to find out the differences between the different levels or RAID. Once the desired RAID level is picked, it’s time to move onto hardware. The amount and size of hard drives needed to achieve the desired setup needs to be figured out. When deciding how many hard drives will be needed keep in mind that one hard drive of 10gb or more will be needed to accommodate the OS. Also, linux should run on almost any motherboard, CPU and Video Card combination.

Step #2 Download a Fedora Live CD ISO and burn it to a CD.

Go to http://download.fedoraproject.org/pub/fedora/linux/releases/11/Live/i686/Fedora-11-i686-Live.isohttp://mirror.nyi.net/fedora/linux/releases/11/Live/i686/Fedora-11-i686-Live.iso or http://fedora.mirrors.tds.net/pub/fedora/releases/11/Live/i686/Fedora-11-i686-Live.iso and download the Installable Fedora Live CD. Once the live CD is downloaded, burn the ISO image to a CD. Here are some tutorials on how to burn an ISO to a CD on Windows or Mac OS X. If Fedora is going to be installed on an old Macintosh or another PowerPC platform here is the download link for the PowerPC DVD ISO http://download.fedoraproject.org/pub/fedora/linux/releases/11/Fedora/ppc/iso/Fedora-11-ppc-DVD.iso. Note that I have not tried to install Fedora or setup a software RAID on a PowerPC, but I imagine it should work the same as if being installed on a regular PC.

Step #3 It’s time to get your Linux on, boot to the Fedora Live CD.
Step #3.1

Insert the Fedora Live CD into the computer that’s going to contain the RAID array. Once the CD is inserted make sure the computer is set to boot to the CD. Once the computer boots to the CD a screen like this should pop up.01 Automatic BootAfter the automatic boot screen a progress bar should appear at the bottom of the screen.02 Progress Bar

Step #3.2

After the progress bar, a login screen will appear. Once the login screen appears, click on the “Log In” button to continue. If the login screen sits for longer than 60 seconds it will automatically log in.03 CD Automatic Login

Step #3.3

After clicking “Log In” or being automatically logged in the Fedora Desktop will show up. On the left side of the Desktop there will be an “Install to Hard Drive” icon. Double click on this to start the installer.04-CD-Desktop

Step #3.4

On the first step of the installer click the “Next” button.05-Fedora-Installer

Step #3.5

Next, select the keyboard layout and then click “Next”.05-b Select Language

Step #3.6

A little window like the one should show up after clicking next. It should only pop up for a couple of seconds then proceed automatically to the next step.
06-a finding storage devices
If this warning doesn’t pop up move onto the next step. This warning may pop up if there are any unformatted or unreadable drives on the computer. Be sure to click on “Re-initialize drive”. If “Ignore drive” is clicked the drive will not be available for formatting.
06 Error Processing drive re-initialize

Step #3.7

Now give the computer a name, this is the name that will identify the computer on the local netowork.
07 name the computer

Step #3.8

Select the local time zone and click next.08 select time zone

Step #3.9

Create a administrator password and click next.09 enter a password

Step #3.10

Now it’s time to get ready for formatting. I choose “Use entire drive” for the layout. By default, every drive in the “Select the drives(s) to use for this installation.” is automatically checked. Make sure that only the drive that is set aside for the OS is checked! Scroll down the list and make sure no drive that is going to be used in the RAID array is checked. Also, make sure to check “Review and modify partitioning layout”.
10-a install layout check review and modify and only check the drive that is to have the OS

Step #3.11

Here is the important part of the tutorial, the partition editor. This screen may appear overwhelming, but don’t fret. I will try my best to answer any question or resolve any problems encountered in the comments for this post. The first step is to drag the divider (it’s the 3 little dots directly above the pointer in the screen shot below) the whole way to the top.11 RAID and LVM

Step #3.12

Once the divider is dragged the whole way to the top, the partition editor should look like the screen shot below.12 RAID and LVM full screen

Step #3.13

Before starting, make sure that all drives that are going to be in a RAID array are “Free”. To clear out an old partition, click on the partition to highlight it, then click on the “Delete” button. Make sure not to delete the partitions from the drive that Fedora is going to be installed on, this is usually /dev/sda.12-b delete old partitions

Step #3.14

Click on the “Delete” button to confirm the delete. Repeat steps 3.13 through 3.14 until all drives that are going into a RAID array are free.12-c confirm delete

Step #3.15

Once the partitions are deleted, every drive that is going to be in the RAID array should now say “Free”.12-d all of the drives are free

Step #3.16

Select a hard drive that is going to be included in a RAID array and then click on the “RAID” button.13 highlight first partition

Step #3.17

Make sure “Create a software RAID partition” is selected and then click “OK”. The third time this dialog box pops up “Create a RAID device” will be checked automatically, make sure to check “Create a software RAID partition” before clicking “OK”.14 create raid partition

Step #3.18

Make sure the File System Type is set to “software RAID”. In “Allowable Drives” make sure the desired drive is check marked. Then click on “Fill to maximum allowable size” and then click “OK”. Repeat step #3.16 through #3.18 for every drive that is going to be included in a RAID array.

15 make file system type software RAID check the first drive - fill to max

Step #3.19

Once all drives are partitioned as “Software RAID devices” click on the RAID button once again. This time, select “Create a RAID device” and click “OK”
17 when done with all select create a RAID device

Step #3.20

To make the RAID device extendable set the “File System Type” to “physical volume (LVM)”. Leave the “RAID Device” to the default setting and then select the preferred “RAID Level”. Then select the “RAID Members”. Once everything is set up click “OK” Repeat steps 3.19 through 3.20 if more than one RAID device is needed.18 file system LVM desired RAID level check drives

Step #3.21

Once all the RAID devices are setup it’s time to format them and combine them if there is more than one RAID device. To format the RAID array click on the “LVM” button in the upper right corner of the partitioning tool. Even if only one RAID array is being used it is important to make sure to put it in a LVM to ensure future expandability.19 click on LVM

Step #3.22

After clicking on “LVM” button the “Make LVM Volume Group” should pop up. Once this window pops up give the Volume Group a name. Then check mark all of the Physical Volumes(the physical volumes should be the RAID volumes that were created earlier in my case “md0″ and “md1″) that are going to be grouped together. Once that’s done click the “Add button”20 create a LVM check both raid array that were made earlier click add

Step #3.23

Now give the file system a type, from my research I’ve found that ext4 performs best in most cases. Next, give the Logical Volume a name, note that there cannot be any spaces, dashes or any special characters in the “Logical Volume Name”. Lastly, verify that the size is maxed out, it should already be maxed out by default but it can’t hurt to take a look. Once everything looks good click “OK”21 make log vol ext4 no spaces or dashes in name

Step #3.24

Review everything one last time and then click “OK”.22 make LVM click ok

Step #3.25

Once again, review all of the changes and click the “Next” button.23 review and then hit next

Step #3.26

A dialog should pop up that looks like the one below. Click on “Write changes to disk”.24 write changes to diskWait for Linux to finish formatting the drives, this may take a while depending on the amount of storage and speed of the computer.25 wait while it formats26 more waiting to format

Step #3.27

Once everything is done formatting click “Next” to install the boot loader.27 install boot loader

Step #3.28

Congratulations, the installation is complete, click the close button and restart the system.28 install complete

Step #3.29

To restart the system, go to the “System” menu in the upper right corner and click the “Shut Down…” button.29 shut down

Step #3.30

Click the “Restart” button. Also, remember to remove the Fedora Live CD so the computer boots to the hard drive and not the CD.
30 restart

Step #3.31

After the restart, the welcome screen should pop up, click “Forward” to go to the next step.31 welcome

Step #3.32

Review the license information and then click “Forward”.32 license information

Step #3.33

Next, create a user, once all the information is inserted click “Forward”.33 create user

Step #3.34

Set the correct date and time and click “Forward” to continue.
34 date and time

Step #3.35

If there is a network connection available click on the “Send Profile” button. This information will help the Fedora community understand what hardware people most commonly use. Click “Finish” to move onto the login screen.35 hardware profile

Step #3.36

Click on the desired user name to login.36 login

Step #3.37

Enter the corresponding password for the user and click “Log In”. That’s it, now it’s time to enjoy server quality storage at home.37 password then log in

Looking to create the ultimate NAS with an old PC? Keep an eye out for my upcoming article on how to share a data over a local network with Windows XP and Mac OS X. Also, in the near future I will show how to setup e-mail notifications in the event of a drive failure and will also show how to expand RAID arrays.

15 Comments »
  1. [...] Checkout my post on how to setup RAID on Linux. With Linux users can create RAID 0, 1, 5, 6, or 10 arrays, as well as expand an existing RAID 0, 5 or 6 array. Also Linux users can mix and match RAID arrays, but have them function as one drive. For example, with a Linux RAID setup a user could have three 500gb drives in a RAID 5 array and and two 250gb drives in a RAID 1 array and have the arrays function as one big drive. If you’re interested in how to create a RAID array in Linux please visit my post Installing Fedora 11 and setting up a RAID 0, 1, 5, 6 or 10 Array. [...]

    Pingback by Optimiz3.com » Software RAID 0, 1, 5 or JBOD Using Windows XP Pro SP3 — July 25, 2009 @ 6:46 pm

  2. Nice article, Jon. Good for the ones new to Fedora…

    Comment by Satyajit Ranjeev — July 31, 2009 @ 11:16 am

  3. It says I need o define a boot and / partition. How do I do that?

    Comment by Jordan — August 11, 2009 @ 3:45 pm

  4. I’m getting a new server built and am going to use Fedora 11 on a RAID 5 or RAID 10 (haven’t decided yet). Would it be smart to have a hardware RAID controller placed on the server? Or is a software RAID controller good enough? Why or why not?

    Thanks for the instructions btw.

    Comment by Mike — August 27, 2009 @ 4:48 pm

  5. Great articles. I have a question though, did you create swap partitions for each of your RAID drives?

    Comment by JD — September 18, 2009 @ 11:18 am

  6. i want to install Raid 01 with 4 disks, I am not sure how to do it, can someone guide me or mail me any screenshots

    Comment by new2guitar — October 8, 2009 @ 2:05 pm

  7. update: i have 5 disk, first disk has OS and I want to do raid 01 on 4 disks

    new2guitar@gmail.com

    Comment by new2guitar — October 8, 2009 @ 2:06 pm

  8. Ive followed the steps up to ‘Step #3.18′.
    But when I click on the RAID button, the option ‘Create a RAID device…’ is grayed out, and I cant select it?

    What am I doing wrong?

    Thanks

    Comment by kpb — October 16, 2009 @ 7:20 pm

  9. You select a separate disk for the OS installation. Does this mean that at least 3 disks are required to install RAID 1 configuration?
    I have only two 320GB disks. Is it possible to partition them in such a way that I can install the OS and use the remaining space for RAID 1?

    Thanks

    Comment by @L — January 11, 2010 @ 1:58 am

  10. How to grow the partition in raid5

    Comment by krushna — April 21, 2010 @ 8:53 am

  11. Very good article man helped me out alot.

    thanks

    Comment by John Ruffer — May 19, 2010 @ 6:58 pm

  12. Hi, very good article.

    I’m looking to build a NAS, though. Any chance you’ve written the ‘ultimate NAS’ article yet? Can you provide a link to it?

    Comment by TS — August 15, 2010 @ 11:16 am

  13. [...] I just did a fresh install of Fedora 11 and added Raid 1 following this tutorial: http://www.optimiz3.com/installing-fedora-11-and-setting-up-a-raid-0-1-5-6-or-10-array/ [...]

    Pingback by Drija » Archive » Can’t write to raid on Fedora — November 11, 2010 @ 10:56 am

  14. Great Manual! I found out very clear and simple, as must be things like that. Nice job!

    Comment by Álvaro Gomes Silva — July 26, 2011 @ 9:30 pm

  15. Thank you very much!!
    According to your great tutorial, I’d love to install Fedora 16 with RAID 1 on MSI 870S-G54!!

    Comment by LINGdong — December 5, 2011 @ 12:46 pm

TrackBack URL

Leave a comment

Powered by WordPress

viagra gel soft tab generic cialis online pharmacy viagra soft tabs uk buy cheapest xenical flagyl overnight buy cialis online with no prescription orlistat india buy nolvadex mexico viagra 100mg price azithromycin order cialis cheap delivery buy amoxicillin no prescription cheap brand cialis cymbalta discount levitra 3mg canadian pharmacy cipro prices levitra celebrex order buy viagra pills cheap celebrex online furosemide no prescription tamoxifen citrate order viagra canada cheap generic viagra online buy cheap viagra online now uk generic propecia viagra clomid purchase viagra canada Buy 5 mg cialis cialis once daily cialis super Viagra rx in canada Cialis generic india phizer viagra price levitra fda cipro Canadian healthcare pharmacy buy zithromax in canada brand viagra overnight delivery buy cialis super active Lowest price for propecia The best pharmacy store 20mg cialis generic no prescription flagyl genuine cialis without a prescription cialis 100mg Levitra ed viagra internet sales levitra website discount generic viagra online cheap levitra professional without rx cheapest price for cialis us discount viagra overnight delivery buy cipro xr sildenafil cheap clomid prednisones discount viagra australia zithromax overnight shipping lowest propecia prices where can i buy cialis buy cialis for daily use accutane canada price cialis canada generic viagra made in india Lowest price propecia best viagra sale uk prescription for diflucan order prescription viagra purchase amoxicillin effects clomid Cheap real viagra england Viagra online without prescription from canada buying viagra in the uk cialis woman viagra toronto canada canadian female viagra celebrex without prescription order diflucan bupropion for cheap viagra generic generic levitra uk overnight delivery where to buy cytotec pills kamagra cheapest Canadian cialis uk buy cialis viagra for sale Buy propecia cheap purchase viagra online consultation generic brand for viagra purchase viagra us prozac vs paxil generic levitra shipping canada where can i buy misoprostol cheap cialis no prescription Cialis costs buy viagra where buy real viagra online Viagra online in us no prescription Cialis daily dosage pharmacy Cialis cost canada buy cialis next day delivery