Slashdot Mirror


Which RAID for a Personal Fileserver?

Dredd2Kad asks: "I'm tired of HD failures. I've suffered through a few of them. Even with backups, they are still a pain to recover from. I've got all fairly inexpensive but reliable hardware picked out, but I'm just not sure which RAID level to implement. My goals are to build a file server that can live through a drive failure with no loss of data, and will be easy to rebuild. Ideally, in the event of a failure, I'd just like to remove the bad hard drive and install a new one and be done with it. Is this possible? How many drives to I need to get this done, 2,4 or 5? What size should they be? I know when you implement RAID, your usable drive space is N% of the total drive space depending on the RAID level."

16 of 898 comments (clear)

  1. Re:search the fscking google by boarder8925 · · Score: 3, Insightful
    but why didn't you just do a google search rather than asking 1.5million slashdotters?
    Because it's better to ask people's opinions and stories than to simply read pages.
  2. My choice by Simon+Carr · · Score: 4, Insightful

    If I could, I'd get 2x 250GB HDDs in a RAID1 (promise controllers are good for this), and a third 250GB for a cold backup of all my data that syncs weekly.

    Raid's great, but an rm -rf is still an rm -rf, thus the third drive :)

    --
    -- The unsig...
  3. Software RAID? by Suydam · · Score: 5, Insightful

    Have you thought about software RAID? Before everyone jumps down my throat, I realize that it's slower than hardware RAID...but, here is my rationale for using it:

    1) You don't need drives that are the same size.
    I've done hardware RAID, had a drive fail 2 years down the road and not been able to find an 18GB SCSI drive to re-insert to the array. That has the potential to jack your entire array. With software RAID, you buy a 36G drive, partition it so that 1 partition fits your array, and off you go

    2) It's a personal file server, so speed is less important than cost (i'm guessing). With software RAID you can mix all sorts of wonderous things together. IDE drives from the basement, SCSI-320 drives you stole from work and nearly everything in between. It's for flexible, and has no associated controller cost.

    3) It's easy as heck. You can configure it in Disk Druid/fdisk, and it works quite easily in any major distribution (I've done it in Slack, Debian, RH, Fedora and Mandrake).

    The major downside is that you cannot (as least I don't know how to) hot-swap drives. But again, this is a personal file server. Spend your money on pizza and beer, screw the SCA hot-swap drives that are going to cost you an arm and a leg.

    That's just my $0.02...flame away

    --


    Werd.
  4. Re:Just remember the RAID song by strictnein · · Score: 4, Insightful

    You forgot the final four lines to that song!

    RAID 0, you need a hero,
    RAID 1, is equally fun,
    but RAID 5 keeps you alive!


    RAID 5 - better keep an extra drive
    Or you'll be down until the replacement arrives
    RAID 10 is better my friend
    Work doesn't stop when the drive comes to an end

  5. Re:Raid 1, 0+1, or 5.. by afidel · · Score: 3, Insightful

    RAID 0+1 sucks, it can only sustain a single drive failure. RAID 10 (1+0) can sustain multiple drive failures without data loss under the right circumstances. The cool thing about RAID 10 is that you can use a pair of mirrored drive sets and use software to do the striping at near zero cost and you get controller redundancy! (most people who do RAID 10 will use the built in RAID1 controller and an addon two port RAID controller)

    --
    There are 4 boxes to use in the defense of liberty: soap, ballot, jury, ammo. Use in that order. Starting now.
  6. Re:Software raid by ryanwright · · Score: 3, Insightful

    Software raid is plenty fast for a personal fileserver. It's not like you'll have a hundred users on it at a time. Unless you have an ancient CPU, you'll be fine.

    --
    -Ryan, with the unoriginal sig
  7. consider other risks too by BeerMilkshake · · Score: 3, Insightful
    RAID 1+ can protect you from a failure of any one disk. That's great, because that is the most probable fault condition.

    However, what happens if your place has a fire, gets vandalized, or a burglar takes off with your server(s)?

  8. Re:search the fscking google by cybernautix · · Score: 3, Insightful
    No offense intended, but why didn't you just do a google search rather than asking 1.5million slashdotters?

    Because Google turns up 1,400,000 hits of mostly crap in 0.11 seconds. When you need advice, do you ask a librarian, or a group of trusted friends? By your logic, we should trust the company that wants to sell us RAID cards. I'd rather ask people that use RAID products, not sell them.

  9. Re:search the fscking google by Milo_Mindbender · · Score: 4, Insightful

    >No offense intended, but why didn't you just do a google search rather than asking 1.5million slashdotters

    No offense intended here either, but why is it that every time someone posts an "ask slashdot" question someone else feels compelled to complain (and occasionally get downright rude) about why the user didn't just "google it"?

    Google will get you articles and advertisements, true, but most of the time what the questioner is really after is peoples OPINIONS and EXPERIENCES.

    If I post a question like "what's the best backup program you've used on linux" I'm looking for 1.5 million slashdotters EXPERIENCES with backup programs...a google search will get me a list of programs and some reviews if I'm lucky, but that's no substitute for hearing from a bunch of people who've actually DONE or USED something.

    Hearing from a few hundred or thousand responders is a better recommendation than a "C-NET" review anyday!

    --

    Milo from Kangaroo Koncepts

  10. Re:search the fscking google by flacco · · Score: 5, Insightful
    I have had ZERO problems with my server quality SCSI drives that still have 2 years left on their 5 year warrenty.

    there are two kinds of people: those who have had hard drive failures, and those that will have hard drive failures. i don't care if jesus h fucking christ himself blessed your hard drives.

    I suggest looking at getting reliable drives before looking at a RAID solution.

    and, if the poster is looking for the more-realtime-than-backup-restore reliability as he indicated, i suggest he look at raid BEFORE looking at drive quality.

    the name of the game is redundancy. a RAID array of cheap drives (let's remember that it stands for Redundant Array of Inexpensive Disks) *is* more likely to have a single hard drive failure - but it's recoverable. however, it's far less likely to have multiple, simultaneous drive failures on the same day (unrecoverable) than your one, expensive, better-quality hard drive is likely to have a single failure - which is unrecoverable.

    --
    pr0n - keeping monitor glass spotless since 1981.
  11. Re:search the fscking google by jdavidb · · Score: 4, Insightful

    I'm glad he asked. I benefit from reading the discussion, including the various tangents. This gives me another opportunity to consider using RAID at home and benefit from some "war stories" folks might offer. My needs aren't exactly the same as his, but fortunately people never stick to the exact question asked, anyway. The free information people give out is invaluable, especially the stories of personal experiences and descriptions of people's personal setups at home.

  12. Good God, you're dense... by EnglishTim · · Score: 3, Insightful

    What you seem to fail to grasp is that your 5 year SCSI guarantee does not guarantee you that the disk will not fail within 5 years.. It merely means that the disk is unlikely to fail in that time and they will give you a free replacement if it does.

    Therefore, if your data is important you won't just trust that an unlikely event won't happen - you'll assume that it will happen and make sure that it won't affect the integrity of your data.

    Therefore you'll be using RAID and preferably regular backups whatever you do. This is what ensures your data integrity, not the reliability or otherwise of your drive.

    After that, it's a case weighing performance, the cost (in money, manpower and downtime) of replacing a broken drive and the cost of setup against each other, and this is where it starts to make sense to use IDE drives for RAID:

    For instance, say you've got 5 IDE RAID array. Over the space of say, five years you end up having to replace three of the drives - that's eight IDE drives you've had to buy

    You also do the same thing with SCSI drives, and luckily none of them break - that's 5 SCSI drives all in all.

    Now, say the IDE drives cost $100 each compared to $500 for the SCSI drives. You've spent $800 in the IDE case compared with $2500 in the SCSI case. There was no difference in the safety of your data but the SCSI one cost three times as much.

    Therefore to choose SCSI, you'd *really* want to get that extra little bit of speed, which to be honest is more likely to be limited by the network to your server anyway...

    So, to recap - assuming your data is valuable to you, the choice between SCSI and IDE has nothing to do with the disk reliability because you'll be relying on some other systems (RAID and backups) for your reliability anyway.

  13. Rsync every night by derphilipp · · Score: 3, Insightful

    I would suggest you dont buy a RAID System: Heres what I do: I got 3 harddrives - one small one with a tiny linux installation on it and 2 harddrives of the same size for data. Every night Drive 1 is rsynced to Drive 2 and unmounted. Now Drive 2 will be mounted instead of Drive 1. The next Night Drive 2 will be rsynced to Drive 1 and so on. The great advance: If you accidentally delete a file, you have untill midnight to restore it without any hazzle.

    --
    Spelling mistakes: My is english spoken not tongue of mother.
  14. Re:Software raid by mnemoth_54 · · Score: 4, Insightful

    IMHO, the real value in SW RAID is the hardware independence.

    If your HW RAID controller dies, you have to get another one of the same controller, and hope that you can re-import your config w/o losing all your data. If your running SW RAID and your SCSI/IDE controller dies, you can replace it w/ whatever is cheap/available at the time. As long as the failure itself didn't bork your data, you shouldn't have to do much, if anything, to see your data again.

    If you can afford to get the top of the line SCSI RAID controller from a good vendor it's probably the better option, but if cost is an issue, IDE SW RAID is the only way to go.

  15. Re:Software raid by puke76 · · Score: 4, Insightful

    No one uses software RAID for performance, although the performance is good compared with the cheap 1+0 cards available.

    The real advantage of software over hardware RAID is that you don't need to keep a spare RAID card around. With hardware RAID, when your RAID card fails you'll need exactly the same make & model card to read your data.

    With Linux software RAID, you can read the drive set on any system with the raid modules.

  16. Re:Software raid by minion · · Score: 3, Insightful

    I know of people who use 3ware cards for large RAID-5 servers, but only use the 3ware cards as "dumb" IDE controllers, and leave the RAID-5 handling to SW-RAID. The reason? Their benchmarks indicate that this is significantly faster.

    First off, 3Ware cards cannot be used as "dumb" IDE controllers - they only support logical drives - creating single drives is not possible, nor is leaving unassigned drives.

    Second, Software raid will always suck for one big reason: A drive fails, your system locks up.
    I have not seen any software based controller (promise, Silicon Image, High Point) or complete software based solution (Windows 2000/2k3 server's RAID, or Linux's md raid) on standard IDE controllers stay alive after a drive fails. It always takes the box down with it.

    When you buy a hardware based RAID solution, the controller handles the drive failure gracefully, which keeps the machine running. "Dumb" IDE controllers don't know they're raided (they are dumb after all), so when a drive fails, they freak out.

    3Ware makes a TRUE hardware based RAID solution that is intelligent enough to email you when a drive fails. Their 2 channel cards (SATA and PATA) are roughly $100, and their 4 Channel cards (RAID-5-able) are $250 and $350. Its well worth the money.

    I've not used the LSI Megaraid SATA controller yet (I plan to); I've had good luck with their cards for SCSI RAID, and they carry a slightly cheaper price tag than the 3Ware cards.

    No, I do not work for 3Ware - I think suggesting software RAID to anyone is a bad idea. I've seen people loose data with promise controllers, which are nothing more than glorified IDE controllers with software doing the RAID functionality. Software RAID is BAD.

    --

    -- If we don't stand up for our rights, now, there will be no right to stand up for them later.