LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 03-19-2002, 08:05 PM   #1
chuck77
Member
 
Registered: Nov 2001
Location: singapore
Posts: 120

Rep: Reputation: 15
Raid ...


I am using Compaq proliant server with two 9.1GB harddisk mirroring ( RAID 1 ). If i were to add a 18.2 GB hardddisk...

will it affect the RAID 1 ??

or do i have to config RAID 5 ??

using RAID 5...do i have to give up 9.1GB of the 18.2 GB harddisk becos of the parity of the 3 harddisk ..?

Any advise... i am upsizing the /home
 
Old 03-19-2002, 08:42 PM   #2
DavidPhillips
LQ Guru
 
Registered: Jun 2001
Location: South Alabama
Distribution: Fedora / RedHat / SuSE
Posts: 7,163

Rep: Reputation: 58
Or you could split the 18 and make two 9G Raid 1 s
 
Old 03-19-2002, 09:11 PM   #3
chuck77
Member
 
Registered: Nov 2001
Location: singapore
Posts: 120

Original Poster
Rep: Reputation: 15
If i have 3 harddisk of two 9.1GB and a 18.2GB. Can i use RAID 1 ??
 
Old 03-19-2002, 09:28 PM   #4
DavidPhillips
LQ Guru
 
Registered: Jun 2001
Location: South Alabama
Distribution: Fedora / RedHat / SuSE
Posts: 7,163

Rep: Reputation: 58
Sure

I would probably break it up like this

md0 = hda1 9G + hdc1 9G
md1 = hba1 9G + hdc2 9G
 
Old 03-19-2002, 09:28 PM   #5
DavidPhillips
LQ Guru
 
Registered: Jun 2001
Location: South Alabama
Distribution: Fedora / RedHat / SuSE
Posts: 7,163

Rep: Reputation: 58
Sure

I would probably break it up like this

md0 = hda1 9G + hdc1 9G
md1 = hdb1 9G + hdc2 9G
 
Old 03-20-2002, 12:46 PM   #6
te_conway
Member
 
Registered: Apr 2001
Location: MA
Distribution: redhat 7.2
Posts: 182

Rep: Reputation: 30
Proliant has a hardware raid. I have one too. I haven't tried but I fairly sure the drives have to be the same size.

If smartstart let's you do it, you'll see the disk usage in the gui before you save the raid configuration.
 
Old 03-20-2002, 06:54 PM   #7
DavidPhillips
LQ Guru
 
Registered: Jun 2001
Location: South Alabama
Distribution: Fedora / RedHat / SuSE
Posts: 7,163

Rep: Reputation: 58
I thought maybe it was software

 
Old 03-21-2002, 07:01 PM   #8
chuck77
Member
 
Registered: Nov 2001
Location: singapore
Posts: 120

Original Poster
Rep: Reputation: 15
Currently our Proliant server using raid 1 mirroring between 2 9.1GB. If i were i add another 9.1 GB and make it raid 5.

Can this be done without re-setting up the whole linux OS ??

What can i do ?? Pls advise...
 
Old 03-22-2002, 01:28 AM   #9
mcleodnine
Senior Member
 
Registered: May 2001
Location: Left Coast - Canada
Distribution: s l a c k w a r e
Posts: 2,731

Rep: Reputation: 45
Quote:
Originally posted by chuck77
Currently our Proliant server using raid 1 mirroring between 2 9.1GB. If i were i add another 9.1 GB and make it raid 5.

Can this be done without re-setting up the whole linux OS ??

What can i do ?? Pls advise...
Yes and No. I can't recommend that you use more than one partition on a drive in an active array as it seems to me that it would severely hurt your performance and reliability. Think about it - we're trying to write data in parallel (striping) to one array, but when we also want to write to another partition on a drive that participates in that array something has to stop and wait. This could lead to a lot of resyncs in a RAID5 setup.

You could just use a partition of that new 18GB drive to build your new array, but you would 'lose' the remaining space on that drive.


I use the raidtools 0.9 package which allows me to use the 'failed-disk' directive. (I'm not familiar with hardware RAID as my budget won't allow) I'm not sure if the Compaq controller will let you do the same thing but here's all I can offer. In short it will let you set up a crippled RAID5 array so you can set up your stuff. It goes something like this.

