Solved

When to create a software RAID array in Ubuntu

Posted on 2011-03-09
9
535 Views
Last Modified: 2012-05-11
Hey there,

I'm setting up a software raid using Ubuntu Desktop and wondered if it's better to create the array during the initial installation or after I've installed the OS?

Thanks!
0
Comment
Question by:ttist25
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 3
  • 2
  • +1
9 Comments
 
LVL 5

Assisted Solution

by:Iekos
Iekos earned 250 total points
ID: 35083310
Create the Raid before OS is better in my opinion so if you choose, Ubuntu can also be on Raid.
0
 
LVL 3

Expert Comment

by:4runnerfun
ID: 35083333
Also, if you're going to create it before OS install, you'll need the Alternate install CD/DVD. You'll then be able to setup the drives/partitions. The standard install doesn't give the option from what I recall.
0
 
LVL 47

Accepted Solution

by:
dlethe earned 250 total points
ID: 35083504
Nothing more to add to above, except that this is probably the only opportunity you have to actually test to see if it works.   So I would make a dry run and install, but just take defaults and don't spend time setting up anything that takes more than a few seconds of your time and let it run.

Make sure BOTH disks are in the BIOS boot path.

After installed, power off.  Open up the case of the PC and locate all cabling, find out where the POWER is to the primary boot disk and move cabling around and get it loose so you can unplug it safely while system is powered up.  If you have a case power kill button, tape it over so the system runs with case open.

Then boot & log in.   Do something that requires I/O,   like dd if=/dev/md0 of=/dev/null &
this reads from the raid array into boot bucket

Then carefully unplug power to the primary boot disk.
If you did it right the system will stay booted and the dd command will continue to run.

If successful, then just power it off, plug everything in, close the case, and re-install, and then you can sleep at night knowing RAID1 is working!

0
Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
LVL 47

Expert Comment

by:dlethe
ID: 35083527
P.S.  after you power it off, but before you plug in the disk, then reboot. This insures system boots ok when it is degraded.    Power off, and then plug in the primary boot disk.   Then power on, then it *should* actually boot from the secondary disk, and then you can practice repairing the degraded RAID1.  Might as well have a dry run through repair as well, so you know how to do it.   Some day you'll be thankful you did :)
0
 
LVL 1

Author Comment

by:ttist25
ID: 35084959
Ok - dry run is a great idea.  Create the array first - got it.  I just downloaded the Alternate ISO as well.

My mobo doesn't support RAID (it's a Dell Poweredge T110) and I'm using three 500GB drives (I should've specified that initially - sorry).  I'm assuming RAID 5 will be the best way to go as 1TB is enough space for me.  

Given that, are their any differences in the dry run steps or any other recommendations you have?

Thanks for everything.  It's greatly appreciated.  
0
 
LVL 3

Expert Comment

by:4runnerfun
ID: 35085055
That should work great for you. My latest file server setup was 7 x 500GB with RAID 6. Turned an OLD LanParty desktop system into a home media server / file server.
0
 
LVL 47

Expert Comment

by:dlethe
ID: 35085174
You really want to then partition the disks so that you split the O/S into a grub partition and make it RAID1, (but a 3-way RAID1), then put the rest on a 3-disk RAID5.  Linux will let you do that, and in fact, if your data can be organized so that the O/S can be separated from whatever you need for your applications, then personally I would make it into 3 partitions, a 3-way RAID1 for both grub & your operating system, swap, and everything else, then a RAID5 for /r5    and then your databases or whatever go there and it is raid5.


RAID5 is horrible for writes as you know, but LINUX software RAID does things like balancing reads across each disk in a RAID1, so you will get great performance.  In fact, put any write intensive and most important stuff in the RAID1 partition, so you get 3 copies for added protection!

Doing mixed RAID levels works quite well, and is advanced, and many don't even know it is possible, but plenty of examples online on how to create rather sophisticated configurations if you just google configure md raid linux
0
 
LVL 1

Author Closing Comment

by:ttist25
ID: 35094689
I found out that I DO have an S100 PERC controller built into the MOBO.  I spoke with a Dell rep that first told me no but the second guy pointed out that there is one.  

I'll post a new question as you guys have done more than enough on answering this one.
0
 
LVL 1

Author Comment

by:ttist25
ID: 35100970
I have posted a new question about how to recover here in case anyone wants to give it a shot.  
0

Featured Post

Free learning courses: Active Directory Deep Dive

Get a firm grasp on your IT environment when you learn Active Directory best practices with Veeam! Watch all, or choose any amount, of this three-part webinar series to improve your skills. From the basics to virtualization and backup, we got you covered.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Finally comes the third version of VMware Virtual SAN, whose name is 6.1, and comes loaded with new features many of which really are excellent and even surprising.
Employees depend heavily on their PCs, and new threats like ransomware make it even more critical to protect their important data.
This tutorial will walk an individual through locating and launching the BEUtility application and how to execute it on the appropriate database. Log onto the server running the Backup Exec database. In a larger environment, this would generally be …
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.

738 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question