Slashdot Mirror


Basics of RAID

Doggie Fizzle writes "RAID has been common in business environments for ages, and is now becoming more viable and popular for personal computers. This article focuses on the the basics of RAID, and spells things out for beginners or tech veterans. From the article: 'The benefits of RAID over a single drive system far outweigh the extra consideration required during installation. Losing data once due to hard drive failure may be all that is required to convince anyone that RAID is right for them, but why wait until that happens.'"

27 of 242 comments (clear)

  1. Holy Ads, bat-man! by temojen · · Score: 4, Insightful

    That's an awful lot of ads for a re-hash of well-known info. Are the editors sure this is frontpage worthy? It looks like a blatant attempt to get page views to me.

    1. Re:Holy Ads, bat-man! by Threni · · Score: 4, Informative

      Looks ok to me - not a single one. Want my AdBlock list?

    2. Re:Holy Ads, bat-man! by Nuttles1 · · Score: 3, Informative

      Ads...I see them once in a while, but they are quickly added to my adblock list. Really, should tech saavy /. readers see very many ads at all? I think the poster of the parent is a wanna be geek. Ok, enough sluphing off, back to work...

    3. Re:Holy Ads, bat-man! by patmanDC · · Score: 3, Informative

      Forget all that. This is an excellent article on RAID.
      http://arstechnica.com/paedia/r/raid-1.html

  2. raid by Anonymous Coward · · Score: 4, Funny
  3. Excellent RAID reference by Logic+Bomb · · Score: 4, Informative

    There's an excellent guide to RAID levels (with pretty diagrams and such) at http://www.acnc.com/raid.html

  4. Or... by Joe5678 · · Score: 4, Insightful

    A source of information with far better content, that isn't simply an excuse to sell ads.

    Wikipedia

  5. Current HDD prices... by Manip · · Score: 3, Interesting

    Depending on the your budget here in the UK you can get an 80Gb HDD for around £35, so split over some time you should be able to afford two (or an extra one if you already have one). This is a good enough reason for anyone to try RAID.

    I myself currently have it setup to mirror my data across two 80Gb drives... Four months ago one of the hard disks died (funny buzzing sound, no access) but the manufacturers three year warranty was still valid, so I returned the drive to them for a free replacement. I received the replacement drive and shoved it in, mirrored the data back onto this new second drive and continued as before. If I hadn't have had this setup that data could have been permanently list. It also saves me from writing ten DVDs to store that much.

    1. Re:Current HDD prices... by tool462 · · Score: 5, Insightful
      You may already know this, but it's worth mentioning to others who read this that may not. Your scheme works great to back up your data in the event of hardware failure, but in the event a virus or errant program corrupts the data, you'll still be wanting the DVD backups. That's because if a virus corrupts some files, it's doing the same thing on both drives, rendering the back up useless. RAID mirroring handles only one very specific type of data security. It's a very useful one, but it's important to understand the limitations or you can get bitten hard.

      Alternatively to DVD backups, you can also sync up your data on a regular basis to an external hard drive. This doesn't protect you if your house burns down, like DVD backups kept in a safety deposit box would do, but it does help you restore lost data after it gets corrupted.

      Ultimately, all these solutions require varying amounts of money, time, and effort, so you just have to decide what level of security you require and what you are willing to pay for it.

    2. Re:Current HDD prices... by ScrewMaster · · Score: 4, Insightful

      Ultimately, what it comes down to is that mirroring merely makes the hardware more reliable, it is not a backup technique.

      --
      The higher the technology, the sharper that two-edged sword.
  6. Give me RAID 5 by hobotron · · Score: 3


    Seriously, SATA hotswappable RAID 5, put an onboard controller on next gen motherboards, I dont care if its crappy compared to an expansion card, and you will have my money. Yeah we have RAID 0, 1 , 0+1, but no onboard commercial RAID 5 solution in mainstream motherboards. I know its more expenisve, but its also more efficient, and with every failed HD common users encounter the market gets bigger.

    --
    There is truth in humor.
    1. Re:Give me RAID 5 by kayak334 · · Score: 3, Informative

      I've been using this board from Asus for about 6 months with onboard SATA RAID5. It cost $120 from Newegg.com when I got it, if my memory serves me.

    2. Re:Give me RAID 5 by nmos · · Score: 3, Informative

      These days I think software raid is really the way to go, at least in comparison to the raid built into consumer grade raid cards. With software raid you should be able to move your disks to a working computer and boot up with a Knoppix CD and access your data if you have to. You can also raid individual partitions rather than entire disks. You could make a small non-raid boot partition on each disk which you sync regularly plus a larger data partition which becomes part of the raid.

      The above applies to Linux, I don't think the non-server editions of Windows can do anything but raid 0 (maybe raid1?). Possibly a BartsPE CD could be used to recover a failed Win raid array.

  7. Another helpful link by Toasty16 · · Score: 4, Funny

    Here is a link that explains the basics of computer hardware; I think that it's a good companion piece to the RAID article: http://www.angelfire.com/rings/judy_patch/

  8. RAID for "personal computers"? but why? by Rosco+P.+Coltrane · · Score: 4, Insightful

    Okay I guess it appeals to geeks and fancy computer modders and all. But really, when it comes down to it, a decent main hard-disk, a tray in the second bay for backup hard-disks, and a reasonable backup regimen that people keep up is all a "personal" computer user needs.

    Personally, I have 3 backup hard-disks, one that keeps a "clean" base system that I update every 6 months or so, and 2 that I do full differential backups on every 3 days. The "clean" hard-disk is kept off-site, and a script tells me when to do the backups on the other 2. And for very very important files, I just write them on a CD on the spot.

    With that, I've yet to lose a single file since I started using Linux in 93 or 94. My solution is cheap and doesn't involve fancy raiding. And I'm quite sure I overdo it, most people could do just fine with one main hard-disk, one backup hard-disk and a little discipline.

    --
    "A door is what a dog is perpetually on the wrong side of" - Ogden Nash
  9. Still a single point of failure by L-Train8 · · Score: 5, Interesting

    With RAID, you still have a single point of failure. Instead of it being your hard drive, it is now your RAID controller. So what is the advantage?

    Since a RAID controller doesn't have moving parts, is it less likely than a hard drive to fail?

    --

    Don't forget that Friday is Hawaiian shirt day.
    1. Re:Still a single point of failure by Rick+Zeman · · Score: 3, Insightful

      With RAID, you still have a single point of failure. Instead of it being your hard drive, it is now your RAID controller. So what is the advantage?

      You get a new one under warranty or buy one...and your data is still there. If your drive dies and you get a new one your data's toast unless you have megabucks for Drive$aver$.

    2. Re:Still a single point of failure by PhotoBoy · · Score: 3, Informative

      I've had my data corrupted by a dodgy controller... twice. I've been having terrible luck with the nvRAID provided on nVidia nForce 4 motherboards. Twice now the machine has locked up and on rebooting the RAID array is reported as damaged and a drive is missing from the array. A bit of Googling has revealed it's a common problem.

      Fiddling around in the BIOS disabling and reenabling RAID makes both disks show up again but putting them back into a RAID array seems to do no good as Windows always claims files are missing after doing this. If I reinstall Windows my data is always all still there in perfect condition, the hassle of reinstalling Windows and my apps is a pain though. So it's not totally corrupted, but enough to be a complete bitch.

      My feeling on RAID on the desktop is that it's a good idea but at least in nVidia's case it's being done on the cheap and is not totally stable. That said Intel's RAID controllers are superb and I'd use one anyday if it weren't for the vast amounts of heat and inferior performance of the P4.

  10. SCSI RAID Yes, IDE RAID No by Anonymous Coward · · Score: 5, Funny

    IDE HDD Talking to IDE Controller:
    HDD: I'm gonna need more time for that write
    Contr: Yeah OK, go ahead good buddy
    Contr: What's up?
    Contr: What's up?
    Contr: Error: Drive controller timeout error

    SCSI HDD Talking to SCSI Controller:
    HDD: I'm gonna need more time for that write because I found a bad block
    Contr: Yeah OK, go ahead and remap that bad boy
    Contr: What's Up?
    HDD: Need more time to map that bad block
    Contr: Yeah OK, go ahead
    HDD: All done, grabbing the next command in the queue

  11. Nice theory.... by dbc · · Score: 3, Informative

    ... but how often do personal backups actually happen? I'm one of those guys that has been taking home backups seriously for a long time, and has a collection of obsolete tape units to prove it. And backups still do not happen often enough if it requires me handling tape.

    Let's face it, discipline is a drag, that is why at work IT people are paid to schlepp around stacks of locked cases full of back up tapes to be shipped off site.

    So... for my home file server, I went to RAID mirroring, with a 3rd drive in a drawer. A mount-copy-umount chron job copies to the drawer-drive. Drawer-drive gets swapped and taken off site "when I think of it". Because... RAID only protects you from falling over hard drives. It does not proctect you from:

    1) Ooops, I wish I hadn't deleted that.
    2) Gack! My house just burned down! And took 10 years of tax data with it!
    3) Power supply goes wonky, causing both drives to scribble random scorfulentness everywhere.

    A home RAID system does not need to be expensive. Who needs hot swap? Use cheapo PATA drives. A few hours of down time for the wife and kids is OK. It doesn't take a big, bad CPU, and software RAID works great.

  12. Windows RAID Over Firewire - Registry Setting by meehawl · · Score: 4, Interesting

    For those who have run out of internal space in their boxes, and who don't have external SATA or expensive hardware boxes, you can run RAID over Firewire.

    The problem, however, is that out of the box Windows refuses to "promote" an external disk to dynamic, which is required on all post-NT4 rigs for RAID.

    The solution is to add a semi-documented Registry flag, EnableDynamicConversionFor1394 .

    HOW TO: Convert an IEEE 1394 Disk Drive to a Dynamic Disk Drive in Windows XP

    Couple that with a cheap 4-bay firewire JBOD box and any spare old enclosures and you are set!

    I run 2TB in various RAID configs on my Windows server (main and near-line storage). Have done so since 2002. No problems with the external boxes. The support for external firewire RAID is a little gnarly in Windows 2000 - volume must be mounted as a named virtual directory and cannot be mounted as a letter drive. Later Windows give you both options.

    --

    Da Blog
  13. There's a lack of real information about RAID by mollog · · Score: 4, Informative

    I worked for years in development of RAID solutions for a major manufacturer. One of the problems with selling RAID solutions is the lack of understanding, or the prejudice and bias of the people who were supposed to be specifying and buying the hardware.
    The 'tutorial' of the parent article is talking in kindergarden terms, oversimplifications and obsolete term, and overlooking some of the issues with using RAID. It's a good example of the true lack of understanding about the subject. By now, there are so many types of solutions that the term RAID hardly applies. But, even 10 years ago companies like Compaq had innovative rudundant storage solutions that were enterprise ready.

    --
    Best regards.
  14. My non-RAID backup solution.. by the_rajah · · Score: 3, Interesting

    No, it's not "Real-Time" but it suits our needs in our home office situation.

    I use "Smart Synch" software to incrementally copy the desired directories from the working computers to a "Backup server", an older Celeron machine on the network. Separate partitions are set up for each computer that is being backed up. At Midnight the incremental backups are made.

    Then at 2:00 a.m., Smart Synch running on the backup server makes another backup to a USB hard drive plugged into it. That USB HD is on a regular plug-in timer so that it only runs during the time of night when a backup to it is being done. The idea there is that the running time is limited and drive life is extended. Weekly, a backup DVD is burned and stored off site. Am I being anal? Maybe.

    --


    "Do the Right Thing. It will gratify some people and astound the rest." - Mark Twain
  15. It can be part of a backup technique... by sczimme · · Score: 4, Interesting


    Ultimately, what it comes down to is that mirroring merely makes the hardware more reliable, it is not a backup technique.

    It can be part of this nutritious breakfast^W^W backup technique:

    0) shut down the box

    1) swap a fresh/new/wiped drive for one of the mirrored drives

    2) rebuild the RAID

    3) store the just-pulled drive appropriately (e.g. off-site) along with a second identical RAID controller

    Now if the machine goes completely belly-up (as in a fire) the user can install the secondary RAID controller and the data-laden drive in a fresh machine, add another fresh/new/wiped drive, and rebuild the RAID in the new machine. This may not be terribly convenient nor perfect for everyone but it will be effective.

    Remember, kids: just because a particular technique doesn't perform a task all by itself (in this case RAID 1 != backup) that doesn't mean it can't be part of a larger picture.

    --
    I want to drag this out as long as possible. Bring me my protractor.
  16. Re:RAID virgin pops cherry... by Diag · · Score: 3, Interesting

    If that RAID array is the only place you are storing all those home movies, I highly recommend you take a backup to some other kind of media. As other people have said, the RAID controller is a single point of failure. If you lose that, you lose the lot. And there's no guarantee that another controller will be able to rebuild it. Sad but true.

    --
    Serving Suggestion: Defrost
  17. Re:how do failures behave? by JayAEU · · Score: 3, Informative

    I've been using software-RAID with ATA drives on Linux for quite some time, so I can comment on the behaviour of an array containing a faulty drive.

    First off, let me emphasize how important it is to set up proper email notification (or pager etc.) for such cases! If you don't know about the failure, you're certain to get nice phonecalls from affected users.

    If you've set up the notification system (smartd and mdadm come to mind), you'll eventually get an email saying something like "Device: /dev/hdc, ATA error count increased from 0 to 1" and that it would be a good idea to check up on the hosts syslog.

    Checking up on the system, you'll find that the average system load has increased substantially, which is due to the system trying to persuade the disk to write to a faulty sector and the software RAID having to compensate, queuing the errors.

    Depending on how often the defective sector is tried to be written to, the load can increase to values of 10 and above, rendering the system unusable. This is a good time to halt it and replace the defective drive, partition it and "mdadm /dev/md0 -a /dev/hdc1" the new one into the array, starting to resync it right away.

    This may sound really horrible, but in practise it's usually less 60 minutes (counting from receipt of the first notification email) until normal operation can resume with such a system. This is assuming you have all spare parts stored somewhere on site.

    In genereal, I've found software RAID1 and software RAID5 on Linux to be exceptionally stable. I'm also very happy about the performance, given that all I'm using is a bunch of el-cheapo ATA disks. As for reliability, I'm convinced it can't be beat in the consumers' price range, since I've seen too many consumer grade hardware RAID controllers go down in a swirl when putting more than a light load on them.

    In the enterprise, I've seen companies move to software RAID on their Linux systems, because they found out that their only 5 years old enterprise hardware won't be getting any new spare parts anymore, which includes motherboards, CPU and IO controllers. Moving to software RAID on enterprise grade SCSI stuff allows them to move the entire system to another piece of hardware simply by moving the harddisk to it.