Latest LQ Deal: Latest LQ Deals
Go Back > Forums > Linux Forums > Linux - Software
User Name
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.


  Search this Thread
Old 04-27-2004, 02:04 PM   #1
Registered: Aug 2003
Location: Berkeley, California, USA
Distribution: Red Hat Enterprise Linux, Debian & Ubuntu
Posts: 92

Rep: Reputation: 16
Create software RAID partitions first, then create filesystem partitions on top of th

I'm installing Linux on a brand new system (Fedora, but this is sort of a distro-neutral question I think).

I have Serial ATA with two identical 80GB drives. I would like to mirror these drives using RAID1 provided by the MD driver (I think it's the MD driver...).

I've been reading the docs at LDP and a bunch of other locations, and I think I just need some clarficiation.

Do I need a seperate RAID1 partition for each filesystem that I want to be mirrored? If I want to have seperate /tmp /var /home /boot partitions, do I need to setup a RAID1 device (/dev/md0 /dev/md1 /dev/md2 , etc) for each of these partitions?

For example, pretend I want a 10GB /tmp partition. To do this I do the following:

1. Create a 10GB RAID partition on /dev/sda1
2. Create a identical 10GB RAID partiton on /dev/sda2
3. This creates a RAID device /dev/md0 which is 10GB
4. To create a /tmp filesystem , I use /dev/md0 as the device.

If I want to mirror other partitions, such as /boot and /home , I follow a similar procedure.

Does that sound right?

Thanks for your help,

-= Stefan
Old 04-28-2004, 04:12 PM   #2
Registered: Aug 2003
Location: Berkeley, California, USA
Distribution: Red Hat Enterprise Linux, Debian & Ubuntu
Posts: 92

Original Poster
Rep: Reputation: 16
I think I found the answer.

If I want to create separate partitions for for /tmp , /home and /boot , I need to create a RAID partition for each of these filesystems.

When I create a 10GB RAID partition from /dev/sda1 and /dev/sda2 , I get a 10GB block device named /dev/md0 .

I can then create /tmp to be a 10GB filesystem on the new block device /dev/md0 .


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
create several partitions between hda1 and hda3 tcma Linux - General 7 09-15-2004 11:18 AM
Why did Mandrake create 2 partitions on my disk? Melon Mandriva 3 07-05-2004 06:21 AM
how many partitions should I create? Necronomicom Slackware - Installation 14 06-28-2004 08:12 PM
RH9 How many partitions can I create? oracsol Linux - Newbie 1 09-25-2003 02:35 PM
trying to create additional partitions rmuhammad Linux - Hardware 2 05-16-2003 09:31 PM > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 09:21 AM.

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