LinuxQuestions.org
Visit Jeremy's Blog.
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 11-20-2004, 11:32 AM   #1
SBFree
Member
 
Registered: Nov 2004
Distribution: Ubuntu
Posts: 70

Rep: Reputation: 15
Partitions and RAID 1


Hi -
I explored RH enough on an old P2 machine that it seemed like a new build was in order. I did a new build an would like to set up RAID 1. It has 2 IDE drives with the master smaller than the slave and I would like to put two partitions on the slave and have the first of the partitions be a RAID 1 mirror of the master drive. I would like some advice on partitioning and setting up the two drives to do this. I got to Disk Druid and felt unsure enough that I thought it would be better to look for help first. The drives are new and I would like to partition the entire first drive and an equal amount of the second to be a RAID 1 array. The remainder of the second drive can be used as one partition. Can I set up two physical drives to be a RAID 1 array? The first few passes kept telling me that my RAID array had to be on the same drive. The file structure is different and I'm not sure if I need mount points for the RAID array or what my mount point for the remaining portion of my second partition on the second drive should be. Sorry for being so long winded, I would rather get partioning done right the first time.

Thanks - Scott
 
Old 11-20-2004, 12:55 PM   #2
Kreature
LQ Newbie
 
Registered: Nov 2004
Posts: 20

Rep: Reputation: 0
Not sure if anyof this anwsers your questions but this is how you would set it up :P

First make the raid partiions by using disk druid
choose new then choose software raid to make the new raid partition
make sure now that you select the drives you are using.
fill in the size for the partition
now that you have your raid partition created click the button RAID on disk druid
enter the mount point
your filesystem (ex. ext3)
now choose the RAID lvl 1
now choose the partitions that you want in the RAID array
and if you want these partitions formatted which will be most likely

let me know if this helped out at all
 
Old 11-20-2004, 02:48 PM   #3
SBFree
Member
 
Registered: Nov 2004
Distribution: Ubuntu
Posts: 70

Original Poster
Rep: Reputation: 15
Partitions & RAID 1

Thanks for the reply. This is only my second Linux install. I was able to create the RAID 1 Array but wasn't sure what mount point to use. It seemed like I wanted "/" if the operating system and all user files were to be mirrored. Then it asked me to create a swap partition and I was uncertain if I should go back and make the RAID partion smaller on the first drive or just put the swap on the second drive which had tons of free space on it. I would like to use the remaining space on the second drive but am not sure where to mount it if it is not going to be part of the raid array. I was hoping to use it for video and audio media that didn't need to be backup up. Do I need a seperate swap partition? How big should it be? Is it ok to have it on the second drive? Any thoughts would be appreciated. Thanks. The first post was helpful. It's a lot of small steps in the newbie stage.
Scott
 
Old 12-01-2004, 06:48 PM   #4
kenji1903
Member
 
Registered: Apr 2004
Location: M'sia, Aus, Chn
Distribution: Redhat Linux 8 & 9, Fedora Core 2, XP
Posts: 301

Rep: Reputation: 30
Here is my fileserver setup, don't know if this helps though...
Code:
md0 -> hd[a/c]1 -> /boot
md1 -> hd[a/c]2 -> /home
md2 -> hd[a/c]3 -> /
swap -> ~2x(your amount of RAM)
From what i have read, the swap partition is similar to window's virtual memory; it's already RAID0. You do not have to create a RAID partition for swap.
Say you have 256MB of RAM, you can put 256MB into hda and the other 256MB into hdc, which totals up to be 512MB. (FYI, my CD-RW has taken hdb).

For RAID1 to work, say you have a 80GB hda and an 40GB hdc, you can only mirror up to 40GB. I tried this with 2 similar HDD, going to try HDD with different sizes today.

Please correct me if I'm wrong (as usual ), hope to get some feedback whether i am on the right track myself!
 
Old 01-07-2005, 01:32 AM   #5
stormadvisor
Member
 
Registered: Nov 2004
Location: Ohio
Distribution: suse 9.1
Posts: 31

Rep: Reputation: 15
Curious if you had gotten it going? What is the status? I am wanting to set up my on fileserver as well. i just don't know how to go about it.
 
Old 01-07-2005, 03:21 AM   #6
kenji1903
Member
 
Registered: Apr 2004
Location: M'sia, Aus, Chn
Distribution: Redhat Linux 8 & 9, Fedora Core 2, XP
Posts: 301

Rep: Reputation: 30
Yeah, some feed back would be nice
 
Old 01-07-2005, 04:18 AM   #7
Electro
LQ Guru
 
Registered: Jan 2002
Posts: 6,042

Rep: Reputation: Disabled
RAID 1 will not work well if the two hard drives are on the same channel. You have to place them on seperate channels. Make the swap on the bigger drive, but make sure its the first partition. You do not need swap be twice your system memory because that is overkill these days. Then you can make the RAID array. I would not put /var, /home, /tmp, and /boot on a RAID 1 setup because the RAID 1 array will always be writing and you will not get good reading performance that RAID 1 provides.

ReiserFS will be better than EXT3.

Swap can be RAID automatically if both swap partitions are the same priority and size. You do not need to setup a RAID partition for swap.
 
Old 01-07-2005, 06:43 PM   #8
kenji1903
Member
 
Registered: Apr 2004
Location: M'sia, Aus, Chn
Distribution: Redhat Linux 8 & 9, Fedora Core 2, XP
Posts: 301

Rep: Reputation: 30
Hi Electro,

Thanks for the info, I'll reduce my swap when I reformat the server, also will try out reiserfs

Um... /home contains most of the important data, is it advisable not to put that in the array?
 
  


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
can I reconstruct partitions according to raid information. FinalFantasy Linux - General 1 07-08-2005 08:36 PM
mkfs overwrites RAID partitions erick_el_rojo Linux - General 0 05-02-2005 11:07 AM
Mounting of partitions on PCI Raid 0 subaruwrx Slackware 4 06-19-2004 10:04 AM
Create software RAID partitions first, then create filesystem partitions on top of th stefanlasiewski Linux - Software 1 04-28-2004 04:12 PM
How can I view the Raid Device and Partitions x2000koh Linux - General 1 07-12-2002 04:34 AM

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

All times are GMT -5. The time now is 01:15 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