Slashdot Mirror


RAID Vs. JBOD Vs. Standard HDDs

Ravengbc writes "I am in the process of planning and buying some hardware to build a media center/media server. While there are still quite a few things on it that I haven't decided on, such as motherboard/processor, and windows XP vs. Linux, right now my debate is about storage. I'm wanting to have as much storage as possible, but redundancy seems to be important too." Read on for this reader's questions about the tradeoffs among straight HDDs, RAID 5, and JBOD.

At first I was thinking about just putting in a bunch HDDs. Then I started thinking about doing a RAID array, looking at RAID 5. However, some of the stuff I was initially told about RAID 5, I am now learning is not true. Some of the limitations I'm learning about: RAID 5 drives are limited to the size of the smallest drive in the array. And the way things are looking, even if I gradually replace all of the drives with larger ones, the array will still read the original size. For example, say I have 3x500gb drives in RAID 5 and over time replace all of them with 1TB drives. Instead of reading one big 3tb drive, it will still read 1.5tb. Is this true? I also considered using JBOD simply because I can use different size HDDs and have them all appear to be one large one, but there is no redundancy with this, which has me leaning away from it. If y'all were building a system for this purpose, how many drives and what size drives would you use and would you do some form of RAID, or what?

29 of 555 comments (clear)

  1. Two words: RAID 0 by Richard+McBeef · · Score: 5, Funny

    Nothing can possibly go wrong. Especially if you use, like, 10 disks.

    1. Re:Two words: RAID 0 by CajunArson · · Score: 5, Funny

      Two words: RAID 0 Nothing can possibly go wrong. Especially if you use, like, 10 disks.

      For the love of God and all that's holy will someone mod this 'Funny' instead of Informative? I get the joke, but there's always somebody who won't!
      (Then again... maybe people who won't oughta make a 10 disk RAID 0, hell mod it insightful sucka!)
      --
      AntiFA: An abbreviation for Anti First Amendment.
    2. Re:Two words: RAID 0 by Stephen+Samuel · · Score: 4, Funny
      I would -- with a video camera to record the look on the users' face when they realize that their entire data store is inaccessible.

      I would, of course, be using a different 10-drive raid-0 pack to record the tragedy -- but I'd be safe because it's my disk pack (which makes it impervious to catastrophic failure).

      --
      Free Software: Like love, it grows best when given away.
    3. Re:Two words: RAID 0 by Guido+von+Guido · · Score: 4, Funny

      Crap, that reminds me--I gotta do some backups.

    4. Re:Two words: RAID 0 by Forge · · Score: 4, Insightful

      Forcing this response to the top of the page, just so visitors don't think Slashdotters don't know RAID math.

      I.e. 3 500 GB drives in a RAID 5 doesn't give you 1.5 TB. (RAID 0 dose that). With RAID 5 you only get 1 TB.

      --
      --= Isn't it surprising how badly I spell ?
  2. Do some research first? by bi_boy · · Score: 5, Informative

    Wikipedia has a very informative article regarding RAID and the various levels, in fact here it is. http://en.wikipedia.org/wiki/RAID

    --
    Chicken fried butter sticks? Do ... do you use a fork? - Black Mage, 8-Bit Theater
    1. Re:Do some research first? by grcumb · · Score: 5, Funny

      Wikipedia has a very informative article regarding RAID and the various levels, in fact here it is. http://en.wikipedia.org/wiki/RAID

      Nonsense! Everything you need to know is in the RAID 5 song:

      10 TB of disk on the wall, 10 TB of disk
      You take one down
      Pass it around
      10 TB of disk on the wall!

      10 TB of disk on the wall, 10 TB of disk
      You take one down
      Pass it around
      0 TB of disk on the wall!

      (My friend Rich actually came up with this. I like him too much to slashdot him, though.)

      --
      Crumb's Corollary: Never bring a knife to a bun fight.
  3. Duh by phasm42 · · Score: 5, Insightful

    I'm wanting to have as much storage as possible, but redundancy seems to be important too.
    Given that RAID 0 and JBOD give you no redundancy, RAID 5 is the only one you listed that has redundancy.

    That said, RAID is not a replacement for proper backup. RAID is just a first line of defense to avoid downtime.
    --
    "No one likes working in a hamster wheel, and your shop smells of cedar shavings from here." - TaleSpinner
    1. Re:Duh by ozmanjusri · · Score: 4, Funny
      you are in favor of ZFS and you recommend it to others, even though you haven't tried it yet.

      Hell yeah.

      Cool but untested tech is always best recommended to others before you try it. Preferably LOTS of others.

      --
      "I've got more toys than Teruhisa Kitahara."
  4. Don't worry about losing your media files by NotQuiteReal · · Score: 5, Funny

    You can just download them again, right?

    --
    This issue is a bit more complicated than you think.
  5. Get what you need for *NOW* not for later by CPE1704TKS · · Score: 4, Insightful

    This is what you do: buy 2 drives exactly the same size and mirror them. End of story. If you're worried about a blown raid controller, then buy another hard drive and stick that on another computer and run a weekly cron job to copy everything. Right now you can get 500 GB hard drive for about $150. Get two of them and mirror them. (If you need more than 500 GB I would highly suggest encoding your porn into a different format than MPEG2) By the time you run out of space, you will be able to get 1 TB drives for about $150. Migrate over to the 2 1 TB hard drives. Repeat every few years.

    With computers, the stupidest thing you can do is spend extra money to prepare for your needs for tomorrow. Buy for what you need now, and by the time you outgrow it, things will be cheaper, faster and larger.

    By the way RAID 5 is a pain in the ass unless you have physical hotswap capability, which I highly doubt.

    1. Re:Get what you need for *NOW* not for later by QuesarVII · · Score: 4, Interesting

      By the way RAID 5 is a pain in the ass unless you have physical hotswap capability, which I highly doubt.

      With recent kernels, you can hotswap drives on nvidia sata controllers (common onboard). I believe several other chipsets had support for this added in recent kernels too. Then you can swap drives live and rebuild as needed.

      One more important note - if you're using more than about 8 drives (I personally recommend 6), I would use raid 6 instead of 5. You often get read errors from one of your "good" drives during a rebuild after a single drive failure. Having a 2nd parity drive (that's what raid 6 gives you) solves this problem.

  6. Media Server? by foooo · · Score: 4, Funny

    Media Server: n. A euphamism for digital porn storage.

    1. Re:Media Server? by ScrewMaster · · Score: 4, Funny

      Media Server: n. A euphamism for digital porn storage.

      Only if you make all your network file shares pubic.

      --
      The higher the technology, the sharper that two-edged sword.
  7. Linux, raid5, LVM on top, can use extra capacity by Spirilis · · Score: 4, Informative

    With Linux you can create a RAID5 md device, say /dev/md0, then run LVM on top of that (pvcreate /dev/md0 ; vgcreate MyVgName /dev/md0) and use that to carve out your storage. The key here is to create partitions on each drive, eg filling up the entire disk, and create your raid5 with those.

    If you buy 1TB drives further down the road, here's what you do- With each disk, create a partition identical in size to the partitions on the smaller disks, then allocate the rest of the space to a second partition.
    Join the first partition of the disk to the existing RAID set. Let it rebuild. Swap the next drive, etc. etc. Then once you've done this switcharoo to all the drives, create another raid set using the 2nd partition on your new disks--call it /dev/md1. So now you have /dev/md0, pointing to the first 500GB of each disk, and /dev/md1, pointing to the 2nd 500GB of each disk.

    Take that /dev/md1 and graft it onto your LVM volume group. (pvcreate /dev/md1 ; vgextend MyVgName /dev/md1). Now your LVM VG just doubled in size, and you can use all that new space. Whatever you do though, do NOT create any "striped" logical volumes (the "-i2" option to lvcreate; LVM's Poor Man's RAID0, basically) because you will suffer terrible performance, since you'll be striping across different volumes on the same physical spindles (a big no-no for any striped configuration). But if you use the extra space by creating new filesystems or growing existing ones, you shouldn't see any trouble.

    Just be sure that any replacement drives you have to buy... you must partition them out similarly. I'd recommend pulling back on the partition sizes a bit, maybe 5%, to account for any size differences between the drives you bought right now and some replacement drives you may purchase later on which might be slightly lower in capacity (different drive manufacturers often have differing exact capacities).

    --
    the real at&t mix
  8. Linux, RAID 5, md by Pandaemonium · · Score: 5, Informative

    Go RAID5. RAID5 = Hardware failure resilience + maximum storage.
    Go Linux. The Linux MD driver allows you to control how you RAID- over disks or partitions. there are advantages. We will discuss.

    First, don't get suckered into a hardware RAID card. They are *NOT* really a hardware card- they rely on a software driver to do calculations on your CPU for RAID5 ops. Software RAID is JUST AS FAST. Unless you blow the big bucks for a card with a real dedicated ASIC to do the work, you're fooling yourself.

    Now, you want to go Linux. By using the md driver, you can stripe over PARTITIONS, and not the whole disk. By doing this, you can get MAXIMUM storage capacity out of your disks, even in upgrades.

    Say you have 3 500GB disks. You create a 1TB array, with 1 disk as parity. On each of these disks is a single partition, each the size of the drive. Now, you want to upgrade? SURE! Add 3 more disks. Create three partitions of EQUAL size to the original, and tack it on to the first array. Then, with the additional space, you can create a WHOLE NEW array, and now you have two seperate RAID5's, each redundant, each fully using your space.

    Another advantage with MD is flexibility. In my setup, I use 5x 250 drives right now. On each is a 245GB partition, and a 5GB partition. I use RAID1 over the 5's, and RAID5 over the rest. Why? Because each drive is now independently bootable! Plus, I can run the array off two disks, upgrade the file system on the other 3, and if there's a problem, I can always revert to the original file system. So much flexibility, it's not even funny.

    I recommend using plain old SATA, in conjunction with SATA drives, and just stick with the MD device. For increased performance, watch your motherboard selection. You could grab a server oriented board, with dedicated PCI buses for slots, and split the drives over the cards. Or, you can get a multiproc rig going, and assign processor affinity to the IRQ's- one card calls proc 1 for interrupts, the other card calls proc 0. If you have multiple buses, then performance is maximized.

    The last benefit? Portability. If your hardware suffers a failure, then your software RAID can move to any other system. Using ANY hardware RAID setup will require you to use the EXACT same card no matter what to recover data. Even the firmware will have to stay stable or else your data can be kissed goodbye.

    Windows? Forget about it.

    Good luck!

    1. Re:Linux, RAID 5, md by Pandaemonium · · Score: 4, Informative

      It'll take some reading and combining from multiple sources. I've been doing it for a few years, combined with a handful of upgrades, plus setting it up as an iSCSI backend- all of that lent to the pool of greyness in my head.

      I recommend Gentoo to do this with. Other distro's dont include the latest mdadmtools required to manage and migrate RAID5 md devices. Ubuntu is catching up, I believe.

      Here are some places to start:

      http://gentoo-wiki.com/HOWTO_Gentoo_Install_on_Sof tware_RAID
      http://www.gentoo.org/doc/en/gentoo-x86+raid+lvm2- quickinstall.xml
      http://linas.org/linux/Software-RAID/Software-RAID .html
      http://linas.org/linux/raid.html
      http://evms.sourceforge.net/
      http://www.tldp.org/HOWTO/Software-RAID-HOWTO.html

  9. How the hell did this make the front page? by Erwos · · Score: 4, Insightful

    I really can't believe this made the front page. The questions are badly written, and the question itself could have been answered with some basic Internet research. RAID isn't an esoteric topic anymore, folks!

    This place has really gone downhill. I thought Firehose was supposed to stop stuff like this, not increase it!

    Anyways, just to be slightly on topic: there's no one answer to this question. It depends on your budget, your motherboard, your OS, and, most importantly, your actual redundancy needs. This kind of thing is addressed by large articles/essays, not brief comments.

    --
    Plausible conjecture should not be misrepresented as proof positive.
  10. Re:RAID by alexandreracine · · Score: 4, Funny

    Does something in the harddrive pop up and tell you?


    Actually, the failed hard disk will personnaly walk to you.
    --
    No sig for now.
  11. Nuh-Uh by rustalot42684 · · Score: 5, Funny
    You're wrong. What if:
    • a psychopath hires a hitman to destroy his media center? The hitman comes in, destroys all 10 drives with a large axe, and leaves.
    • a crazed velociraptor claws open the case and destroys all 10 drives, then mauls him.
    • His power supply suffers extreme spontaneous combustion and explodes all 10 drives.
    • Steve Ballmer is angered by that fucking pussy Eric Schmidt and throws a chair which flies across the country and smashes into his computer.
    • a meteor crashes into the house and destroys all the drives, but leaves everything else untouched.
    • he becomes prone to sleep-sysadmining and accidentally formats them all.
    • His house is the target of a nuclear attack. (Didn't think of that one, did you, bitches?)

    Raid 0 won't protect you, man!
    1. Re:Nuh-Uh by Wite_Noiz · · Score: 5, Funny

      They told me 0 is the new 1!

      Freaky, that's the exact excuse I used for failing my CS binary course
  12. Performance requirements by merreborn · · Score: 5, Insightful

    I am in the process of planning and buying some hardware to build a media center/media server


    The advantages of RAID 0 versus RAID 1 versus RAID 5 have already been covered in detail, here, and in many books and websites.

    However, allow me to address the issue of how they relate to a media center:

    Firstly, when you say "media center/media server", do you mean "I just want to build myself a kickass Tivo?", or do you mean "I want to serve video for everyone in my frat house, simultaneously?"

    If the former, consider that Tivos ship with 5500 RPM drives for several reasons:
    1) They're cheaper than faster drives
    2) They run cooler than faster drives
    3) They run quieter than faster drives
    4) They use less power than faster drives
    5) They're more than fast enough for streaming a single video to your TV while recording another

    Long story short, if you're just building a "free" Tivo with a kickass drive array, performance is *not* an issue. Keep in mind that if you're building a set-top box of sorts, the low heat and low noise features are *very* big benefits. You probably want RAID 5, and/or JBOD.

    If, however, you're planning on serving video to more than a handful of stations simultaneously, you may need to consider performance. This is a vote for RAID 0 and/or RAID 10.

    Now, the second axis: How important to you is this data? Really?

    I've got over 300 gigs of drive space on my Tivo. Most of it is the last two weeks of television reruns (Scrubs, 6 copies of last Thursday's Daily Show, etc.), movies I recorded but won't watch, etc. There are about 10 gigs (3%) of video on there that's been saved for a few months, and frankly, I couldn't tell you a single thing on there that I'd miss if my drives went belly up tomorrow. So: do you *really* need to save all those Seinfeld reruns on a highly-redundant storage array? How *much* of the stuff on the server do you really need to keep?

    Assuming it's less than 50% (in the Tivo scenario, it probably is), consider using JBOD for most of your storage, and maintaining a single backup drive, or small backup drive array. Or just backing up the good stuff to DVD.

    In summary: If you're just building a Tivo, you probably don't really need the performance, or redundancy that RAID offers.
  13. Re:Is Google broken today? by gEvil+(beta) · · Score: 4, Funny

    Seriously though, how hard is it to type "RAID" into Google?

    Not hard at all...

    --
    This guy's the limit!
  14. Infrant X-RAID is the solution by JoeShmoe · · Score: 4, Interesting

    Infrant (wow, just checked their website and it looks like they were bought by NetGear) created their own version of RAID that specifically addresses the issue of capacity and expansion. It's a nice transitional blend from RAID-1 to RAID-5 and does offer the ability to increase the total capacity (albeit with a lot of drive swapping).

    Buy an Infrant RAID with the two biggest drives you can afford. Let's say two 750GB drives or whatever's on sale that week. It starts out acting as RAID-1 with the drives mirroring. So you have 750GB of "safe" storage. Now you add another 750GB drive. Okay, now you have 1500GB of storage with one of the drives acting as parity drive (RAID-5). Add a fourth drive and how you have 2250GB of "safe" storage. Now you come back and just replace one of the original 750GB drives witha 1TB drive. Do you get extra capacity? No...not initially. But the drive is fully formatted and integrated as X-RAID. What this means is that eventually after you have piecemeal or onesie-twosie upgraded all four drives, suddenly the X-RAID resizes itself to match the capacity of the new drives with no transfer or downtime. So in theory if you wanted to upgrade your RAID, buy four 1TB drives, swap them out one at a time (letting each one rebuilt the array) and then at the end you'll have 3TB RAID isntead of the old 2250GB RAID and all the data intact.

    http://www.infrant.com/products/products_details.p hp?name=About%20X-RAID

    I have three ReadyNAS units and love them to death. They are a little fussy about drive temperatures (I guess that's a good things but, I may get like 40 emails during the course of the day about it and it's not like I'll drive home from work to turn up the A/C in my house). My only sadness is that Infrant doesn't have a higher capacity unit than four drives (oh please oh please, eight drives with a RAID-6 type protective hotspare in one nice rack-mountable unit would be my ultimate dream).

    -JoeShmoe
    .

    --
    -- I wonder which will go down in history as the bigger failure: the War on Drugs or the War on Filesharing
  15. Re:KISS it by Wonko+the+Sane · · Score: 5, Informative

    Had I used RAID5, I would have 1,500 GB and it would not have been easy to upgrade. I have ran out of room and I am adding a couple of 750 GB drives.
    If you use a linux server and LVM, losing one drives loses everything.
    That's why you use hardware RAID. A good card will allow you to swap out drives and rebuild, or add new drives to the array, without ever needing to unmount the anything.

    3ware made some pretty good cards.
  16. RAID 5 is damned easy. by SanityInAnarchy · · Score: 4, Interesting

    This is what you do: buy 2 drives exactly the same size and mirror them. End of story.

    Until another few years go by and you want to buy more storage. Then you're basically stuck with doubling it, clumsily -- or migrating away and essentially throwing out the old drives.

    RAID 5 is better in the short run. Even with a three disc array, you're getting more storage for your money, and you can always restripe it onto a fourth disc.

    (If you need more than 500 GB I would highly suggest encoding your porn into a different format than MPEG2)

    It's not all porn, and some of it is high def, in h.264. And I don't even edit videos, I just watch 'em.

    With computers, the stupidest thing you can do is spend extra money to prepare for your needs for tomorrow.

    That is true. However, I would fill a terabyte easily, and right now, I'm guessing it's cheaper to buy three 500 gig drives than two 1 tb drives.

    By the way RAID 5 is a pain in the ass unless you have physical hotswap capability, which I highly doubt.

    You highly doubt he's got SATA?

    The one thing I will say is, either have another disk (even a USB thumb drive) to boot off of, or do some sort of RAID1 across them. You almost certainly want software RAID on Linux, and you don't want to try to teach a BIOS to boot off of your array.

    --
    Don't thank God, thank a doctor!
  17. Re:KISS it by mcrbids · · Score: 4, Insightful

    That's why you use hardware RAID. A good card will allow you to swap out drives and rebuild, or add new drives to the array, without ever needing to unmount the anything.

    But the minute or so of uptime you get by not having to power down the computer is more than made up when the controller chip on your beautiful RAID controller sizzles. Using Linux software RAID lets you plug the drive(s) into another computer of a completely different chipset, boot up, and continue operations as though nothing had ever gone wrong. IMHO, this is far preferable to the effective lock-in presented to you by hardware controllers.

    For me, it's all 100% software RAID 1.

    --
    I have no problem with your religion until you decide it's reason to deprive others of the truth.
  18. Re:KISS it by sbryant · · Score: 4, Informative

    If you use a linux server and LVM, losing one drives loses everything.
    That's why you use hardware RAID.

    Eh?

    LVM and RAID are orthogonal solutions, and don't do the same thing. LVM will let you make a single larger partition out of a number of real partitions, and before anyone says that's the same as RAID0, I should point out that RAID0 is not a real RAID level (as it has no redundancy). The circumstances for failure for LVM and RAID0 (JBOD too) are basically the same - if one part fails, you will quite possibly lose the whole lot.

    As for hardware RAID, I would not necessarily recommend that either, as it moves the single point of failure without resolving the problem. Replacing a broken controller with something compatible some years down the road can prove impossible, especially with onboard controllers. There's also the fact that a number of RAID controller cards are buggy and others do most os the work in software drivers anyway! Performance is also no longer a reason to use a pure hardware RAID solution, especially now that multi-core machines are available cheaply.

    Hot-swap is still someting that requires a good hardware solution, but that's about it. Good (and well supported) RAID products cost good money too, and for most of us it's just not worth doing - better to use software RAID, buy more RAM, and pocket the rest.

    -- Steve

  19. Re:KISS it by redcane · · Score: 4, Informative

    I think the comment about CPU performance was more about the fact that with faster CPUs, the speed benefit of a hardware raid solution isn't as useful. I checked the raid6 personality on my 1Ghz celeron, and it reports that it can calculate RAID parity at a throughput of 985MB/s, using the SSE parity calculation routines. That's more than you do any useful file serving with (it has to go out on the network, and that'll saturate gigabit ethernet). The I/O performance advantage of a hardware controller doesn't seem too useful here. I'm also not sure why software raid can't benefit from the multi-channel read performance available with raid 1, 5, etc.... Why can't the software issue a read command to two drives simultaneously? The comment about a buggy raid controller obviously wasn't talking about a new controller, but one that has eventually failed. I imagine they generally become obeselete before they fail, but even so, a failed controller really sucks if you need to figure out how to get the raid stack running on another controller. I had a quick look into it at one stage, and it broke my brain trying to work out what controllers worked with what....