LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices


Reply
  Search this Thread
Old 04-25-2006, 06:35 PM   #1
0p3r4
LQ Newbie
 
Registered: Oct 2005
Location: Sweden
Distribution: Debian/Ubuntu
Posts: 20

Rep: Reputation: 1
Need help partitioning multiple disc drives


Hello everyone,

I have a problem that is driving me crazy. I'm trying to install a Debian system on a total of 4 9,1 GB SCSI-drives. My goal is to get all of these separate hard drives to work together as a combined disk space, prefferably in software-raid0. But this has proven to be quite hard to set up. I've managed to do this one time in the past, but i can't for the life of me figure out what I did differently. Anyway, I would really appreciate any help i might get on this issue.

Thanks alot!
 
Old 04-26-2006, 12:02 AM   #2
WhatsHisName
Senior Member
 
Registered: Oct 2003
Location: /earth/usa/nj (UTC-5)
Distribution: RHEL, AltimaLinux, Rocky
Posts: 1,151

Rep: Reputation: 46
Are you providing a non-raid0 location for /boot?

Due to grub limitations, /boot can’t be in a raid0. You should identically partition the drives to include some swap space and room for /boot, followed by the rest of each drive being either a single raid0 partition or divided up into several raid0 partitions as you see fit.

Regarding /boot, what I typically do with /boot on a multidisk setup is to place it into a raid1 with one or more spares. Grub works well with a raid1.

You can also set up what is called a scattered lvm instead of a raid0. A scattered lvm (really a scattered logical volume(s)) gives raid0 functionality without using mdadm.

All of this can be done using the Debian installer.


If my comments didn’t help, then post the specific problems you encountered.
 
Old 04-26-2006, 01:09 AM   #3
0p3r4
LQ Newbie
 
Registered: Oct 2005
Location: Sweden
Distribution: Debian/Ubuntu
Posts: 20

Original Poster
Rep: Reputation: 1
Quote:
Originally Posted by WhatsHisName
Are you providing a non-raid0 location for /boot?

Due to grub limitations, /boot can’t be in a raid0. You should identically partition the drives to include some swap space and room for /boot, followed by the rest of each drive being either a single raid0 partition or divided up into several raid0 partitions as you see fit.
So... have i interpreted this right if i where to configure each of my four disks like this (I've got 512 MB RAM)?:

25 MB | ext3 | /boot | Bootable flag on
256 MB Swap | bootable flag off
The rest as physical space for raid | bootable flag off

Then make a raid0-device, using the raid0-space as physical space for lvm and then creating a logical group and volume to hold the diskspace? Setting up the logical space as:

ext3 | / | bootable flag off ?

Is it possible to have multiple instances of /boot? :S Or did you take for granted that i would put them together into that raid1 thingie in the end?

BTW, a huge thank you for writing such a detailed answer to my question, i really appreciate it
 
Old 04-26-2006, 09:35 AM   #4
WhatsHisName
Senior Member
 
Registered: Oct 2003
Location: /earth/usa/nj (UTC-5)
Distribution: RHEL, AltimaLinux, Rocky
Posts: 1,151

Rep: Reputation: 46
Boot seems a little small, but like swap size, that’s one of the personal preference things.

And yes, you can have multiple partitions set up as /boot, say in a raid1, but grub will only looks in one of them (i.e., the one you define in grub as root). Of course, you need to properly define the location of /boot in menu.lst and fstab, which might be a raid1 or in a single partition.

You should only use an lvm if you are comfortable with managing one. A raid0 with an ext3 filesystem would work fine and would be simple to manage.

If you want to use an lvm, then you could either put it in a mdadm-based raid0 as you described or manually (before starting the installation) set up a volume group with the partitions instead of a raid0 and then define scattered logical volumes using the -i (--stripes) and -I (--stripesize) options during their creation. There is an example of this at the end of the lvcreate man page.

For reasons I don’t understand, the scattered lvm tends to be slightly faster than a raid0, and I mean almost trivially faster (maybe 2% on bulk reads/writes).
 
Old 04-29-2006, 04:35 AM   #5
0p3r4
LQ Newbie
 
Registered: Oct 2005
Location: Sweden
Distribution: Debian/Ubuntu
Posts: 20

Original Poster
Rep: Reputation: 1
Quote:
Originally Posted by WhatsHisName
You should only use an lvm if you are comfortable with managing one. A raid0 with an ext3 filesystem would work fine and would be simple to manage.
So you're saying i should put the root partition directly on a raid0-device? And do i have to scatter the boot and swap across the disks? Isn't it easier if i where to just use like 100 MB on one of the disks as /boot and another 1024 MB as swap (my amount of RAM doubled)? I'm very unskilled in this area of computer-operation and i hope i'm not making a complete fool out of myself, all I really want is an easy setup that let's me use the combined disk space.

Anyway, greatly appreciate you taking the time to answer
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Slackware 10.1 fstab + 2 disc drives securitybreach Slackware 6 04-27-2005 03:17 PM
Advice needed on FC2 partitioning and multiple drives dbruso Linux - Newbie 2 09-14-2004 03:35 PM
Partitioning drives Muze Linux - Software 5 09-15-2003 03:14 AM
Partitioning drives and what not vexer Slackware 1 01-12-2003 05:53 PM
install multiple distros on same disc steelrose Linux - General 3 10-25-2002 07:54 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

All times are GMT -5. The time now is 08:52 AM.

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