Slashdot Mirror


HOWTO: 0.5TB RAID on a Budget

Compu486 writes "Inventgeek.com has a new how-to article titled 'The Poor Mans Raid Array.' The article details how to make a modular .5 terabyte Raid 5 array for under $250 (USD), and it all runs on the Mandriva flavor of Linux." Drive prices being what they are, this seems cooler than it is practical. Update: 06/25 23:31 GMT by T : If that's not enough storage, Yeechang Lee writes "Let me show off the 2.8TB Linux-powered RAID 5 array I built for home use a few months ago. I provide lots of details on how I did it, what I used, and the results. The Usenet thread has good followup posts from others, too."

22 of 278 comments (clear)

  1. typical? by mnemonic_ · · Score: 5, Insightful

    this seems cooler than it is practical.
    Perfect for slashdot!

    1. Re:typical? by Rei · · Score: 5, Informative

      Many home RAID setups that I have seen are more for show than they are as a speedup. Most of them are RAID 0 - i.e., they're for "performance", not redundancy (I assume the reason is that most people don't want half their space to dissapear with RAID 1, but don't want to have to use enough drives to make RAID 5 effective). Yet the primary performance limits on a home PC's disk performance (apart from operating-system issues like the filesystem and caching) are latency-based, not throughput based; RAID, if anything, will increase your latency.

      If you want a high performance system, spend the money to get a small, top-of-the-line drive for your root partition (15k rpm SCSIs are nice, if you have a scsi card - you can get a 9 gig for 30$ including shipping, an 18 gig for 55$), and then put all of your space-consuming files (movies, music, etc) on your cheap bulk storage. Get enough spare ram to have good disk caching. And, of course, choose a good filesystem for small files - ReiserFS works well for me, but there are a lot of good options.

      You only need major throughput if you're doing a lot of very long file reads that need to occur at top speed (i.e., not playing video or listening to music; more like what you need for running a large relational database, or being a fileserver on a crazy-fast network). To the "Raid 0" crowd: Does this really fit your disk's typical usage patterns?

      --
      What a crazy random happenstance!
  2. Howto by zabagel · · Score: 5, Insightful

    Possible new Slashdot Category?

  3. Cool? Naah, old by riflemann · · Score: 3, Insightful

    I seriously doubt that this is cool nowadays. A huge case, a lot of fans and the heat it generates isn't something in anyway impressive nowadays.

    It takes just TWO modern disks to get 1/2 terabyte of space, and not much more ot get them in raid5, plus you can have a compact box (the one in TFA is very boxy and ugly) and a lot less noise and power consumption.

    Not impressive. Sorry.

    1. Re:Cool? Naah, old by ZorinLynx · · Score: 4, Insightful

      Uhh, it'd be worse. You're more likely to have a double drive failure out of ten drives than three.

      And a double failure is all it takes to take out a RAID5.

      -Z

  4. Not a big deal. by Seumas · · Score: 5, Funny

    Okay, half a terabyte? Hardly worth lifting a finger for. I have more than 2.5 terabytes almost entirely of porn. And not only that, but it's all stored on 20 IDE drives of various sizes, in external USB cases, plugged into three 7-port D-Link USB hubs, plugged into a PC.

    That's a lot of storage.

    That's balls-to-the-wall.

    I'll take a picture of all the drives stacked up on one another on the desk (5 rows, 4 drives tall).

    I take my porn seriously.

    1. Re:Not a big deal. by Seumas · · Score: 4, Funny

      Who marked this "Funny"?

      I'm serious. And it shoudl be "Informative", you insensitive clods!

    2. Re:Not a big deal. by MustardMan · · Score: 5, Funny

      I'll take a picture of all the drives stacked up on one another on the desk (5 rows, 4 drives tall).

      With that much porn, I think the last picture /. geeks want to see is of the drives

    3. Re:Not a big deal. by Seumas · · Score: 3, Funny

      I certainly do. Organizing 2.5 terrabytes of porn is a bitch. It's like "Hm... does this go in midgets or does it go in animals->poultry -- or should I create an entirely new midget and poultry sub-category?".

      Worse, all of the "media catalogue" programs for Windows crash before they finish cataloguing my collection. I even tried it with iView Media Pro on my Mac and that crashed, too after about a terabyte.

      This is a serious issue that, as time goes on, I believe Google will need to address. Maybe some sort of specialized Spoogle porn-search appliance?

      Do you feel lucky today? - You bet I do. Spank spank!

  5. Only reason it's 'budget' by OverlordQ · · Score: 3, Insightful

    Only reason it's budget is because they bought drives off eBay . . . personally . . I think I'll skip eBay if I'm buying Drives.

    --
    Your hair look like poop, Bob! - Wanker.
  6. What am I missing here? by Anonymous+Luddite · · Score: 3, Interesting

    That seems like a lot of screwing around.

    Why not just hang a four *large* drives in a workstation with MB that does RAID 1+0? Yeah, it'll cost more than 249, but it won't involve a 50 lbs box of drives..

    1. Re:What am I missing here? by Anonymous+Luddite · · Score: 3, Funny

      >> manly RAID 5?

      Yeah, really I'd prefer raid 5 too, but TFA was about a "poor mans" raid array.

      More or less on-topic: take a look at this guy's really pointless raid 5 setup. Very cool.

  7. Re:Now *thats* redundant. by James+Cape · · Score: 5, Informative
  8. Re:Now *thats* redundant. by Anonymous Coward · · Score: 4, Informative

    You are really better off just using software raid as provided by the operating system than using the fake raid provided by those on board ide/sata raid controllers. Then if your mobo dies you don't have to find one with the same raid chipset, worry about proprietary drivers etc. You just get another mobo and everything works fine. I played around with the nvraid, the silicon image raid, and one other brand, and they all pretty much suck. The best part is that without a special driver it doesn't matter how you configure the devices in the raid bios, they show up to the OS as individual drives not as a raid drive.

  9. Ridiculous by tabdelgawad · · Score: 3, Insightful

    This project looks like a giant, hot, slow, old-tech, loud, power-hog of a 500 Gig 'drive' for $250 (low-ball estimate with all the eBay pricing and special batch price on the drives the author got, and not counting time/labor).

    A 400 Gig drive (probably of equal or better reliability overall and a warranty) costs about $260 on newegg.

    Reminds me of people using 486's as routers/firewalls when you can pick up a Linksys or D-Link for $20 or $30.

    Thanks, but no thanks.

    --
    Imposing Libertarian views on everyone online since 1992.
    1. Re:Ridiculous by HermanAB · · Score: 3, Insightful

      Well, a 486 with Linux and IPtables has better throughput than the little ARM processor in a Linksys / Dlink and you can run a proxy filter, since you have a hard disk for the cache. There is just no comparison really.

      --
      Oh well, what the hell...
  10. Damn the enviroment, burn those kws... by HiyaPower · · Score: 3, Insightful

    After paying for the electricity to power this thing, you would be much better off with a RR1820A and some Sata drives for about $1000. Not only would it use a lot less power, it would give you a lot more storage. The bucks now are not so much in the hardware (8 250 GB drives + a RR1820A $1100 ~ $250 for the size array this guy made), but in powering the beasts and keeping your house cool in summer at the same time. The way I figure it, you get about a 20:1 power saving on an equivalent sata array.

    $60 a barrel oil? What $60 a barrel oil? Must be nice not to have to pay your electricity bills...

  11. My shorter HOWTO: by Saeger · · Score: 5, Informative
    HOWTO make a 500MB software RAID5 array for about $250:

    1. Buy 3 250GB EIDE or SATA HD's very cheaply.
    2. Plug them into your cheap linux PC (with at least a 400Watt powersupply). If EIDE then make sure each drive is on its own (master) channel. If your BIOS supports "hardware" RAID, disable it.
    3. Use a low-level drive diagnostic fitness test to burn the drives in so you can be sure they won't fail right away. A great tool for this is The Ultimate Boot CD, as well as the 'badblocks' linux util.
    4. Assuming your 3 new drives are drives sdb, sdc, and sdd, with your bootdrive on sda (or hda), you should now partition each of them (instead of raiding the entire disk). I recommend creating one primary partition which is slightly smaller than the fullsize of the harddisk, such that if you buy a replacement drive of another brand and it isn't the EXACT same size, you won't be SOL when adding it. Mark the partition type as "FD", which is the raid autodetect type.
    5. Verify that your kernel supports software RAID by checking that /proc/mdstat exists, or by checking for the multidisk "md" module in the output of "lsmod | grep md" after attempting to "modprobe md" and "modprobe raid5". If not supported, then... figure that out yourself.
    6. Now the fun part (assuming mdadm's installed):
      mdadm --create /dev/md0 --level=5 --raid-devices=3 /dev/sdb1 /dev/sdc1 /dev/sdd1
      View the status of the raidset construction by cat'ing /proc/mdstat
    7. Put a filesystem on the md0 device with mke2fs /dev/md0 (or mkreiserfs, or whatever)
    8. Add a line to your /etc/fstab to automount your new raid array at /raid5 or wherever.
    9. Oh, and if your distro doesn't automatically detect your array on reboot, you need to fix that by putting this in your init scripts somewhere:
      mdadm --assemble --scan
    Now, wasn't that easy? :)
    --
    Power to the Peaceful
  12. Re:Now *thats* redundant. by Slack3r78 · · Score: 4, Informative

    That's exactly my experience. My family owns a PC shop, and we stopped buying WD drives around the time of their 30-60GBs because we were getting way too many failures - many DOAs and, worse still, drives that were failing a few weeks after being sold.

    We've been selling pretty much exclusively Samsung and Seagate since then. The other *huge* often unmentioned advantage is that they're both much quieter than WD and Maxtor equivalents - Samsung being a little quieter in my experience.

    Really, outside of the Raptor line, I see no compelling reason to buy a WD drive. I can definitely agree with the sentiment that I have *never* heard anyone say they hated Seagate drives, especially if you talk to the SCSI freaks out there. :-)

  13. Take it farther... by HockeyPuck · · Score: 3, Interesting

    I spend my entire life managing large SANs, so RAID is done in the array (EMC, HDS) while basic volume management is done on the host (LVM, VXVM)... so when i first read this I thought that somebody had used linux and a fibrechannel HBA running in target mode (http://www.emulex.com/ts/docfc/linux/430l/target_ mode_intro.htm)

    Put that up on /. and you'll have something b/c you'll have shown something more than 'look what linux can do' that the other OS's have had for years...

    And then going on to mount those luns on another system (say a solaris, aix or another linux box). Instead, I was dissapointed to find out that you took a linux box and created enough software RAID to for a TB or more. If this was done with windows, it would be rejected... so why doing it with Linux make it front page news?

  14. Logical Volume Manager by mpeg4codec · · Score: 4, Informative

    I'm surprised that nobody has mentioned the Linux Logical Volume Manager subsystem. It has many of the features of RAID arrays [such as spanning across multiple drives] with the added flexibility of being able to dynamically add [and theoretically remove] drives.

    Unfortunately, aside from RAID'ing the volumes or something similar, I haven't been able to find any information on making the system redundant.

    Read about it more on TLDP. It's a very robust system that works well on both servers and desktops.

  15. Re:Speaking of which... by pangloss · · Score: 3, Informative