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 |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
|
04-25-2006, 06:35 PM
|
#1
|
LQ Newbie
Registered: Oct 2005
Location: Sweden
Distribution: Debian/Ubuntu
Posts: 20
Rep:
|
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!
|
|
|
04-26-2006, 12:02 AM
|
#2
|
Senior Member
Registered: Oct 2003
Location: /earth/usa/nj (UTC-5)
Distribution: RHEL, AltimaLinux, Rocky
Posts: 1,151
Rep:
|
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.
|
|
|
04-26-2006, 01:09 AM
|
#3
|
LQ Newbie
Registered: Oct 2005
Location: Sweden
Distribution: Debian/Ubuntu
Posts: 20
Original Poster
Rep:
|
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
|
|
|
04-26-2006, 09:35 AM
|
#4
|
Senior Member
Registered: Oct 2003
Location: /earth/usa/nj (UTC-5)
Distribution: RHEL, AltimaLinux, Rocky
Posts: 1,151
Rep:
|
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).
|
|
|
04-29-2006, 04:35 AM
|
#5
|
LQ Newbie
Registered: Oct 2005
Location: Sweden
Distribution: Debian/Ubuntu
Posts: 20
Original Poster
Rep:
|
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
|
|
|
All times are GMT -5. The time now is 08:52 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|