Stories
Slash Boxes
Comments

News for nerds, stuff that matters

Slashdot Log In

Log In

Create Account  |  Retrieve Password

RAID Vs. JBOD Vs. Standard HDDs

Posted by kdawson on Mon Jun 04, 2007 07:21 PM
from the media-center-storage dept.
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?
+ -
story
This discussion has been archived. No new comments can be posted.
The Fine Print: The following comments are owned by whoever posted them. We are not responsible for them in any way.
 Full
 Abbreviated
 Hidden
More
Loading... please wait.
  • by Richard McBeef (1092673) on Monday June 04 2007, @07:22PM (#19389577)
    Nothing can possibly go wrong. Especially if you use, like, 10 disks.
    • Nuh-Uh (Score:5, Funny)

      by rustalot42684 (1055008) <rustalot42684.gmail@com> on Monday June 04 2007, @07:40PM (#19389827)
      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!
    • by CajunArson (465943) on Monday June 04 2007, @07:45PM (#19389883) Journal

      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!)
    • by Guido von Guido (548827) on Monday June 04 2007, @10:35PM (#19391539)
      Crap, that reminds me--I gotta do some backups.
      • Re:KISS it (Score:5, Informative)

        by Wonko the Sane (25252) * <wts42@yahoo.com> on Monday June 04 2007, @10:50PM (#19391677) Homepage Journal

        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 [3ware.com] made some pretty good cards.
        • Re:KISS it (Score:5, Insightful)

          by mcrbids (148650) on Tuesday June 05 2007, @01:26AM (#19392645) Journal
          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.
        • Re:KISS it (Score:5, Informative)

          by sbryant (93075) on Tuesday June 05 2007, @03:03AM (#19393247)

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

          Eh?

          LVM [wikipedia.org] and RAID [wikipedia.org] 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

            • Re:KISS it (Score:4, Informative)

              by redcane (604255) on Tuesday June 05 2007, @05:52AM (#19394099)
              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....
  • by bi_boy (630968) on Monday June 04 2007, @07:27PM (#19389639)
    Wikipedia has a very informative article regarding RAID and the various levels, in fact here it is. http://en.wikipedia.org/wiki/RAID [wikipedia.org]
    • by grcumb (781340) on Tuesday June 05 2007, @01:08AM (#19392539) Homepage Journal

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

      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.)

  • Duh (Score:5, Insightful)

    by phasm42 (588479) on Monday June 04 2007, @07:28PM (#19389647)

    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.
    • Re: (Score:3, Insightful)

      That said, RAID is not a replacement for proper backup. RAID is just a first line of defense to avoid downtime.

      A good point. Consider, though, that most people don't run terabyte-size tape backup at home. It's not like it's business critical data, so RAID-5 is probably sufficient.
    • Re: (Score:3, Informative)

      ZFS could be the solution to both problems. You can mix different RAID types across the same volume (no redundancy for unimportant stuff, like /tmp, mirror really important stuff, and RAID-Z the rest). It can also do snapshots, which gets rid of a big part of the reason for needing backups on top of RAID (accidental deletion). Of course, a virus, or kernel bug could still wipe out your data, so you still need backup stuff, you're just less likely to need to pull out the backups.
    • Re:Duh (Score:4, Insightful)

      by Fred_A (10934) <fred&fredshome,org> on Tuesday June 05 2007, @03:45AM (#19393467) Homepage

      That said, RAID is not a replacement for proper backup. RAID is just a first line of defense to avoid downtime.

      RAID is just a first line of defense to reduce downtime.
  • You can just download them again, right?
    • Re: (Score:3, Insightful)

      Even though it was modded funny, it's good advice: if most of your data is not something you created on your own, either directly or indirectly as a part of using the computer, it's possible to replace it from an outside source if lost. All you really need a backup of is your unique data.
  • by CPE1704TKS (995414) on Monday June 04 2007, @07:32PM (#19389737)
    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.
    • by QuesarVII (904243) on Monday June 04 2007, @07:47PM (#19389911)
      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.
    • Re: (Score:3, Insightful)

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

      500 GB isn't that much space any more. If he's thinking of making an HDTV MythTV box, for instance, full-res HDTV streams will require a lot of space to store in real-time. It would probably be too computationally intensive to recode them into MPEG4 on the fly.
    • by SanityInAnarchy (655584) <ninja@slaphack.com> on Tuesday June 05 2007, @12:18AM (#19392195) Journal

      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.

  • by GFree (853379) on Monday June 04 2007, @07:33PM (#19389741)
    Out of all the details you're still working on, you decided to ask Slashdotters about storage?

    Why not the "windows XP vs. Linux" bit? Do you want 100 responses or 1000?
  • by foooo (634898) on Monday June 04 2007, @07:33PM (#19389743) Journal
    Media Server: n. A euphamism for digital porn storage.
  • by Spirilis (3338) on Monday June 04 2007, @07:34PM (#19389745)
    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).
  • Linux, RAID 5, md (Score:5, Informative)

    by Pandaemonium (70120) on Monday June 04 2007, @07:35PM (#19389757)
    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!
    • Re:Linux, RAID 5, md (Score:4, Interesting)

      by ptbarnett (159784) on Monday June 04 2007, @08:08PM (#19390111)
      I did exactly this for a new server recently. The only thing I would add is to use RAID 6 instead of RAID 5. That way, you can tolerate 2 drive failures, giving you time to reconstruct the array after the first one fails.

      I have 6 320 GB disks. The /boot partition is RAID 1, mirrored across all 6 (yes, 6) devices, and grub is configured so that I can boot from any one of them. The rest of the partitions are RAID 6, with identical allocations on each disk.

      There's a RAID HOWTO for Linux: it tells you everything you need to know about setting it up.

      • Re:Linux, RAID 5, md (Score:4, Informative)

        by guruevi (827432) <evi.smokingcube@be> on Tuesday June 05 2007, @10:22AM (#19397103) Homepage
        But then again, RAID6 is terrible in performance compared to RAID5 (especially on write operations) just as RAID5 is terrible in comparison on the same criteria to RAID10 (although it could be faster on non-sequential reads).

        Higher RAID-levels are not always THE ultimate solution and depending on your solution you might just have to go for a non-secure RAID level (RAID0) for large media storage with nightly snapshotting to your backup device. Usually it's not all that bad to lose a single day worth of data and if it is for these applications, use RAID10 or so. I do it as follows: get media on RAID0 (HD streams are large and fast on 10k drives) and then as soon as job is done, I copy it to the storage area which is RAID5 on cheap SATA storage and then a nightly copy to an offline backup station (HW-RAID5 with ATA100) of the data I want to keep.
  • by Erwos (553607) on Monday June 04 2007, @07:36PM (#19389769)
    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.
  • by Solder Fumes (797270) on Monday June 04 2007, @07:42PM (#19389849)
    Hardware WILL get old, WILL die, and better stuff WILL become available. So it only makes sense to recognize this and plan for it.

    Here's the way I do it (for a home storage server, not a solution for business-critical stuff):

    Examine current storage needs, and forecast about two years into the future.

    Build new server with reliable midrange motherboard, and a midrange RAID card. These days you could do with a $100-$300 four-port SATA card, or two.

    Add four hard disks in capacities calculated to last you for two years of predicted usage, in RAID 5 mode. Don't worry about brand unless you know for a fact that a particular drive model is a lemon.

    Since manufacturer's warranties are about one year, and you may have difficulty finding an unused drive of the same type for replacement, buy two more identical drives. These will be your spares in the event of a drive failure.

    When the two years are up, you should be using 80 to 90 percent of your total storage.

    At this point, you build an entirely new server, using whatever technology has advanced to at that time.

    Transfer all your files to the new server.

    Sell your entire old storage server along with any unused spare drives. A completely prebuilt hot-to-trot RAID 5 system, with new matching spare disk, only two years old, will still be very useful to someone else and you can recoup maybe 30 to 40 percent of the cost of building a new server.

    Lather, rinse, repeat until storage space is irrelevant or you die.
  • by Fallen Kell (165468) on Monday June 04 2007, @08:01PM (#19390027)
    If you are going to do this, do it right. It will cost you some up front, however, in the long run, doing it right will be cheaper. Get a real raid card, as in hardware RAID. Get something that supports multiple volumes and at least 8 disks. I personally just got the Promise SuperTrak EX8350. Now, why do you ask do you need 8 disks? So you can upgrade, that is why. Use your current 3 or 4 disks you have now in a raid volume. In a couple years when bigger disks are dirt cheap, pick up 4 1TB+ size disks and build a second volume on the RAID array using the new disks. Now you can offload all the old data onto the new RAID volume and either ditch the old disks or keep them around (up to you, however, I recommend ditching to other computers or whatever so that you now have 4 empty slots on the RAID card so that you can rinse/repeat the whole process again in another few years...)

    Again, doing it correct up front takes care of upgrade options down the line. It also gives you room to do monster sized volume if you ever need that much space (8 disk array). Most of these RAID solutions are also OS independent, so if you want dual boot, the volume would be recognized by Windows, Linux, Unix, BSD, etc., and you are also not dependent on using the exact same motherboard if you motherboard dies or wants to be upgraded (you would lose all your data if you use the built in RAID on the motherboard when changing to a new motherboard other then the exact same model).

    These better cards also can be linked together (i.e. you always get a second card assuming your motherboard has a slot for it, and add more disks to the array that way as well).
  • One acronym - ZFS (Score:3, Interesting)

    by GuyverDH (232921) on Monday June 04 2007, @08:06PM (#19390081)
    Get a small box, install opensolaris on it, configure your JBOD as either raidz or raidz2, configure either iSCSI or SaMBa to share the files using a gig link.

    Your data should be perfectly safe, with raidz2 can lose up to 2 drives, without data loss.
  • by merreborn (853723) on Monday June 04 2007, @08:47PM (#19390591) Homepage Journal

    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.
  • by JoeShmoe (90109) <askjoeshmoe@hotmail.com> on Monday June 04 2007, @08:52PM (#19390659)
    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 [infrant.com]

    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
    .
    • > either get the bigger disks you want now, or plan on rebuilding the array down the road

      Not at all, these days one does have better options than rebuilding a blank array. Read up on LVM, it is powerful stuff.

      Replace the drives in the array one at a time, allowing time for the array to rebuild. Then you can grow the volume to make use of the extra capacity. Yes it will require some planning and will probably take a week to slowly merge in the new set of drives, but it sure beats a bare metal restore b
    • Re: (Score:3, Interesting)

      > I would go RAID 5.

      Yep. And if you boot something like Knoppix you can keep the OS on cdrom and storage on the raid device. Samba config goes on a usb key. I have two servers in a corporate environment running software raid 5 and booting knoppix. Updates are nearly impossible, but you can keep the updates on the usb key (tzdata) and untar right over the top of UNIONFS after boot. Either that or just download a fresh Knoppix version (I've gone through 3 versions now). The software raid in Linux i
    • Re:go for RAID-5 (Score:4, Informative)

      by TuballoyThunder (534063) on Monday June 04 2007, @08:54PM (#19390673)

      I concur. You would be crazy not to have redundancy--without out it one disk failure will pull down a good chunk of your data.

      As for growing the array. From what I understand (and I have not tested this) you can grow the size of the array if you replace all the disks (one at a time with a resync obviously). Also, as of linux 2.6.17, you can add a disk to the RAID and grow it that way.

      I would caution against making your array very large (either in disks or in space). Consider the case of a 3 disk RAID array where each disk has a probability of failing in any given second of 10^-10 (you would do this analysis using the reconstruction time of your array as the time window). The probability for any two drives not failing is (1-10^-10)^2. The total number of 2 drive pairs in a 3 disk RAID is 3, thus the probability of the array not failing in any given second is (1-10^-10)^6=0.99999999940. Over a period of five years, the overall probability of no two drives failing is (1-10^-10)^(6*157680000)=0.909729. If you increase the array size to 10 disks, the overall probability of two drives failing is 0.241927 (the number of 2 drive combinations is 45 so you replace the 3 with 45).

      • Re: (Score:3, Informative)

        I'd suggest getting a RocketRaid Card.

        Why? Linux software RAID (md) does a fine job with excellent performance, assuming you are not saturating the PCI bus (solution: use PCI Express or PCI-X instead). With sufficent bus bandwidth, software RAID outperforms the majority of soft RAID (rocketraid) and hardware RAID controllers.

        You can expand the array without losing/migrating data off of the array. You are still limited to the size of the smallest disk in RAID 5, but it helps alot.

        You can do this with md wi

    • You can put RAID 5 on varying size disks.

      I had 4 300GB drives, and 2 200GB drives.

      I broke them up into 100GB partitions, and layed out the RAID arrays:

      A1 = [D1P1 D2P1 D3P1 D5P1]
      A2 = [D1P2 D2P2 D4P1 D6P1]
      A3 = [D1P3 D3P2 D4P2 D5P2]
      A4 = [D2P3 D3P3 D4P3 D6P1]

      Then I concatenated the arrays together, giving a little less than 1.2 TB of space from 1.6 TB of drives; if I had just RAID'd the 4 300 gig drives, and mirrored the 200's I would have only had 1.1 TB available, and the drive accesses would be imbalanced.

      I could also grow the array, since it was built as concatenated, so later when I got 4 400GB drives I raided them then tacked them on for 2.4 TB total.