LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 10-16-2008, 10:29 AM   #1
hardbop200
LQ Newbie
 
Registered: Jul 2005
Location: Texas
Distribution: Debian, dyne:bolic
Posts: 11

Rep: Reputation: 0
Setting up RAID0 in Debian


Hello!

My home machine has two identical SATA drives in it. For fun and for learning, I would like to install Debian on them (I have experience installing/using Debian). My problem is that I want to configure the drives to be RAID 0 for speed and performance (data loss is not an issue here). I've read the Software RAID HOWTO, but something isn't clear to me:

Can I create the RAID prior to partitioning the disks in the installer, or do I need to install on one disk, then create the RAID?

I hope my question is clear, thanks in advance for any help you might have.
 
Old 10-16-2008, 10:45 AM   #2
mackdav
Member
 
Registered: Feb 2005
Distribution: RHEL, CentOS
Posts: 113

Rep: Reputation: 16
Raid-0 has to be defined before the file system is. This is because in Raid-0 the data is striped block by block across the two disks.

Define the RAID (probably in your installer somewhere), and create your file system on top of that.

Note that your boot partition can't be RAID-0.

Beware that RAID-0 is for speed only (and probably not much of an increase at that), it actually reduces reliability since the failure of either disk will hose the entire RAID set.
 
Old 10-16-2008, 12:02 PM   #3
Quakeboy02
Senior Member
 
Registered: Nov 2006
Distribution: Debian Linux 11 (Bullseye)
Posts: 3,407

Rep: Reputation: 141Reputation: 141
There are two ways to install your OS on a software RAID0. It depends on which controller you are using.

In the case of a controller that doesn't offer fakeraid, then you will need to have a separate "/boot" partition on drive one, and configure the rest of both drives to RAID0 during the install process.

In the case of a controller that does offer fakeraid, then you will need to install dmraid, and you won't need a separate boot partition. IOW, go ahead and setup the RAID0 in the BIOS, and during install time configure both drives into a RAID0, as well. Install dmraid during the installation and it should go OK with one caveat:

It All Depends on the installer of your distro. I was not able to get this to work properly on the original Etch installer. I don't know what the state of Etch is at the moment, and I can't say about Lenny. There is a good Ubuntu page out there about installing on fakeraid if the installer isn't up to it.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Adaptec ASR-2820SA in Raid0 slower than SW-Raid0 phab Linux - Hardware 0 01-22-2007 09:03 AM
kt7a-raid + debian + raid0 (mirroring) heller Linux - Hardware 5 08-09-2005 11:17 PM
Trouble booting a new RAID0 machine with Debian sarge miggins Linux - Hardware 1 12-01-2004 12:27 AM
boot from software raid0 with debian ulmo Debian 2 07-30-2004 03:06 AM
boot to PATA raid0 on Promise 378 *and see* SATA raid0 ICH5 ? patr Linux - Hardware 2 02-25-2004 01:36 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 03:13 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration