Take the 2-minute tour ×
Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

I just purchased an HP Proliant DL580 G2 server. I have never used RAID, but this system comes with:

Smart Array 5i Plus Controller (integrated on system board), Dual Channel, Ultra3 (supports RAID 0, 1, 1+0, and 5 across internal hard disk drives) with 64 MB of memory.
64-MB total memory for code, transfer buffers, and read/write cache on the 5i Plus Memory Module
Connector for Battery Backed Write Cache (BBWC) Enabler

And the server comes with 3x36GB hot-plug SCSI drives. I want to set this server up to host a fairly simple PHP web site and accounting system I'm creating (mysql backend), basically an intranet site. It will never get anywhere close to 36 gigs, however I do need it to be VERY reliable. I plan on running Debian 5 Lenny (php/lighttpd/mysql stacj) on it. I figured if I put all three disks in a RAID-1 mirror array, it would allow for me to have two spares in case of a drive failure. It also has redundant power supplies in case of a failure on that front. Is there anything special I should know about configuring the raid this way, or should I be going for a different type of raid? Any help would be greatly appreciated. Also, any advice on redundancy in general on a server of this type would be appreciated as well.

Thank you so much.

Not looking for super-performance out of the RAID, just mostly for redundancy.

share|improve this question

3 Answers 3

up vote 5 down vote accepted

If you use RAID1 (which is not a bad idea at all) you would end up having one spare, as the RAID1 array uses two drives (mirrored).

Another alternative would be RAID5, which requires 3 drives to start off with, leaving you no hot spares.

Both of these RAID configurations can run in degraded mode (i.e. if one of the hot drives fails), and since you have hot-plug drives, you can easily get yourself a spare and swap out the faulty drive without having to power down the server.

There is a debate possible over what is better in this case. I am not going to get involved in that debate. I would recommend you read the wikipedia page on RAID arrays and then make up your own mind.

share|improve this answer
    
wolfgangsz's right in what your two options are. I would base your decision on what server support policy you bought. If you have parts replacement for three years, go with raid 5. If you didn't get one go with raid1 + hotspare. –  cagenut Aug 18 '10 at 16:08
4  
I would say that your instinct of doing RAID1, esp if the array can mirror to all three drives, is right on the money. A RAID1 setup with either triple mirroring or a hotspare is going to be more reliable than a RAID5 with three drives as it will be able to survive a two drive failure. As far as other redundancy goes, make sure the redundant power supplies are plugged into different circuits. You probably also have multiple ethernet connections, setting up bonding/failover and plugging each into a different switch can reduce the risk of something getting unplugged or a switch failure. –  mtinberg Aug 18 '10 at 16:24

RAID1 is a good idea for a three disk setup. You would build a RAID1 array, select 2 drives, and then configure the third drive as a hot spare.

Its also worth noting that you could do RAID5, but I feel that its an overly-complex solution for your needs and comes with a read performance hit. Also you won't have room for a hot spare as it will require 3 disks.

Considering disk space isn't an issue, I'd stick with RAID1.

share|improve this answer
    
I second the mirror with one hot-spare idea, and don't forget real backup of course. –  Oskar Duveborn Aug 18 '10 at 18:18

RAID6 + hot spare is a decent compromise between storage size and redundancy. Why RAID6 and not RAID5? It's very probable that if you buy hard drives that were manufactured at roughly the same time, two of those drives would likely fail at the same time (unfortunately, I don't have the stats/probability chops to back this up.) With RAID5, you'd be boned, even with a hot spare. With RAID6, this will only inconvenience you at 3 AM.

share|improve this answer
    
Raid 6 requires at least 4 disks. I only have 3. –  muncherelli Aug 19 '10 at 14:02
    
Ah, true; didn't see that. If it's possible to do RAID1 + hot spare as the guy above suggested, that's the best option, IMO. –  Christian Paredes Aug 19 '10 at 17:21

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.