fdisk your new drive and create partition(s) to match your other drives. Then you need to set the partition type to raid autodetect (going from memory I think it's type 'fd'). Next you can format it and mount it.

So now your system looks something like this:
2 x 9.1GB RAID1 = 9.1GB Storage (/dev/sda, /dev/sdb)
1 x 9.1GB disk = 9.1GB Storage (/dev/sdc) (you created a partition on the new drive to match the original 9.1GB drives)

You now need to copy the contents of your RAID1 array to your new drive. I ran across this nifty command in one of the Software RAID how-to's. 'cd' to your root directory. mount your new, formatted drive to something simple like /mnt. Then...
Code:
find . -xdev | cpio -pm /mnt
This will copy your stuff to the new drive. Now you can go about creating the new RAID5 array. My /etc/raidtab would look something like this
Code:
raiddev /dev/md0
        raid-level              5
        nr-raid-disks           3
        nr-spare-disks          0
        persistent-superblock   1
        parity-algorithm        left-symmetric
        chunk-size              32
        device                  /dev/sda1
        raid-disk               0
        device                  /dev/sdb1
        raid-disk               1
        device                  /dev/hdc1
        failed-disk             2
By using the setup as above, when I create the new array it wont stomp on the data I copied to the new drive as it was tagged as a 'failed-disk'. In RAID5 the array can function with one drive not participating. Now you can create the array /dev/md0 and format it. Only the first two drives will be a part of it. From here you can format your new array and copy the contents of the failed drive to md0 (by using the handy tool mentioned above). Once that is complete I just 'raidhotadd' the new drive to md0 and then the array can rebuild.

BEFORE YOU TRY ANYTHING LIKE THIS PLEASE BACK UP!!!

and also check out the Boot/Root RAID How-To on linuxdoc.org!
 
Old 03-22-2002, 01:54 AM   #10
bbenz3
Member
 
Registered: Feb 2002
Location: Orlando
Distribution: Whatever I feel like at the time I install.
Posts: 284

Rep: Reputation: 30
I would suggest your first option to be using RAID 1. Using an 18.2 GB drive and splitting it into two 9.1 gb drives or using two more 9.1 gb drives and doing two sets of RAID 1 on the drives. RAID 5 unless you really need lots of backup is a little much. You will have to get into your RAID cards setup utility to check wether you can save your data or not. I know that on my RAID setup that I loose all data when I change the settings for the RAID drives. RAID 5 will also slow your system down a little from what you are used to.
The last suggestion I would make for you is that if you get a single 18.2 GB drive that you get one that has a much faster transfer rate than the 9.1 GB drives have or else you will still have some slow down as it has to act as two seperate hard drives.
 
Old 03-22-2002, 03:20 AM   #11
chuck77
Member
 
Registered: Nov 2001
Location: singapore
Posts: 120

Original Poster
Rep: Reputation: 15
my boss says forget abt getting the 18.2gb harddisk. And use an existing 9.1 gb to the current mirroring 9.1 gb RAID 1, which make it RAID 5 using the 3 9.1 gb.

Can i do tat without hurting the data ?? Is it advisable to use it RAID 5 as mail server ?
 
Old 03-22-2002, 03:50 AM   #12
bbenz3
Member
 
Registered: Feb 2002
Location: Orlando
Distribution: Whatever I feel like at the time I install.
Posts: 284

Rep: Reputation: 30
If you are trying to add the 3rd hard drive to get more space then you don't want to go RAID 5. Here is a discription of RAID 5

Quote:
If you use N devices where the smallest has size S, the size of the entire array will be (N-1)*S. This ``missing'' space is used for parity (redundancy) information. Thus, if any disk fails, all data stay intact. But if two disks fail, all data is lost.
Therefore going by that you wouldn't gain anything but more redundancy by adding the 3rd disk. I am assuming that these are the only drives in this system and that there is some software in it as well. I would suggest leaving the redunancy to jsut your data and then using the 3rd drive as your OS and other applications, or the otehr way around depending on what is crucial to you. If you want to save the data for sure then use the RAID drives for data, if you want the system to be up and ready for use always then use the RAID drives for the OS and whatever software is needed.
 
Old 03-22-2002, 05:08 AM   #13
chuck77
Member
 
Registered: Nov 2001
Location: singapore
Posts: 120

Original Poster
Rep: Reputation: 15
what would u suggest ..?? Currently using RAID 1, mirroring between two 9.1gb. I am adding another 9.1 gb to upsize the /home. Shld i use RAID 5 or carry on RAID 1 ??

If i add this 9.1 gb to the current RAID 1... would there be still any fault tolerance ??

Mark
 
Old 03-22-2002, 11:40 AM   #14
mcleodnine
Senior Member
 
Registered: May 2001
Location: Left Coast - Canada
Distribution: s l a c k w a r e
Posts: 2,731

Rep: Reputation: 45
By my math your current system looks like this...

2 x 9.1GB RAID1 = 9.1GB storage

If you add another 9.1GB drive and make a RAID5 array using the (N-1)*S
(3-1) x 9.1GB = 18.2GB -- Twice your current storage capability.

Again you need to get familiar with the Proliant RAID tools, but you should be able to barf all data to a new drive and then create a broken RAID5 array/copy data to the array/add new drive to the array.
 
Old 03-22-2002, 01:01 PM   #15
bbenz3
Member
 
Registered: Feb 2002
Location: Orlando
Distribution: Whatever I feel like at the time I install.
Posts: 284

Rep: Reputation: 30
sorry about that can't count. thanks for the correction
 
  


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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Raid Problem Fedora Core 3, RAID LOST DISKS ALWAYS icatalan Linux - Hardware 1 09-17-2005 03:14 AM
Perc3Di SCSI RAID + Adaptec 2810SA RAID = Fatal Grub Error? LinuxOnTheEdge Linux - General 2 03-19-2005 02:35 PM
Can fake raid be converted to linux software raid? jmacdonald801 Linux - General 3 01-30-2005 12:33 PM
does linux support the sata raid and ide raid in k7n2 delta ilsr? spyghost Linux - Hardware 10 04-16-2004 05:27 AM
moving system from ide software raid to new box with scsi raid ftumsh Linux - General 0 10-28-2003 09:34 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

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