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?

100 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 Richard+McBeef · · Score: 2, Funny

      Uptime and data retention increase 59.544%.

      Actually, it's 59.5449999%. So it's 5 nines no matter how you look at it.

    2. 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.
    3. Re:Two words: RAID 0 by tomhudson · · Score: 3, Funny

      Don't laugh - I once used 127 floppies to back up a 350meg hd. You can buy a computer nowadays for what that drive cost me. (Of course, the same can be said for the 80 meg hd a few years before, or the ad lib 8-bit sound card, or the 14" vga monitor ... or the dual external 5-14 floppy drives before that ...)

    4. 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.
    5. Re:Two words: RAID 0 by __aaclcg7560 · · Score: 2, Interesting

      I used to use 20 floppies to back up a 20MB hard drive. It was so nice to be able to buy a box of 25 floppy disks, keep 20 in the box as one data set and use the other five for whatever. These days I'm backing up to local USB/FireWire drives attached to each machine, and storing copies on a network RAID server.

    6. Re:Two words: RAID 0 by Guido+von+Guido · · Score: 4, Funny

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

    7. Re:Two words: RAID 0 by Mad+Merlin · · Score: 2, Informative

      If you use fake RAID, then you basically have no guarantee that the on disk format will be the same from one motherboard to the next, even within a particular vendor.

      I would suggest not using fake RAID if you have any intentions of moving the disks to a new system (or really, at all... the only potential plus is Windows compatibility). Fake RAID uses a vendor-specific proprietary on disk format, and is typically slower than both software RAID, and hardware RAID.

      RAID in any form has minimal impact on disk seeks, so if you're reading lots of tiny files, you'll notice minimal (if any) performance gain. Where RAID really shines is reading or writing large sequential files, where your performance increases more or less linearly with the number disks in the array (although this depends on what RAID level you use).

      RAID 0 drastically increases your chance of data loss. For example, with 8 100G disks in RAID 0, if you lose any single disk, you lose all 800G of data stored in that RAID 0 partition. I wouldn't suggest RAID 0 for anything you can't completely recreate painlessly, unless you don't care about losing the data (and if you don't, then why do you have it in the first place?).

    8. Re:Two words: RAID 0 by sumdumass · · Score: 2, Informative

      I would stay away form the on board stuff. They aren't hardware raid or even close to a hardware level raid controller. At least all the ones I have seen weren't.

      3ware makes a fine hardware raid card that have between 2 and 16 or more SATA ports on them. Of course the costs go up with more ports. Adaptec has some also but I had problems with the last one I used and according to the Internet I wasn't alone. If I remember right, with a hardware raid, there is information about the raid configuration and all the drives in the boot sector of the drives. You should be able to rebuild the array from this. And the newer raid cards have hot swap spares were you have an extra drive or two sitting there waiting for a drive to fail. The firmware initiates one of the other drives rebuilds the information and you go on uninterrupted. You can then use a program to turn the failed drive off and replace it all without rebooting. It has saved my ass a couple of times.

      Something people don't look at when building a raid system is the power demands. A normal power supply has only one 12 volt rail that feeds both the main board and the drives. You can get some really weird thing happening when you run out of power like drive reporting as dead but still working. Some split that into two. But this could still leave you with too little power for your application. Spend some money and get a good power supply with separate 12 volt feeds and at least two of them if not three, You will see this on the power output chart for the power supply.

    9. 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 ?
    10. Re:Two words: RAID 0 by WoLpH · · Score: 2, Informative

      If you use either Linux/FreeBSD software raid (especially the FreeBSD variant is very good) you'll be able to use different drive sizes.
      Or... get an Intel motherboard with Matrix Raid chip, it'll allow you to add more drives to an array or increase it's size when you increase the storage space.

      However... not using RAID would make it more flexible for you, wheter it's worth it is up to you. Personally I'd go for RAID 5 (I have done the same at home).

  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 Anonymous Coward · · Score: 3, Informative

      While you're there, check out how http://en.wikipedia.org/wiki/ZFS can make most of the issues other posters are point out irrelevant, or at least nothing to be worried about.

      While Solaris might be a dirty word among the Slashdot crowd, if all the OP needs is a way to store a bunch of files, ZFS is an excellent solution. Check out http://www.opensolaris.org/os/community/zfs/whatis / and in particular the demos linked on the left side.

      Then, if you're still not convinced how appropriate ZFS might be for a somewhat clueless user, read about how it can save your ass from flaky hardware and data corruption: http://blogs.sun.com/elowe/entry/zfs_saves_the_day _ta

    2. 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 geedra · · 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.

    2. Re:Duh by TheRaven64 · · Score: 2, 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.

      --
      I am TheRaven on Soylent News
    3. Re:Duh by xigxag · · Score: 2, Insightful

      There was just an Slashdot discussion on ZFS a few days ago. The OP should read it, it pretty much covers his/her questions.

      --
      There are two kinds of people: 1) those who start arrays with one and 1) those who start them with zero.
    4. Re:Duh by Jeffrey+Baker · · Score: 2, Insightful

      So, to repharse your post, you are in favor of ZFS and you recommend it to others, even though you haven't tried it yet.

    5. 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."
    6. Re:Duh by Fred_A · · Score: 3, Insightful

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

      May contain traces of nut.
      Made from the freshest electrons.
  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.
    1. Re:Don't worry about losing your media files by noidentity · · 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.

  5. Design for today. by Joe+U · · Score: 2, Interesting

    Design for what you want to use today and in the near future, don't design for a few years from now, you'll never get it built.

    That being said, mirroring might be the easiest solution to upgrade, but you'll sacrifice speed and space.

    If you want speed and redundancy, you'll have to go with something like RAID 5 or RAID 10 and just have a painful upgrade in the future.

  6. I would use (and do use) linux software raid by aachrisg · · Score: 2, Informative

    I'm running a few arrays, all over 1TB. Largest is 8 drives in a raid6 config. everything uses software raid. Be sure to use LVM, so that you can snapshot your drives. Once you're properly RAIDed, your more likley to lose your data by an accidental file deletion than by unfixable hardware failure.

    1. Re:I would use (and do use) linux software raid by QuesarVII · · Score: 2, Informative

      Yes, software RAID is great, especially if you like your writes being really slow. :-/
      If you're going to dump hundreds of $$ into hard drives, cough up a bit more for a HW raid controller!


      Says the person who's never done any real benchmarking of these things...

      Unless you buy the right raid card, you'll likely get worse performance from it than you would from software raid. I'm talking the name brands too - LSI, Adaptec, 3Ware. They all suck. Of the 3, 3ware is the best. On a LSI SAS raid controller I recently tested, I only got a 30% I/O speedup going from a single drive to a 6 drive raid 5. That's pathetic! Software raid at least gave me 140% improvement.

      If you really want good numbers, get an Areca controller. They perform very well and have drivers right in the linux kernel (2.6.19+).

      The older RocketRaid cards (Highpoint) performed fairly well, but were not really hardware raid - they were "hardware assisted" raid. Most of the work was really software raid in the driver. As long as you had a fairly fast cpu, you got great numbers. I believe the newer ones are true hardware raid now, but I haven't benchmarked them yet as they only had up to 8 port controllers in PCIe last I checked.

    2. Re:I would use (and do use) linux software raid by asc99c · · Score: 2, Interesting

      I'm not disagreeing with any point you raise here, but for a media server, this is off-topic. You'll need at most ~20Mb/sec for high bit-rate 1080p videos. Even running multiple streams to different media centers, even the most basic RAID cards have enough performance.

    3. Re:I would use (and do use) linux software raid by aachrisg · · Score: 2, Insightful

      The main operation in raid5 is XOR. The processors on modern computers have 2 cpus, each of which runs at speeds >2ghz, and have instructions which xor 128-bits at a time. They can xor at gigabyte/s ranges. This is far larger than: the actual drive performance (~40mbyte/s) the bus bandwidth available to transfer data from memory to the drives. I have done the benchmarks. The linux software raid speed is pretty much exactly what you would expect - you will run at the slower of the maximum bus bandwidth available or the drive speed. With small arrays, you'll be limited by drive speed. With large ones, you'll top out at poci bus speed if using pci, or drive speed if using something better.

  7. RAID by Anonymous Coward · · Score: 2, Informative

    If you have 3x500GB disks in RAID5, you only have 1TB of usable space, as one drive is used as parity (and therefore not for effective data storage). If you replace the disks with larger ones, the array is not increased in size if you replace each disk one at a time and let the array rebuild itself. However, you can just plug in your new drives (if you have enough ports), create a new array, and then copy data across to the new array. Alternatively, if you are using software RAID, as you increase the size of the drives, you can create extra partitions on the drives and RAID these. e.g. 3x500GB drives in RAID5, changed to 3x1TB drives, each with 2x500GB partitions = 2x1TB RAID5 arrays. This is not recommended however!!

    Personally, I would just buy a Buffalo TeraStation or Netgear StorageStation and let that do the hard work. Just plug it into your network, then share the data. Just have a single 500GB drive on your media centre for recording TV, and then anything you want to keep just copy over to your NAS box.

  8. It depends by gbaldwin2 · · Score: 2, Informative

    It all depends on how the RAID is implemented. Most inexpensive controllers require a rebuild when you change sizes. It is not a big deal. I would never implement anything important jbod the chance of failure is too large. I have replaced too many disks. Do RAID5 or RAID1. Over 99% of my disk is RAID5 and I manage just over 500TB.

  9. Is Google broken today? by Talez · · Score: 2, Insightful

    RAID 5 drives are limited to the size of the smallest drive in the array.

    Yes... Duh....

    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?

    Yes... Fucking duh.... Have you even read the RAID 5 Wiki article?

    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?

    We've been through this a million times before and the answer is always the same. You're a cheap bastard who wants gobs of space with an acceptable amount of redundancy but aren't willing to buy two sets of drives. Buy 4 of the biggest drives you can afford and RAID 5 them. Don't expect stellar write speeds. You won't have a backup if something happens and all 4 drives blow but you'll at least have protection when one drive gives up the ghost which is mainly what most people want to protect against.

    Why does stupid shit like this keep getting posted to the front page?

    1. 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!
    2. Re:Is Google broken today? by espressojim · · Score: 2, Interesting

      Xraid does this as well, if you buy an infrant box. I have one for my media center. You can put 1 disk in the box, and it's just an enclosure. 2 disks is mirroring, 3+ disks = raid5. You can upgrade each disk like RAIDCore, and when they are all at the new size, the total raid size is larger.

    3. Re:Is Google broken today? by BiOFH · · Score: 2, Insightful

      I don't have any mod points, but "hear, hear!"

      X-RAID and an Infrant ReadyNAS NV+ = gold. These NAS were built by people who actually thought about the home or prosumer's needs and built something that addressed it, instead of "here's what we offer, take it or leave it".
      (However, we should note that Netgear has bought Infrant, so it's the Netgear ReadyNAS now.)

      --
      - I am made of meat.
  10. 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.

    2. Re:Get what you need for *NOW* not for later by Grishnakh · · Score: 2, 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.

    3. Re:Get what you need for *NOW* not for later by vinn · · Score: 2, Informative

      Yup. People overdesigning their drive systems are likely first time sys admins. There's a time and a place for complicated drive mechanisms and your porn collection is not one of them. I'd just do software RAID 1 with a possible backup to an external USB hard drive. NAS devices are cheap and interesting too.

      --
      ----- obSig
  11. Wait a sec... by GFree · · Score: 3, Funny

    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?

  12. 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.
  13. 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
  14. depends on the raid implementation (and level?) by KStieers · · Score: 2, Informative

    It depends on the implementation (and possibly the raid level). Some raid cards will let you expand the container after you've replaced all of the drives with new ones of a larger size. Then you have to expand the partition, or put another partition into the new space. I've done this with Compaq hardware running Win2k in a RAID 1 (mirrored pair).

    The "Raid 5 can't do what I heard" isn't quite what's going on, again, depending on the implementation. Most raid cards I've used allow you to add drives to the array and expand the array to the new drive(s) without downing the server or requiring a rebuild.

    So RTFM for the card you're going to use.

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

    2. Re:Linux, RAID 5, md by ptbarnett · · Score: 3, Interesting
      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.

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

      Software RAID just as fast? Please. Next you're going to tell me a software firewall is just as good as a hardware firewall, right?


      What's rather humorous about this statement is that ultimately, all firewalls are implemented in software. What is firmware, again?

      There are three different implementations of RAID on PC class hardware- software RAID, fake-hardware RAID, and hardware RAID.
      When I said that software is just as fast, I'm comparing it to fake RAID cards, cost under ~$200 US. These cards rely on drivers to get their work done, and rely on the CPU just as much as software RAID. The only benefit they bring to the table is the ability to have the RAID exist in a pre-OS environment- you can boot off the RAID no matter what OS.

      Ultimately, the disadvantages (extra cost, no speed increase, buggy drivers, et al.), do not weigh out over the advantages (dedicated BIOS).

      Both have their applications, but let's be honest - It makes a hell of a lot of sense to add a layer of abstraction between your operating system and your disk storage. Leave the details of arranging all your 0's and 1's, stripe sizes, etc. to your RAID controller, while your operating system sees only what it needs to - a simple logical drive. (AKA virtual disk, logical volume, etc., depending on the vendor.) Add a battery to your RAID controller, and you aren't relying on your OS to keep the logical disk intact should your system be shut down uncleanly.


      The latest versions of software RAID support a snapshotting feature which makes it impossible for the array to become out-of-sync. Batteries are only required when you are caching information from the disk onto the controller for performance reasons. At this point, you're talking about a REAL hardware RAID card, which is most likely doing parity calculations on a dedicated processor. Cost is now over $200 for a *GOOD* 4-port card.

      There is a cost-benefit curve that comes into play here also. But as a previous poster mentioned, the most cost-effective way of getting the most storage for the cheapest price is to get two cheap 500GB drives attached to a hardware RAID card, and you've covered the most likely failure scenarios. Total cost is less than $1000.


      I bought an xSeries IBM chassis (two, infact), hacked out the SCSI backplane, and added 5 250GB drives and 2 SATA controllers. Total cost: $800. I still have room for 5 more drives. I also have two processors and 3GB of RAM. Cost-effective? You betcha. Hardware RAID? Nope. And, it's designed to handle the heat.

      There's no need to get fancy here - I cant help laugh when I hear horror stories from my "hardcore" computer gaming friends who have highly tedious and unnecessary media setups - RAID-10 with hot spares, 5 fans to manage all the heat, and the bi-monthly critical meltdowns associated with it - all to store movies and porn. Overkill? You tell me.


      Sounds like they may not have thought through their implementation. Cost-effective means maximizing space, maximizing life, and maximizing versatility. Cost isn't just initial outlay- it's the life of the implementation. I'll take my 4TB array for $1700US over anything custom. Did I mention that my quad-Xeon 700MHZ can stream 1080p?

      Sure, it's expensive in electricity. But over the life of the server, I'll get more use out of it than just storage. I'll have excess processor capacity when writes are not occuring. And I have a vendor independent implementation that can be moved to any system, any time, for any purpose, including data recovery. Using fake RAID or hardware RAID will just encumber that, and add unnecessary cost.
    4. Re:Linux, RAID 5, md by guruevi · · Score: 3, Informative

      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.

      --
      Custom electronics and digital signage for your business: www.evcircuits.com
  16. 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.
    1. Re:How the hell did this make the front page? by coaxial · · Score: 2, Insightful

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

      You mean like digg? Nah. The there's no wisdom in crowds. Just lowest common denominator.

    2. Re:How the hell did this make the front page? by Floritard · · Score: 2, Funny

      You're telling me. Any topic that generates 380+ comments worth of discussion is obviously a wasted endeavor.

  17. Bad assumption by tfletche · · Score: 2, Informative

    you write that if you have 3 500G disks in a RAID 5 that you will have a 1.5T, etc. Don't you realize that (N x C) - C = Total ? i.e. (3 x 500) - 500 = 1000 or 1 terabyte. That's only the first problem with your logic...

  18. 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.
  19. LVM is your friend by jmorris42 · · Score: 2, Informative

    > 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 because you can still be recording and watching video while all this rebuilding and resizing is happening.

    Don't really know how much of the above applies to Windows, haven't seriously used it in a decade; so sometone else will have to supply details on it's volume management flexibility.

    --
    Democrat delenda est
  20. 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 rustalot42684 · · Score: 3, Funny

      And, of course, by RAID 0, I mean RAID 1. Must click 'Preview' next time.
      Perhaps a Post-It note on the monitor to remind myself.

    2. Re:Nuh-Uh by smittyoneeach · · Score: 2, Funny

      They told me 0 is the new 1!

      --
      Get thee glass eyes, and, like a scurvy politician, seem to see things thou dost not.--King Lear
    3. Re:Nuh-Uh by Architect_sasyr · · Score: 2, Funny

      Two words...

      Chuck Norris

      Man, Raid 10 + Raid 5 + Offsite backups can't save you now!

      --
      Me failed English...
      FreeBSD over Linux. If my comments seem odd, this may explain...
    4. Re:Nuh-Uh by empaler · · Score: 3, Funny

      Jack Bauer? Bah. Your mother is the new Jack Bauer.

    5. Re:Nuh-Uh by CCFreak2K · · Score: 3, Funny

      What if: a crazed velociraptor claws open the case and destroys all 10 drives, then mauls him.
      Randall Munroe? Is that you?
      --
      "Beware of he who would deny you access to information, for in his heart he dreams himself your master."
    6. 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
    7. Re:Nuh-Uh by cheater512 · · Score: 2, Funny

      I keep my backups in the parallel universe. Its the only way to keep my data safe in case the solar system falls in to a black hole.

    8. Re:Nuh-Uh by maxwell+demon · · Score: 2, Funny

      Are you sure you failed it? I've heared F is the new A.

      --
      The Tao of math: The numbers you can count are not the real numbers.
    9. Re:Nuh-Uh by Wdomburg · · Score: 2, Funny

      Bah. Chuck Norris is the new Chuck Norris.

  21. Re:go for RAID-5 by sciguy125 · · Score: 2, Informative

    My understanding is that linux allows you to grow an array. Yes, it will, I just checked the manpage for mdadm. For RAID 5, and probably similar for others, the procedure is to "fail" each of your disks by unplugging them then replacing them with the bigger disks (this part isn't in the man page). You just have to make sure that you allow to RAID to rebuild after each "failure". Once they're all replaced, you can resize the array to fill up the new, larger drives. Then, of course, you'll have to resize your filesystem. During this process, however, your RAID will be vulerable to real disk failures.

    --
    GE/S/P a- e++ y-- r-- s:++ d+ h! X+++ t++ C+ P+ L++ E W++ w M-- V? PS+ P+
  22. Planned obsolescence by Solder+Fumes · · Score: 3, Insightful

    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.

  23. You can mix raid drive sizes, with planning. by Kaenneth · · Score: 3, Interesting

    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.

  24. Go RAID 5 BUT with real hardware.... by Fallen+Kell · · Score: 2, Insightful

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

    --
    We were all warned a long time ago that MS products sucked, remember the Magic 8 Ball said, "Outlook not so good"
    1. Re:Go RAID 5 BUT with real hardware.... by nxtw · · Score: 2, Interesting

      What is the advantage of having a proprietary RAID card? With PCI Express, there is enough bandwidth between the HBAs and CPU to perform software RAID[56]/RAIDZ2? without a problem. Any recent CPU can perform RAID5 calculations much faster than hard drives can provide it. The bottleneck becomes either PCI bandwidth or hard drive speed.

      I haven't seen a consumer level motherboard that has real (hardware) RAID. It's all software RAID with a fancy driver & BIOS support to allow Windows to boot.

      I'm not sure how many people would want to dual-boot a large fileserver. There's no universal filesystem that's suitable for large volumes multiple OSes besides ZFS, if you're using Solaris, FreeBSD, and OS X... with (slow) userland support in Linux. Otherwise you've got ext2/3 on Linux and the myriad of various implementations for other operating systems.

  25. mdadm by statemachine · · Score: 2, Informative

    What if it is a linux server in a closet and you'd rather the server sent you an email?

    If it is a Linux server, you're already using mdadm, which has a monitoring daemon with e-mail notification.
  26. One acronym - ZFS by GuyverDH · · Score: 2, Interesting

    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.

    --
    Who is general failure, and why is he reading my hard drive?
  27. Re:go for RAID-5 by bl8n8r · · Score: 2, 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 is surprisingly stable. I had one drive go bad on one of the servers a couple months ago. mdadm emailed me, I informed the dept. of the downtime, and at the end of the day I replaced the drive and rebuilt the array. Everything worked like the howto said. Very nice.

    --
    boycott slashdot February 10th - 17th check out: altSlashdot.org
  28. Re:go for RAID-5 by nxtw · · Score: 2, 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 without having to deal with quirky RAID hardware that leaves you in the cold if you have a controller failure.
  29. Re:RAID by JWSmythe · · Score: 2, Informative

      cat /proc/mdstat

    root @ backup (/usr/src/linux) cat /proc/mdstat
    Personalities : [linear] [raid0] [raid1] [raid10] [raid6] [raid5] [raid4] [multipath]
    md0 : active raid5 hdj1[3] hdi1[4] hdg1[2] hdf1[1] hde1[0]
          468880896 blocks level 5, 4k chunk, algorithm 2 [5/5] [UUUUU]

    unused devices: <none>

    [U] is Up.  [_] is Down.

    --
    Serious? Seriousness is well above my pay grade.
  30. SCRUB your arrays! by SuperBanana · · Score: 2, Insightful

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

    NO! That's NOT the end of the story. You need to do what is called "scrubbing" the array periodically, because drives "silently" fail, where areas become unreadable for various reasons. Guess when one usually discovers the bad data? When one drive screeches to a halt, and you confidently slap in another and hit "rebuild". Surpriiiiiiiiise.

    You can do it a variety of ways. The most harmless is probably to run a read-only bad-block test via cron, while monitoring each drive's SMART parameters long-term and having your cron job let you know if badblocks finds anything. An alternative is to instruct md to verify the array, if you're doing software raid.

    You cannot, cannot, CANNOT just drop a bunch of drives into raid 5 and expect it to be peachy for the rest of time.

    By the way, regarding controllers- skip ANYTHING made by 3ware, especially their PCI controllers. They're barely able to push 20-25MB/sec and have a couple of bad compatibility problems with certain drives. Areca units are blazing fast (especially the PCI-E cards) but priced for businesses, not home users looking for "cheap as possible."

    Software raid comes in #1 for price/performance, but I strongly, strongly recommend you play around with the mdadm tool quite a bit before you put actual data on an md array. The stuff is very half-baked.

    1. Re:SCRUB your arrays! by statemachine · · Score: 3, Informative

      echo check > /sys/block/md1/md/sync_action

  31. Re:go for RAID-5 by damacus · · Score: 2, Interesting

    Negative, ghostrider.

    With proper planning and the right skills, its not hard to build a RAID5 system that can grow with you. This solution is Linux based, but can be applied on any system that has a flexible abstracted filesystem support. The tricks: 1, a big case, 2, Linux w/ LVM.

    For the case, check out: http://www.xoxide.com/cooler-master-stacker-case-b lack.html

    It's huge. 12 5.25" slots. Supports dual power supplies. And you can get modules with fans that hold 4 3.5" drives in 3 5.25" slots. That's up to 4x4 drives, (or more realistically 3x4 drives, since you have controller units and presumably an optical drive.)

    Anyway, you could start with 4x750. RAID5, LVM on top. Later, say you fill it. You could then buy 4x1.25TB (or whatever the latest size is). RAID5 those new discs, and then put an LVM pv on the RAID, and join it to the first RAID's logical volume group. Extend your FS, and there you go. Also, you can now have up to two drives fail at the same time (so long as its just one dead per RAID5) and not lose data.

    Say you want to upgrade again? Do the same thing. And keep in mind, so long as the space is there, you could work LVM and filesystem resize magic to remove the oldest set of 4 drives from the logical volume group and replace them with newer drives.

    Takes a little linux skill, but its extensible. Also, flexible. You of course don't have to go 4x at a time. I just chose that since the drive cages support 4 drives apiece.

    Anyway, though. Start with the largest drives you can afford starting off, otherwise you'll be getting back into administrivia earlier than you'd probably prefer. I don't know your storage needs or finances, but most geeks should be able to swing 500GB drives (or 250, if one must.)

    PS - Don't forget to have at least one spare drive on hand in case one dies. Remember, it has to be the same size, or larger, than the drives in the RAID. This is especially advisable if all your drives are about the same age.

  32. The simple answer is by Mad+Quacker · · Score: 2, Interesting

    that there is no good solution I can find. Every solution is flawed for this purpose, including ZFS.

    I have been giving much thought to writing yet another filesystem, which would fill the needs of home/archival/media box users. Essentially it would be like ZFS, except it would improve upon ZFS's dynamic striping. I would have dynamic parity, such that the number of disks in the stripe-set and number of recovery blocks is completely independent per-file, ala PAR2. ZFS is still just as bone-headed as older filesystem because the vdev's are still atomic, you make a raidz, and it stays that way. The integrity would be on a per-file basis only. So you could add and remove disks at will, no dangerous re-striping operations, and protection and recovery from on-disk corruption. If you lose too many disks, you only lose the information on those disks. A file need not be striped on every disk. Only when a particular file has less parity blocks than missing blocks, wherever such blocks may be, is the file gone. Files on disk should always be recoverable, regardless of "corrupt superblocks", or something similar. This could probably be done using FUSE and some quick and dirty code.

    Why?

    1. We want a lot of storage
    2. We want it expandable, no dangerous restriping or filesystem expansion. There can be NO BACKUPS!
    3. We don't want to wake up in the middle of the night and wonder if the next fsck is the last.
    4. We only care about enough performance to run the media center, i.e. record TV and play movies.

    --
    "I don't know that atheists should be considered citizens, nor should they be considered patriots." George HW Bush
  33. KISS it by masonc · · Score: 2, Insightful

    I did this a couple of times recently. I built a file server to supply ripped DVDs to three media centers in a house. I played around with RAID but got poor disk performance. Eventually I realized that the data is not vital information - the world won't end if you loose some movies and have to rip them again. I put four 500 GB drives in a Supermicro 8 bay server, with the OS on an internal drive.
    Each drive is mapped by each the UNC path, i.e., \\movieserver\movies1 so the media centers have four drives mapped on each one.
    If I lose a hard drive, oh well, some of the movies won't be available until they are re-ripped from the DVDs.

    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.

    --
    CM www.cometenergysystems.com Blog: http://caribbeanrenewable.blogspot.com/
    1. 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.
    2. Re:KISS it by dwater · · Score: 2, Interesting

      > Another issue, RAID is NOT a backup solution

      It (RAID1) can be, with some caveats. Just 'fail' one of the mirrors and take it off site (same as you would a tape).

      I'm sure it works very nicely in some situations.

      --
      Max.
    3. 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.
    4. 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

    5. Re:KISS it by Fred_A · · Score: 2, Informative

      Hot-swap is still someting that requires a good hardware solution, but that's about it.
      Especially when you've actually tried hot swapping in a few such devices and seen that the RAID thingie is mostly dead in the water for ages while it's trashing itself trying to rebuild the missing bits. In every such case from what I've seen, in real life, with RAID 0|5, while you don't lose any data with a disk failure, you certainly lose availability. In the best of cases you can only get a trickle of data from the remaining disks.
      --

      May contain traces of nut.
      Made from the freshest electrons.
    6. 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....

    7. Re:KISS it by segedunum · · Score: 2, Insightful

      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!
      It's vitally important that if you go the hardware RAID route then you get the right card. Do not get fake RAID cards, and check your Linux compatibility if you run Linux. If you get the right card than it's infinitely more preferable than software RAID, because there's so much less to do. The OS sees the drive as one big disk, and you can use hotswap cages much more reliably. Don't use hotswap on an onbaord or ad-hoc controller with software RAID. Strange things will happen.

      For info, I use an Adaptec 2420SA - a very nice card as it turns out. I must commend Adaptec on pulling their fingers out on their hardware RAID and Linux support, as aacraid is right in the kernel now. Their previous cards were terrible.

      Performance is also no longer a reason to use a pure hardware RAID solution, especially now that multi-core machines are available cheaply.
      The bottleneck is in I/O, and not on the CPU.

      Hot-swap is still someting that requires a good hardware solution, but that's about it.
      Hotswap is quite important. If you don't have the convenience of hotswap then a lot of the reasons for what you have RAID for (easy replacement of downed drives) are gone.

      Good (and well supported) RAID products cost good money too, and for most of us it's just not worth doing
      Yes it is, and good hardware RAID cards are actually quite cheap. The convenience of the OS seeing an array as one big disk and having the hardware handle it is great, because it takes a layer of management out of the system. Just make sure you have good management tools, which Adaptec certainly seem to have, along with 3ware. Remember that the OS will simply not know if there is a problem, because all it sees is a disk.
    8. Re:KISS it by stan_freedom · · Score: 2, Informative

      The guy is building a media server for his home. Does he really need hot-swap drives or hardware RAID? Software RAID is simple to implement and inexpensive, especially if you have enough SATA ports on your motherboard to support your storage config.

      By the way, does anyone have recommendations on 4-port SATA controllers?

    9. Re:KISS it by Bishop · · Score: 2, Informative

      I have an Adaptec U320 raid controller that goes belly up under heavy load. This happens under both Linux and FreeBSD. I don't care if it was a hardware fault, a firmware fault, or a driver fault. I did not have this problem with software raid.

  34. 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.
  35. 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
  36. Re:go for RAID-5 by TuballoyThunder · · Score: 3, Informative

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

  37. Re:go for RAID-5 by WuphonsReach · · Score: 2, Informative

    Only 11 of those are usable bays, since they put the power switch in with the 3.5" bay module.

    The 4-3 devices modules are cute, but a pain to deal with when you want to replace a drive (you have to rip apart 4 sets of cables). I'm not entirely satisfied with the 4-3 modules that I have, I prefer the older 3:2 units with a 80mm fan. Stick to only putting 2 drives in those old 3:2 units and you get superior airflow because there's no strange grillwork between the intake fan and the hard drives. You might get the same out of those 4-3 units if you install a drive in the middle upside down to create a decent gap.

    But if you want maximum storage density, go look at the SuperMicro (or others) SATA 5:3 backplanes. Hot-swap (assuming your chipset supports it) SATA trays that fit (5) drives into (3) 5.25" bays. Merge that with a 4U rackcase or one of the (9) 5.25" bay cases from Lian Li (PC A16) and you have (15) SATA slots to play with. Or you could do (3) 5:3 and (1) 3:2 in that CM Stacker case for a total of (18) drives. (There are 3 types of SATA hotswap backplanes, 5:3 for cases with clean sides in the 5.25" bays, 4:3 for cases with guide-rails or tabs in between the 5.25" bays, and 3:2 units. Some cases have metal tabs designed to guide 5.25" devices into place, they'll interfere with 5:3 backplanes.)

    My preferred setup for (15) drives? A (3) active disk RAID1 for the OS and misc partitions, then either a (10) disk RAID10 w/ (2) hot spares or a pair of RAID6 volumes with (2) hot spares. RAID5 is too risky once you get into the 1TB+ range. Rebuilding onto a hot-spare takes too long and leaves you vulnerable to a 2nd drive failure during the rebuild window. RAID6 is at least better in that regard, but with RAID10, rebuild times are static (they're based on the time required to rebuild a single RAID1 pair) no matter the # of spindles in the array.

    --
    Wolde you bothe eate your cake, and have your cake?
  38. x86 Hardware + Solaris x86 + ZFS = Your Solution by Smackintosh · · Score: 2, Interesting

    Don't bother with dedicated RAID hardware controllers. I've seen the Linux md disk driver mentioned, and while a viable option, the better option IMO is Solaris x86 using ZFS. Basically you've got an industrial-strength piece of storage software ripe with features begging to be used in this situation....for free.

    If you're interested in an industrial strength hardware platform to go with the software, go for one of these.

    If you're interested in rolling your own, then simply put together an x86 box with as many SATA controllers and buses you can stuff in a box and set the disk up as JBOD (just make sure the hardware is Solaris x86 compatible of course). Create some ZFS pools of whatever RAID suits your need, and sit back and enjoy data glory.

    Oh, and simply pick a protocol of your choosing to serve up the data to your clients...iSCSI, SMB, NFS, whatever.

  39. unRAID by Coppit · · Score: 2, Informative

    I can't believe no one has suggested an unRAID server. You get redundancy, storage that can grow by just adding another drive, low power consumption, affordability, and the ability to telnet in. (Plus it runs Linux!) I really like this solution since the data isn't spread out over a bunch of disks in a way that only the RAID controller can understand. Instead it's just a bunch of files on a bunch of disks, with an extra parity drive for reliability.

    If a drive goes down, you can just pop a new one in and recover the lost data from the parity drive. If two drives simultaneously fail (unlikely), you lose the data on the drives that failed. Compare that to the nightmare if your RAID controller fails.

    Here's my unRAID server, built for $400 plus the drives. I love being able to do backups by just running rsync. Once the author gets sshd built into the system, I can even do automatic incremental snapshot backups using rsync --link-dest.

  40. 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!
  41. Simple: unRAID and use your JBOD by BLKMGK · · Score: 2, Informative

    I use whatever disks I had laying arouind to build my NAS but the data is still protected. The software I use is developed by Lime-Technology http://www.lime-technology.com/. It's NOT RAID and instead is a JBOD setup with the first drive being a PARITY drive. This means that if one of my drives fails I still have access to the data. If TWO drives fail I lose TWO drives worth of data - *not* the whole damned thing. The data is not striped and is stored in a ReiserFS F/S so I can pull a drive and mount it elsewhere if I desire. This also means that if a drive isn't being acively used it can be spun down - try that with a striped RAID :-) When you write only the parity disk and the disk being written to need to be spinning, love that. The system can hold more than 12 disks if you use their top of the line software - mine only holds 12 total for a bit over 4.5TB worth of storage. Boots a customized Linux off of a memory stick and yeas source for mods is distributed but not the source for the WEB management stuff - he appears to be GPL compliant.

    Some limitations: Parity drive must be as big or bigger than all others. Each drive is a seperate mount point unless you use a funky sort of shared folder feature. The system doesn't have as high a transfer speed as a RAID would, however it streams video for me to an XBMC XBOX1 just fine. It doesn't have a super robust system to notify you of failed drives out of the box although some users have added this functionality. Not a whole lot of security although I've met someone who has added this on and the developer is also working on expanding this in the future. Pretty decent support overall IMO and he's just moved to the 2.6 kernel - I've yet to upgrade though.

    All in all this system seems to be perfect for HTPCs and I also use it to store backup images of all my workstations. All of my music and DVDs are stored on it and I'm about to build a second one as I need still more storage and have "spare" drives that I've pulled from the existing one as I've upgraded that I'd like to put to good use :-) Check out the user forums on the site, the developer is pretty responsive...

    --
    Build it, Drive it, Improve it! Hybridz.org
  42. AMEN! by BLKMGK · · Score: 2, Informative

    I should've searched for unRAId in the discussion before posting my own endorsement - I'd be able to mod you up then (doh!).

    I 100% agree with you on unRAID - it rox! I'm not using any sort of background Linux stuff to do my backups but I do use an unattended backup package that works just fine with unRAID (Acronis). The speed could be better (I'm not yet on the 2.6 based version) but it keeps up stutter free with my XBMC box so it's fast enough for me. :-) Not having striped data also rocks, lets me spin down everything not in use. ResierFS is easier to recover data from than damned weirdo' striped data sets too - there's a reason that recovery firms specifically mention if they can recover from RAID crashes heh. All in all it's a good system, several of my friends now run it and I'm building a second system for my used disks that get upgraded out of the primary system.

    --
    Build it, Drive it, Improve it! Hybridz.org
  43. Software RAID5 or Manual Redundancy by raw-sewage · · Score: 2, Informative

    First, forget hardware RAID solutions. While their effectiveness is debatable for commercial and enterprise applications, it's definitely overkill for a home solution (particularly a media server). (Unless of course you have more money than sense.) But Linux RAID (md, multi-disk) is mature, stable, and well-tested. It's portable from one machine to another. It's free. With even modest hardware, it will be plenty fast for a home media server. Don't even bother with those pseudo RAID solutions that are built into your motherboard (or implemented via firmware or a proprietary driver): Linux software RAID and true hardware RAID beat these solutions in just about every conceivable way.

    Now, do you really need RAID? Many people equate RAID and backup. They are not equal. RAID is no substitute for a good backup. In the case of a media library, you do own all the media, right? :) There's your backup. Worst case, you lose the time spent ripping the media. So there's an argument to just use JBOD. However, I do use RAID5 for a bit of safety. If two drives fail simultaneously, I fall back on the media. But if only one drive fails, then I can replace the drive, rebuild the array, and lose very little time. It's quasi-backup. It's just too expensive for an individual to maintain multiple live copies of this much data.

    If I were to build a fileserver for someone right now, this is what I'd use:

    • Case: Lian Li PC-A16B, with an additional hard drive module (I actually have one of these on order right now)
    • Motherboard: Biostar TForce TF7025-M2 (on-board gigabit LAN, high-quality solid capacitors, low-power single chip north- and south-bridge, integrated video)
    • Cheapest AM2 processor (single core is fine for a strictly fileserver)
    • 1 GB RAM (even 512 MB would probably be fine, but RAM is cheap right now!)
    • Seasonic S12-400 power supply
    • 4x Western Digital Caviar SE16 WD5000AAKS 500GB hard drives (500 GB is pretty sweet for price/capacity right now; SilentPCReview is currently recommending the Western Digitals for coolest/quietest high-capacity drives)
    • A PATA-to-Compact flash adaptor (such as this one), and a 1 GB or bigger compact flash card to use as your "system" disk (i.e. install the OS here).

    I have another post on this thread where I went into more detail about the choice of case. Quick summary: if you care about noise, don't cram your drives close together, or you'll have to use an obscenely loud high-speed fan to keep them cool. If you allow at least 0.5" between each drive, you can keep your drives cool with a low-speed (quiet) fan. That's why I'm buying the Lian Li case mentioned above: room for up to nine drives, with adequate spacing between each.

  44. Re:go for RAID-5 by WuphonsReach · · Score: 2, Interesting

    I actually put those (15) drive inside of a SuperMicro 4U rackmount/tower case with the triple 760W PSU (that's a $600 case). But for a backup system or less critical system where a few hours of downtime doesn't matter, the Lian-Li case is suitable along with a regular PSU. Using a modular plug PSU with a spare in the closet can be a serviceable method instead of buying a large expensive enclosure.

    I was skeptical of the 5:3 backplanes too. But the 5:3 backplanes actually do a pretty good job of cooling. They're aluminum trays, it's all metal-to-metal contact points, so the heat spreads out a bit. There's also a 80mm fan on the back of each backplane that pulls a small amount of air through the drives. Some (most?) backplanes also come with a temperature sensor that you can set for temps of 50/55/60 Celsius which causes a buzzer to go off in the unit when it gets too warm.

    As for (3) way RAID1 vs (2) way RAID1 + hot-spare... Well, if I'm going to dedicate the drive to being available for the RAID as a hot-spare, why not get use out of it and make it active? Then, when a disk fails in the RAID1, I'm not depending on a single disk while the hot-spare gets synchronized.

    Which is one of the downsides of Software RAID. It works at the partition level, rather then the whole disk level. So it's more difficult to share hot-spares between different types of arrays. OTOH, it provides a lot more flexibility compared to hardware RAID. If you were doing a (4) disk RAID, you could do the first few partitions (for /boot and / and swap) as RAID1 across all 4 disks, then use the rest of the disk as a RAID5 or RAID10 volume.

    --
    Wolde you bothe eate your cake, and have your cake?
  45. Forget RAID by Reapman · · Score: 2, Insightful

    I used to run both Mirroring and RAID 5 in the past (not at the same time), but I found it overly complex for simple usage, plus it doesn't allow for what happens if the controller card fails or system goes up in smoke? Plus once you build a RAID you can't just add a drive to it easily or cheaply (I'm over simplifying this I know)

    I find the best is to have another computer or possibly external drives sitting somewhere, and just make weekly/daily/monthly/whatever rsync copies between them. This allows for you to recover from user error like accidental deletions, and if the entire system goes down your covered. Want more space? add a drive and presto, more space. No special configuration required. No expensive controller cards (or cheap and slow controller cards) required.

    And if your like me, you have another set of drives stored offsite... but I'm pretty paranoid about such things. =P