Slashdot Mirror


Ideas for a Home Grown Network Attached Storage?

Ken asks: "It seems that consumer level 1TB+ NAS boxes are all the rage right now. Being a digital packrat, with several computers/entertainment devices on my home network, I am becoming more interested in getting one of these for my home. Unwilling to dish out 1K or more up front, and possessing a little of the DIY spirit, I would like to build my own NAS and am interested in hardware/software ideas. While the small form factor PC cases are attractive, my NAS will dwell in the basement so I am thinking of a cheap/roomy ATX case with lots of power. I think that integrated gigabit Ethernet capabilities and PCI-Express on the motherboard are a must, as well as Serial ATA HDDs, but what processor/RAM? How strong does a computer really need to be to serve files? What about the OS? Win2K3 server edition? WinXP Pro? Linux?" "I have been using Red Hat and then Fedora Core since it came out but only in a workstation role, and I have little experience with other flavors. What file system should I use for maximum compatibility? I will need it to work with Windows, Linux and several UPnP devices. I am planning on starting out with two or three HDDs in a RAID 5 config. and I would like to be able to add more HDDs as space is needed without any major changes. Thanks for any ideas."

105 comments

  1. Why? by CommanderData · · Score: 3, Informative

    If you think you can beat a device like the Buffalo TeraStation go for it, you will be rich! It was shown at CES, and goes on sale next month in the USA for $999. Gigabit Ethernet, 4 250GB hard drives (RAID 0, 1 or 5 support), 4 USB ports to attach additional external storage devices, built in print server for sharing a USB printer, blah blah blah. I'm going to buy 2 of them!

    --
    Urge to post... fading... fading... RISING!... fading... fading... gone.
    1. Re:Why? by CommanderData · · Score: 1

      Doh, go ahead and mod me down! I didn't realize he already saw the TeraStation, that'll learn me to RTFA! Seriously though, my WHY? is still a valid question...

      --
      Urge to post... fading... fading... RISING!... fading... fading... gone.
    2. Re:Why? by log0n · · Score: 4, Interesting

      Some of us have the DIY spirit...

      Seriously, why buy something when you could 1) build it (probably cheaper) yourself and 2) learn more from building it? Most DIY projects have a habit of benefiting you at some point in the future in ways that you can't predict when you start them.

      Either you - not you personally, the rhetorical you - 1) don't have the time, which is acceptable, or 2) you don't have the knowledge, which you should be trying to gain, or 3) you are lazy, which is really quite sad.

      There's more to life than just spending money on a problem. There's actually figuring out the solution to the problem.

      $.02

    3. Re:Why? by CommanderData · · Score: 1

      I can appreciate why people might want to do something for the experience of it. I do find that solving problems is enjoyable. I've written my own web browser and wifi sniffers just because I wanted to learn how things worked.

      In my personal case, I do not have the time to invest right now, but do have the knowledge. I actually was looking at building an NAS box recently but since then booked a ton of new contract work. In my case, it is easier to spend money on a known, working solution.

      Finally, I think it is unlikely that I or the article submitter would be able to build something as small, functional, and attractive as the TeraStation for less money, especially if you value your time highly- lord knows I've pissed away $75 in the last hour browsing Slashdot :)

      --
      Urge to post... fading... fading... RISING!... fading... fading... gone.
    4. Re:Why? by Hast · · Score: 1

      There is one more aspect to consider. What do you do when it goes wrong?

      If you have rolled your own you have a better idea of how things hook up and can find the errors easier. If you have something store bought you may not be able to save your data.

      And it's my experience that for stuff like NAS this is especially true. Harddisks will fail, it's just a question of time.

      Items like this NAS often portray themseves as "Turn key" solutions. In my experience there is no such things. And in many cases you spend as much (or more) time setting those up properly than if you had just done it on your own. (I bet this particular solution will work as soon as you plug it in, the question is for how long.)

    5. Re:Why? by magefile · · Score: 1

      For some of us, small and attractive aren't issues. He said it'd go in his basement, after all.

  2. My solution by keiferb · · Score: 2, Interesting

    If you're not worried about having it all in one big partition, do what I did. Get a big case that can hold lots of drives, and just keep adding in SATA or IDE expansion cards and drives. It's worked well so far.

    If you do want it all on one big raid5 partition, good luck finding a way to add additional disks into it without rebuilding.

    1. Re:My solution by Hast · · Score: 4, Informative

      You don't. Take a bunch of disks, turn them into RAID5 array. Make a logical volume (LVM on Linux) and add the RAID-array to it. Create a growable device on the LVM and format with a standard gowable FS.

      When you get new disks simply create a new RAID5 array and add that to the logical volume and add to your current and grow the FS on it.

      You don't want everything on one big RAID0, I lost 200G of data that way. I can say I'll never do that mistake again.

  3. See: by virid · · Score: 2, Interesting

    Samba.

    --
    "The world only exists in your eyes. You can make it as big or as small as you want." - F Scott Fitzgerald
    1. Re:See: by zoeith · · Score: 1

      Rebyte.
      A simple flash Linux distro with a converter board that plugs in to an IDE slot. Supports all the standard raid setups. I recommend investing in cooling for hard drives -- not things you want to have fail on a NAS system.

      --
      Zoeith
    2. Re:See: by virid · · Score: 1

      Cooling is certainly important, but it really depends on how hard you are pounding it. I couldn't imagine myself hitting a NAS box too hard on my home network.

      --
      "The world only exists in your eyes. You can make it as big or as small as you want." - F Scott Fitzgerald
  4. Geez... by Atrax · · Score: 1

    .. If you're willing to fork out the kind of money to score you what I basically read as a pretty nifty desktop machine, you could just go off-the-peg and get a custom built 1 or 2RU NAS device (or a small box) for a similar kind of price, sans the hassle of building the thing and setting it up. Plug in and go....

    ?

    --
    Screw you all! I'm off to the pub
  5. Be aware by GigsVT · · Score: 5, Interesting

    Common linux file systems (ext, reiser, etc) contains critical data-losing type bugs on file systems bigger than 2TB, except XFS. This was found to be the case in even the most recent 2.6 kernels.

    Tony Battersby posted a patch to the LBD mailing list recently to address the ones he could find, but lacking a full audit, you probably shouldn't use any filesystem other than XFS.

    Considering the gravity of these bugs, you might consider using XFS for everything, if the developers left these critical bugs in for so long, it makes you wonder about the general quality of the filesystems.

    --
    I've had enough abrasive sigs. Kittens are cute and fuzzy.
    1. Re:Be aware by booch · · Score: 1

      There's no reason the NAS box has to have all the files in one file system. Just create multiple partitions or logical volumes. You export directory trees across the network on NAS, not file systems.

      --
      Software sucks. Open Source sucks less.
    2. Re:Be aware by jjshoe · · Score: 1

      I had many years of digital photos on a partition that used the reiser file system. When i upgraded my version of slackware i wrote down my partition table wrong and ended up re-making the reiser file system over my picture three times. After realizing what i did i un-mounted the partition, read the man page, played the journal back, and got all but five pictures back.

      Is data loss a risk? sure, but what is the most likely cause?

      --
      -- botsex is {grep;touch;strip;unzip;head;mount} /dev/girl -t {wet;fsck;fsck;yes;yes;yes;umount} {/de
    3. Re:Be aware by Gudlyf · · Score: 1
      "...contains critical data-losing type bugs on file systems bigger than 2TB, except XFS."

      I believe Tivo units use the XFS filesystem for storing its multimedia, which from what you say makes sense.

      --
      Trolls lurk everywhere. Mod them down.
    4. Re:Be aware by richie2000 · · Score: 1

      I don't think there are any 2TB+ Tivos. If they use XFS, it's probably because it deletes even very large files instantaneously whereas most other filesystems takes longer the larger the file is. This is a clear advantage if you want to be able to delete a large movie file from disk at the same time that you want to record TV to that disk.

      --
      Money for nothing, pix for free
  6. Small form-factor is not a problem by Sentry21 · · Score: 1, Informative

    At work, we just got a slew of Aopen XCCube machines (they were out of the white ones, so I got black), and I have to say, they're quite potent. Onboard gig-E, onboard SATA, DVD drive, and room for several HDs internally (and more if you get a stack of firewire enclosures and slap in some 300-500GB drives).

    The machines are fast enough to do anything a fileserver would need (and then some) they're quiet, as they use Duron chips for low heat/power, and they look good enough to put on your desk or whever you want them (if you're so inclined).

    Considering that the cost of these machines was $699 CDN ($570 US) for a full small package, I'm imprsesed. You could probably do better building one one your own with a large case, but for a place where space is an issue (or where you don't need THAT much HD space or don't want to build one), it's an interesting machine.

    1. Re:Small form-factor is not a problem by Triones · · Score: 2, Informative

      Please open your own computer and take a look
      before posting misinformation.
      I just checked the spec. Like most other
      SFF, it has only ONE internal 3.5 storage bay.

  7. Samba has the best performance. by -dsr- · · Score: 2, Interesting

    I feel strange advocating a MS-originated protocol -- but the truth us, serving files via Samba on Linux is going to be the best-performing[1], most-compatible remote file system available.

    As for hardware, for small servers I like Linux software RAID, but for a big multidisk farm, you can't beat 3Ware cards. They take nice cheap IDE drives and turn them into a SCSI RAID. Moderately expensive, but beautifully functional. Finally, I've been having good luck with Seagate and WD drives, and bad luck with Maxtors. Your mileage may vary.

    [1] Samba beats the MS implementations of SMB/CIFS. No guarantees about Samba vs NFS, GFS, Coda, whatever.

    1. Re:Samba has the best performance. by Basje · · Score: 1

      Ideally, a NAS solution should support all protocols used on you network. That way, zou can centralize storage, and easily centralize backups. If you only support one or a few protocols, you'll have to adapt all non supported devices, or use a more complex backup scheme.

      Therefore, Samba is a must, but other protocols should be considered too.

      --
      the pun is mightier than the sword
    2. Re:Samba has the best performance. by JabberWokky · · Score: 2, Insightful
      Why would I use Samba? I don't have a single Windows machine, nor do any of my roommates.

      When building your own, you're looking at unique specs. If you were buying something for a corporate environment I would highly recommend getting something with Samba, even if you don't use any Windows at the moment (for when the marketing consultant with a laptop needs to upload the large video file or whatever).

      But for home use? "Look at your needs" is better than "here's the best".

      --
      Evan

      --
      "$30 for the One True Ring. $10 each additional ring!" -- JRR "Bob" Tolkien
    3. Re:Samba has the best performance. by man_ls · · Score: 1

      Microsoft also has an NFS connectoid, I think, if you wanted to go that route, in case you *did* get Win machines at some point in the future.

    4. Re:Samba has the best performance. by Anonymous Coward · · Score: 0

      I can give you several reasons.

      1) Anything posix can use Samba, who cares if you have a windows machine or not.
      2) NFS sucks, configuration-wise. SMB uses two static ports, easier to firewall without fucking with your config. samba configuration is slightly less retarded than NFS, which is pathetically insecure.
      3) NFS support between systems is not consistent. I tried to run NFS between OpenBSD and Linux, and Linux' handling of the don't fragment flag fucks all up my firewall. CIFS-samba works fine, and samba-samba is the same codebase!
      4) if you ever add a windows system to your NFS network, prepare for suckage. Some systems it works fine, some it doesn't. You may be able to use the free MS tools for this if you have NT or 2K or XP Pro, but if you have 9x or XP Home, you gotta buy a 3rd party NFS tool. Why bother? Samba is FREE.
      4) Samba is faster than NFS. Don't deny it.
      5) I've neglected mentioning other remote filesystems. Have fun getting support for Coda if you have a heterogenous network. No drivers for OpenBSD, couldn't get it to work in OS X.

      I have tried it all. Samba/CIFS is fast, easy to configure, and works with EVERYTHING. I've run it on OpenBSD, NetBSD, AIX, OS X, Linux, QNX, BeOS, and of course Windows.

      So my question to you is: what combination of needs do you have that requires your solution to be unsecure, hard to configure, slow, inconsistently operating, or otherwise unsupported? You can mitigate all of this using Samba.

    5. Re:Samba has the best performance. by JabberWokky · · Score: 1
      Works for me.

      Log in.

      --
      Evan

      --
      "$30 for the One True Ring. $10 each additional ring!" -- JRR "Bob" Tolkien
  8. Mac Mini + Firewire Enclosure by MaxQuordlepleen · · Score: 4, Interesting

    I was thinking of using a mini and a single firewire disk for a somewhat similar project.

    But, OS X has RAID capability, so you could use something like this:

    1. Re:Mac Mini + Firewire Enclosure by MaxQuordlepleen · · Score: 1

      Doh.. invisible link

      This Device
    2. Re:Mac Mini + Firewire Enclosure by hillg3 · · Score: 1

      Unfortunatly the mac mini doesn't provide for much expansion. A single memory slot doesn't go very far. The small form factor starts to become a problem when you're attaching a ton of external drives - it makes it a mess. There is also something to be said for the value of hardware based RAID vs Software based. Although cute and cheap, it'll end up costing more later (read: external drives are more expensive).

      I say buy a big ass case (its going in the basement afterall) install your favorite distro and have fun.

  9. Why not... by hcdejong · · Score: 1

    just add some harddisks and a RAID controller to one of your existing computers? Saves adding YA device, and you probably already have a machine that's on 24/7 anyway.

    1. Re:Why not... by mwvdlee · · Score: 1

      I was thinking the same thing. Just get a dedicated external (SCSI) box to house the drives if there's no more room in the main box. If your main box isn't on 24/7 it'd most likely still be cheaper to leave it on than to add a new box running 24/7.

      --
      Slashdot social media options: AIM, ICQ, Yahoo, Jabber and Mobile Text. Why no MySpace?
    2. Re:Why not... by tchuladdiass · · Score: 1

      I think the main reason for setting up a seperate box for your server is that you are less likely to "play around" with it. So your files are always available. You can tear down and rebuild your main box at will without the worry of loosing anything critical (keep you home directory nfs-mounted, etc.)

    3. Re:Why not... by hcdejong · · Score: 1

      He says he already has "several computers", I suspect not all of them are used as workstations.

  10. I want to build a 2.8TB storage array by Yeechang+Lee · · Score: 4, Interesting
    I'm very interested in this subject, and recently began a Usenet thread on the topic with this post:

    BACKGROUND:
    Inspired by http://www.finnie.org/terabyte/, a few months ago I started a thread to discuss the idea of building my own 1.5TB storage array using software RAID50 to hold video files.

    The main hitch keeping me from going ahead was that I had trouble finding eight 250GB drives at the price I wanted. Clearly, I wasn't thinking big enough; just before Christmas, I lucked out and bought nine Seagate *400GB* drives at $230 each (plus a $30 rebate on the first one) from CompUSA. I now have 3.6TB of raw storage sitting in a shipping carton in my apartment. Even with RAID 5 and keeping a drive as a spare, I'll have 400GB*8-400GB=2.8TB of space.

    PURPOSE:
    Video files (episodes of TV shows I already watch and enjoy, plus rips of TV shows on DVD sets I own). I'd like to build a MythTV system too, but the storage array comes first. No games.

    PRIORITIES, in order:
    * Stability. I'm very much in favor of build-right-and-leave-it-be as opposed to constant hardware tinkering.
    * Minize heat/noise. I have a studio apartment.
    * Price. I've already spent a fortune on the drives; I don't want to spend more on the rest than I need to.
    * Performance. Not that I'm against a fast machine, but I know that a storage server doesn't need the latest-and-greatest in terms of horsepower.

    PARTS:
    Advice is always appreciated. All prices are from ZipZoomFly.com unless otherwise specified.

    * Case: Antec SX1040BII, $92. I almost went with an Antec PlusView1000AMG ($72), but decided that a) the SX1040BII's 430W power supply might be enough for my purposes and b) if it isn't, a quality Antec supply for $20 that I can use someplace else is hard to pass up.
    * Motherboard: Gigabyte GA-7N400 Pro2 Rev 2, $98. I'm building a system with *massive* amounts of PCI traffic, and I'm hoping a Nvidia-chipset board will prove more stable than the hordes of Via-based models out there.
    * CPU: AMD Mobile Athlon XP 2400+, $89 at Newegg. The 2200+ is $10 cheaper but they're both rated at 35W. If there's a sub-35W processor that supports a 266-MHz FSB I'd like to hear about it.
    * CPU heat sink: I'm lost here. I've had a good experience with a Thermalright SLK-800 I installed three years ago, but current Thermalright heat sinks all seem to specify Athlon 2500+ and up. What gives?
    * CPU fan: A leftover Vantec 80mm fan. Loud but effective.
    * Memory: One 512MB DDR PC3200 DIMM. $80 at Crucial. My leftover 256MB PC133 168-pin DIMMs aren't going to work with the motherboard, right?
    * Power supply: Thermaltake PurePower 560W, $102. In case the Antec 430W supply mentioned above proves insufficient.
    * Drives: Eight Seagate Barracuda 7200.8 400GB ATA drives plus one cold spare, $230 each at CompUSA without rebate; currently $230 each after $70 rebate. Lite-On DVD+-RW drive, $60-100. Leftover Maxtor 13GB ATA drive for booting.
    * ATA controller: Two Highpoint RocketRAID 454, $87 each at Newegg. Unlike Ryan Finnie I am *not* planning on doing hardware RAID features; rather, I'm simply looking for high-quality ATA controller cards. If anyone can recommend high-quality non-RAID controller cards with four channels (or more) on each, I'd like to hear about it. For that matter, if four two-channel ATA controller cards are doable with my motherboard setup, I'd like to hear about that too.

    So, what do y'all think?
    1. Re:I want to build a 2.8TB storage array by Keruo · · Score: 1

      This won't be best solution noise-wise, but this would extend the drive lifetime.

      Cut extra holes to the case and build air-flow tunnel to help cooling the drives.
      I measured drop from 46C to 25C with 12cm nexus low speed fan.

      My setup looks roughly like this from above: |A_A____AAA|
      |/A|AAAA|AA:
      A==|AHDA|AA:
      A|A|AAAA|AA: holes to allow flow through
      A==|____|AA:
      |\_AAAAAAAA|
      =========== -front panel

      (replace the A's with space, my ascii art won't scale right)
      So basically there's two 12cm fans, one for each 3 drives, there's enough airflow to fit 9 or even 12 drives, but my current setup uses only 6 drives.
      Height might become problem in midi atx for more drives. The air flower is made from two empty pringles cans, can base removed and can cut in half, then taped together so that the height is equal to the case height.
      Attach the fans to the air flower, so that they suck air into the case.
      The case itself is standard midi-atx case from where I removed all drive slots, no need for 5"1/4 slots since this is for network storage.
      You can use air ventilation strip (or what ever it's called) to build attachment place for the hd. It has perfect readymade hole size for hard drive screws.

      It looks roughly like this: _____________
      oo/-\oo/-\oo/-\oo
      oo\_/oo\_/oo\_/oo
      -----------------
      There's few holes on the other side of the case allowing air flow through the case passing the hard drive.
      The design is pretty much 1:1 copy from compaq proliant tower model. For performance, if you can shell out few more $$, consider using serial-ata drives instead.
      Wiring 9 hard drives in normal case makes quite cable mess and it won't help the air flow inside the case.

      Faster memory/cpu fsb might increase performance, but since you're probably the only user of that machine, network/cpu load won't probably be problem.

      --
      There are no atheists when recovering from tape backup.
    2. Re:I want to build a 2.8TB storage array by drsmithy · · Score: 1
      Inspired by http://www.finnie.org/terabyte/, a few months ago I started a thread to discuss the idea of building my own 1.5TB storage array using software RAID50 to hold video files.

      Why use RAID50 instead of RAID5 ? You're not going to get any meaningful performance benefit and you're "wasting" a drive that could be otherwise used for more space or a hotspare.

      Incidentally, the guy on that web page has got some very, very strange ideas. His whole reasoning for not having multiple drives on the same channel is simple flat-out _wrong_, and the conclusions (and hence solution) he draws from that is similarly flawed.

      To top it off, most of the "advice" and comments being posted in your usenet thread is, at best, misleading as well. For example:

      "RAID 5 is about as fast as RAID-0 on reads and the bottleneck on writes is the parity calculation, not access time for the drives."

      This is simple false (well, the part about RAID5 being about the same as RAID0 for reads isn't). Even the paltry 366Mhz Celeron in my fileserver can perform parity calculations at nearly 1GB/sec. The bottleneck with RAID5 most certainly *is* the physical disk accesses (assuming any remotely modern hardware), and anyone suggesting otherwise is simply regurgitating crap.

      Motherboard: Gigabyte GA-7N400 Pro2 Rev 2, $98. I'm building a system with *massive* amounts of PCI traffic, and I'm hoping a Nvidia-chipset board will prove more stable than the hordes of Via-based models out there.

      I would suggest using a motherboard with multiple PCI buses. Basically, look for something that's got two (or more) 64 bit PCI-X slots, as these boards nearly always have multiple PCI buses. It will be in the detailed specs - you want at least three 64 bit/66Mhz (or faster) buses on the board - one for each slot and one for "everything else" (onboard network, USB, video, any other PCI slots, etc). Added to this, I'd go so far as to strongly advise buying a genuine intel "server" or "workstation" board. To put it bluntly, no consumer/aimed-at-gaming motherboard is going to be designed for, or likely to handle well, massive amounts of bus traffic (nor is it going to have multiple buses). Your CPU speed is irrelevant - you simply can't buy _any_ CPU slow enough today to bottleneck the sort of device you're talking about.

      My advice is to basically ignore just about everything on that page. Putting multiple IDE drives on a channel will destroy performance (as that page shows in its benchmarks) and using RAID50 instead of RAID5 is pointless. Just buy yourself some four port IDE controllers, put one drive each port and use Linux's software RAID to create two four-disk RAID5 devices (or one 8-disk device if you prefer). Then put LVM over the top to make the space more manageable. If you've got the hardware resources, make sure each disk controller is on its own PCI bus, or at the very least sharing it with something inconsequential (like the USB controller or the video card). Prefer putting the disk controllers onto dedicated buses before the NIC, even if it's GB ethernet, as the network overheads will probably bottleneck you before the bus will.

    3. Re:I want to build a 2.8TB storage array by Yeechang+Lee · · Score: 1
      Why use RAID50 instead of RAID5 ? You're not going to get any meaningful performance benefit and you're "wasting" a drive that could be otherwise used for more space or a hotspare.

      You're right; I'm planning to go with RAID 5, not 50. I neglected to make that clear.

      I would suggest using a motherboard with multiple PCI buses. Basically, look for something that's got two (or more) 64 bit PCI-X slots, as these boards nearly always have multiple PCI buses. It will be in the detailed specs - you want at least three 64 bit/66Mhz (or faster) buses on the board - one for each slot and one for "everything else" (onboard network, USB, video, any other PCI slots, etc). Added to this, I'd go so far as to strongly advise buying a genuine intel "server" or "workstation" board.

      Would something like this qualify? It has two PCI-X slots, but I don't see any mention of multiple PCI buses per se.
    4. Re:I want to build a 2.8TB storage array by drsmithy · · Score: 1
      Would something like this qualify? It has two PCI-X slots, but I don't see any mention of multiple PCI buses per se.

      It looks reasonable. If you look in the motherboard's manual, on page 1-18 there is a block diagram showing the logical layout of the buses, etc. Note that each PCI-X slot gets its own bus, which it shares with one other item (the SATA and LAN controllers). "Everything else" (regular PCI slot, IDE, USB, etc) gets its own standard 32bit/33Mhz bus.

      Also, after looking around a bit myself it seems that three 64/66 (or faster) buses on a single board is pretty high end. Far more common is the configuration this board has, with one 64/133, one 64/100 and one 32/33. Realistically, for your scenario, that should be more than adequate.

      You should also consider whether or not you need a dual board. I know intel have single processor boards with multiple buses, but I can't speak for other manufacturers. Certainly, dual processors is considerable overkill if all you're going to be doing is serving up some files :).

    5. Re:I want to build a 2.8TB storage array by Yeechang+Lee · · Score: 1
      You wrote:
      Far more common is the configuration this board has, with one 64/133, one 64/100 and one 32/33. Realistically, for your scenario, that should be more than adequate.

      How about something like this? Assuming I can find two four-channel PCI/66 ATA controller cards (two-channel PCI/66 cards are easy to find, I know). I'm not necessarily looking for the ne plus ultra of performance, but rather some reasonable combination of price, performance, and stability that will let me serve HDTV streams and below. This machine is appealing because of the cost, the Intel motherboard, the dual processors. The company is local to me too, so I'd save on the shipping too.
    6. Re:I want to build a 2.8TB storage array by drsmithy · · Score: 1
      It will be rock stable, but it will bottleneck at the buses. I'm not sure what sort of bandwidth you need for serving up HDTV though, so it may well be sufficient. However, moving things around internally on the machine and rebuilding the RAID array(s) will be negatively impacted. Of course, if you're just going to stick this on a 100Mb network for the forseeable lifetime of the machine, then it's all pretty irrelevant, as even my dodgy old 366Mhz Celeron with a ZX motherboard (pilfered from an old Gateway desktop machine) and its 3 32/33 PCI slots will saturate a 10/100 connection :).

      Intel's web page for that board is here and the detailed specifications are here.

      On page 14 of that PDF you'll note that the two 32/66 slots share the same bus, rather than being independent.

      Added to that:

      It's only got 10/100 ethernet onboard. I imagine if you don't already have gigabit you'll want it soon and while a 32/33 GB card will probably give you as much speed as you'll get anyway with low end consumer equipment, it's still going to be bogging down the bus that everything else is on.

      Those are old 5v PCI slots. Newer cards may not work in them.

      The motherboard probably won't handle the newer, high-density PC133 SDRAM and may even *require* ECC RAM. Big $$$$.

      The first board you posted was much better (and, I'd imagine, much more expensive). If you want to look for second hand equipment, try to find something that's either an intel P4 or P4 Xeon motherboard, or a P3/P3 Xeon board using a Serverworks chipset.

      The board I used in the filserver I built for work was this one. It's got three 64/66+ slots, although they do all share a bus (but a 64/66 bus has quadruple the bandwidth of a 32/33 one), onboard GB and 10/100 ethernet. There's also a variant with onboard SCSI. I imagine it would be quite sufficient for any tasks you'll need it for :).

      Also, if you're looking for a 4 channel card, I use one of these in my home server. However, I don't use the hardware RAID features it has - I prefer Linux's software RAID. It is a 32/66 card, but unfortunately it requires a binary kernel driver from Promise (at least on 2.4 systems). I've not had any problems with it at all.

      If you haven't already purchased the drives, I'd strongly recommend going SATA. The easier cabling is worth it in itself, IMHO. Certainly when I add another 4 (x200GB) drives to my system in the very near future they'll be SATA.

  11. Wait, wait, wait... by Xaroth · · Score: 3, Funny

    Lemme get this straight. You asked Slashdot whether you should use Linux or Windows? Do you never read the comments around here?

    Oh, wait.

    I suppose this is Slashdot. Nevermind. ;)

    1. Re:Wait, wait, wait... by Zork+the+Almighty · · Score: 1

      Well, he wanted a home-grown solution, and that means Linux From Scratch. Now where can I get some hard-drive seeds ?

      --

      In Soviet America the banks rob you!
  12. One word: by saintp · · Score: 2, Informative
    Newegg

    Buy everything piecemeal. I just priced out a 900Gb NAS for $800, shipping included. Slap it all together, put your favorite Linux distro on it, and run Samba.

    You won't be able to beat the price of the real thing by much, though: big hard drives are still expensive, and so are RAID cards (if you go that route).

  13. USB Drive Enclosures... by tcyun · · Score: 1

    So, I have been wondering about this myself, partic as I have a large number of almost big enough hard drives sitting around. An inexpensive alternative (with obvious performance hit) might be to use usb or firewire disk enclosures and add them en mass to whatever system you are using.

    I realize that this is a bit different than your orig question, but it might be an interesting stop-gap solution, partic as the enclosures are about $25 each (without disk).

    1. Re:USB Drive Enclosures... by hcdejong · · Score: 1

      If you want to do this, FireWire may be a better bet than USB2. I've got some external drives that have both FW400 and USB2, and they're about 30% faster when connected via FireWire. Also, IIRC FW handles multiple disks on one bus better than USB.

    2. Re:USB Drive Enclosures... by delus10n0 · · Score: 1

      The state of external enclosures, USB chipsets and firewire chipsets is a sad thing.

      I had to go through 3 different USB chipsets (different motherboards) before my external enclosure would write data without random corruption. The nForce2 motherboards are notorious for having strange timing issues, and making this problem even more apparent.

      Firewire's no better, either. I had an Adaptec firewire card (Texas Instruments chipset, I believe) and it worked with my external drives, yet after 5 or 10 minutes, would randomly drop the drive and corrupt data. Also, if I booted up my computer with the firewire drives attached, they wouldn't be found! On another computer with built-in firewire (nForce2 motherboard), Windows would blue-screen whenever a firewire drive was attached. I also tried my Creative Audigy's "firewire" port, and it too failed. Only after purchasing another firewire card from NewEgg was I able to get my drives semi-working in firewire mode.

      It's really sad that these companies and chipset manufacturers can't get on the same page. In the end, it just screws the customer. I don't appreciate losing 100+ gigs of data because you guys wanted to cut corners.

      --
      Not All Who Wander Are Lost
    3. Re:USB Drive Enclosures... by Anonymous Coward · · Score: 0

      Only after purchasing another firewire card from NewEgg was I able to get my drives semi-working in firewire mode.

      ARG. You didn't mention what card worked. :)

  14. There's only one problem with storage by vasqzr · · Score: 1


    Backing it up. HD's have far outpaced backups in price/speed

    1TB NAS? 400GB HD?

    No problem. Want it backed up to ONE tape? Every day? Have fun.

    1. Re:There's only one problem with storage by SoVeryWrong · · Score: 1

      True, but it's probably cheaper to do a RAID solution and just swap out hard drives when they die rather than buying a DLT drive and the associated tapes.

      I think an ideal solution would be a small RAID solution (possibly with 2.5" drives) in an external enclosure with an Ethernet connection in a small form factor. Plug it into the network, run your backups to it, unplug it and put it in a fire safe.

    2. Re:There's only one problem with storage by vasqzr · · Score: 1


      What happens when you need a file from:

      Yesterday

      Last Monday

      Last year?

    3. Re:There's only one problem with storage by tchuladdiass · · Score: 2, Interesting

      When you're dealing with that much storage, you really need to catagorize your files into what needs to be backed up and what doesn't. In this type of application (if it was me), most of the storage is likely to be filled with dvd rips & mythtv recordings, or backups from your main system(s). So you would want to backup a list of what you have, but you can always recover from original media (in the case of dvd rips, or off of re-runs for tv shows). Also, on a storage server you're more likely to have data loss from physical driver failure (hence the raid 1 or 5), Since you won't be playing with the system that much once it's set up, you remove a lot of risk factors that you'd have on a desktop system (accidental file deletion, filesystem corruption, ...)

    4. Re:There's only one problem with storage by SoVeryWrong · · Score: 1

      Well, when I think of network storage in the TB range, I was thinking for backup purposes. If someone honestly needs TBs of non-volatile data, I'd first ask them for the IP:Port of their FTP.

      In any case, "Last year" seems unrealistic. I don't know *companies* who keep 365day backups, the tapes are just too damn expensive. I mean if the data is really so important, wouldn't someone have noticed it missing before the next year rolls around?

    5. Re:There's only one problem with storage by hcdejong · · Score: 1

      We do. In fact, we've got backups all the way back to when we first started using DDS3.

    6. Re:There's only one problem with storage by hcdejong · · Score: 1

      Whoops. Hit 'submit' too soon.
      Anyway, we can recover every project we ever did, and yes, sometimes we do need those old projects.

    7. Re:There's only one problem with storage by vasqzr · · Score: 1


      Tapes aren't that expensive. One set a month/year isn't extreme.

      They're really cheap when you consider a $40 tape vs spending a week re-creating a document from a hard copy (if you have it)

    8. Re:There's only one problem with storage by Nutria · · Score: 1

      Tapes aren't that expensive. One set a month/year isn't extreme.

      They're really cheap when you consider a $40 tape vs spending a week re-creating a document from a hard copy (if you have it)


      Yeah, but it's the drives that jack up the price.

      --
      "I don't know, therefore Aliens" Wafflebox1
  15. Old hardware will do by madaxe42 · · Score: 2, Informative

    My current fileserver is an aging 600MHz P3, with 4 PCI slots, each occupied by a raid card. I've decked it out with 250GB disks, 4 on each card, 2 on the mobo, and 2 100GB disks on the mobo for swap,boot,and root. I've got onboard 100Mb ethernet, no graphics card, no sound. I've installed gentoo with a stripped down kernel, running samba, and it all works beautifully.

    It's a fairly large box, in a full size ATX case, and the disks are also stored in a rack which I built and bolted onto the side of the case, as I ran out of space. Each partition is 1TB, using raid-0 (linear), as I don't care about redundancy too much. Power is supplied by a 450W supply, and cooling by a stack of old 6" server fans. Also, it lives in an outside closet, which helps to keep it cool.

    In all, the setup has been relatively cheap, all the hardware is from eBay, and I've yet to have a problem.

    I'm also running a bootp server off it, and am netbooting two media stations from it!

  16. Power saving? by shooz · · Score: 2, Interesting

    I would also like to build such a thing, but a box full of disks spinning 24/7 is likely to use a lot of power and give off a lot of heat. Are there any power saving solutions to this? It would be nice if there was some intelligent software that, when you try to play a movie off the disk, spin up only the disk that has the file, read a large chunk of it into memory, and spin the disk back down.

    Is this doable?

    1. Re:Power saving? by snower1313 · · Score: 2, Informative

      hdparm in linux.

  17. Do you know the bug references? by forged · · Score: 1

    You seem to know the issue(s) quite well, would you care to point out where to find out more? Specific bug numbers or URLs to specific documentation of the flaws would be nice.

    1. Re:Do you know the bug references? by MarkRose · · Score: 1

      Yes, I would like to read more about this, too.

      --
      Be relentless!
    2. Re:Do you know the bug references? by GigsVT · · Score: 3, Informative

      Well, the LBD mailing list archive might be a good place to start, since I specifically mentioned it.

      Patch 1

      Patch 2

      Says Tony:
      "Here is an "example" patch to fix some of the LBD issues with various
      filesystems (ext3, xfs, reiserfs, afs). Unfortunately it looks like
      there are many more LBD problems with the filesystems that I didn't fix,
      so I am just calling this an "example" patch that shows some of what
      needs to be done, but doesn't fix everything."

      He later mentions the only XFS fix is in some debugging code, and it appears to be the cleanest of them.

      --
      I've had enough abrasive sigs. Kittens are cute and fuzzy.
  18. take your time by cryptozoologist · · Score: 1

    hard disk storage is still accurately described by moore's law, so it dosen't make any sense to buy storage you need right now. if you need a terabyte now, then get whatever you need. if it is going to take a year to fill up a terabyte then start small and build up to a terabyte. when you get to a terabyte, you can take the money you saved and buy a 2 terabyte nas, backup the first one and have another terabyte to fill up.

    i bought a 160 gig drive last year and for various tedious technical reasons the computer i put it in only recognized 120 gig. i went ahead and formatted it anyway figuring i would try to get at that final 40 gig when i needed it, only i haven't needed it yet, so i spent too much for that drive.

  19. Translation: by Gothmolly · · Score: 0

    I want to build a fileserver, can you help me?

    --
    I want to delete my account but Slashdot doesn't allow it.
  20. What I did by Winter · · Score: 1

    I did this a while back. (3+ years, so it's obviousely not 1TB).
    My fileserver runs 24/7 and has been doing that for about 3 years (minus downtime for moving).

    I use 4 40GB SCSI drives in RAID 5 configuration, using Linux software RAID.(Obviousely I would have used large IDE now, but these were the cheapest per GB at the time, and I already had the SCSI controller laying around)
    This gives me about 136GB of useable space. PArtition is running ext3 as filesystem.

    I have had one disk fail because of a bad solderjoint on the power connector. I had a spare disk put in and newer lost any data (just a bit of uptime), and the array could serve data while it was still rebuilding the new disk.

    The CPU is a Pentium II 450 and it has 256MB of RAM. Is running on a Tyan dual mobo with builtin 10/100 and SCSI.

    The server is running an older RedHar release with no GUI, upgraded to Kernel 2.6.8.1.

    The RAID is shared on the network using Samba.

    Read performance is decent, getting around 5-7MBytes/sec read speed which is pretty good on a 100Mbit link. Write speed is slower, around 3-5MB/s

    For gigabit, the CPU should be at least a 1Ghz beast, and transfer speed to/from the disks are going to be the main bottleneck.

    --
    main(i){putchar(177663314>>6*(i-1)&63|!!(i<5)<<6)&&main(++i);}
  21. GMS P502 “Spider” + PCI-X + RAID5 by forged · · Score: 2, Interesting
    The P502 "Spider" motherboard from GMS features a 800 MHz PowerPC processor, 2x onboard GigE LAN, optional PCI-X expansion bus, 256MB ECC memory, 16MB onboard flash, runs Linux, consumes 10W of power and measures about the size of a regular pack of cigarettes.

    Imagine this with a high-performance SATA raid controller [1] [2], in an enclosure barely bigger than the 4 hard drives alone.

    Someone knows here to buy this motherboard? What about practical experience with this sort of configuration?

    1. Re:GMS P502 “Spider” + PCI-X + RAID5 by Anonymous Coward · · Score: 0

      He said he needed PCI Express, not PCI-X, butt monkey.

    2. Re:GMS P502 “Spider” + PCI-X + RAID5 by Anonymous Coward · · Score: 0

      Well, I suspect the question asker means PCI-X (eXtended) if they want storage cards. I haven't seen any RAID or any other controller cards doing PCI-E (Express) yet.
      And I got confused the first time I came across the PCI-X, PCI-E thing too, so take it easy.

  22. geeze... by Malor · · Score: 2, Informative

    Wow, a front page article on Slashdot that amounts to, "gee, how do I build a server?" Spiffed up a bit with trendy, techie-sounding words, but cripes. This is FP news-worthy?

    That said... if all you're doing is file serving, a tiny machine by modern standards is fine. 64 megs of ram in a P3/400 would make a very solid home server. If you want to use software RAID, though, it's a good idea to go faster... you'd want at least 1ghz for that, maybe 2, depending on how much traffic you were sending to the box and how patient/impatient you are.

    Since it's going in your basement and you have no worries about size or noise levels, get a big whompin' case with lots of 5.25" slots. Cremax makes some nice enclosures that will let you put 5 3.5" drives into 3 5.25" bays, with good fans for cooling. They have multiple variants. I'm using the SCSI flavor, but you can get them in SATA too (and IDE, I think, but I'm less sure about that.)

    I have an older 3ware 8500 RAID card, and it's dismally slow at RAID 5, even though it's supposedly 'optimized' for it. I don't know if the newer SATA versions are better, but while they are well-supported in Linux, and, being hardware RAID, are a total no-brainer from an admin perspective, my generation of cards was horribly, horribly slow. I get at least four times the performance using Software RAID on an Athlon 1900+.

    This is how my network server looks:

    Big case;
    400W PC Power and Cooling power supply;
    ASUS A7V333 motherboard;
    Athlon 1900+, I think just 266mhz FSB (not sure);
    1 gig of RAM (nice for caching, not at all necessary to have this much);
    Ancient video card, Matrox Milllenium 2, I think;
    3com 3c509 network card;
    ICP Vortex 32-bit RAID controller, bought used. The first one I got was dead... had to replace it. I got it pretty cheap, intending it for another project that fell through, and so I ended up using it at home instead. I think it was about $100, but I'm not sure now. These boards KICK ASS. Great linux support, VERY fast. Awesome hardware.
    6 18-gig 10KRPM SCSI drives; machine boots from this array, and Debian is installed here;
    2 Cremax 5-in-3 SCSI enclosures;
    1 3ware 8500+, in JBOD mode (software RAID is WAY faster);
    4 80 gig IDE drives (small, but I set this part of the system up a long time ago)

    The SCSI array is damn fast, an excellent spot for interactive, disk-intensive things like IMAP or big compiles, while the slower IDE array is ideal for filesharing.

    You should be able to set up a similar system for, oh, $1500? And keep in mind... this is HUGE overkill for a home network, it would be a solid backbone for a company up to about 50 people... though it might need more drive space, and I'd probably want redundant power supplies in a really central machine. You could run mail, internal DNS, DHCP, a squid proxy, internal webserver, and Samba for that many people without it even working that hard.

    File sharing is fundamentally a tremendously simple thing, and it just hardly takes anything at all to do a perfectly fine job. Once upon a time this was akin to rocket science, but at this point, even a garbage $200 PC from Walmart would probably be an okay fileserver.

    Again: the specs on the machine above are wild overkill... swatting a fly with a sledgehammer. But if you want to spend that much money, or you have most of the parts laying around the house anyway, it'll do a damn good job.

    1. Re:geeze... by Gudlyf · · Score: 1
      Ancient video card, Matrox Milllenium 2

      This makes a heck of a lot more sense than the original poster's requirement of a PCIe slot on the server. Why would you need a PCIe slot on something that's just serving as a NAS and sitting in your basement?

      --
      Trolls lurk everywhere. Mod them down.
    2. Re:geeze... by SuiteSisterMary · · Score: 1

      Well, in this case, so you can add more really really fast disk controllers, I'd say.

      --
      Vintage computer games and RPG books available. Email me if you're interested.
    3. Re:geeze... by Homology · · Score: 1
      Ancient video card, Matrox Milllenium 2 Th

      is makes a heck of a lot more sense than the original poster's requirement of a PCIe slot on the server. Why would you need a PCIe slot on something that's just serving as a NAS and sitting in your basement?

      A 32bit 33MHz PCI bus can handle at maximum 133MB/s, and that includes all your hardisks and network card. With a fast harddisk and a gigabit network card you can saturate the PCI bus, so a PCIe requirement (cheaper than PCI-X that is used for server motherboards) is quite reasonable.

    4. Re:geeze... by Anonymous Coward · · Score: 0
      A 32bit 33MHz PCI bus can handle at maximum 133MB/s, and that includes all your hardisks and network card. With a fast harddisk and a gigabit network card you can saturate the PCI bus, so a PCIe requirement (cheaper than PCI-X that is used for server motherboards) is quite reasonable.

      I think Gudlyf's point is that this is suppose to be a cheap, home file server; you know, serve one or two video and MP3 streams, maybe backup storage for a workstation or two. Not a high-bandwidth company database or webserver. It's highly unlikely he'll be able to saturate a 100Mbps network card; nevermind a gigabit NIC.

      Reasonably, he (Ken) might like to have a gigabit network card (and, hey, they're not that expensive), but he should ask himself whether he requires one (and the PCIe slot to support it).

  23. more than you need by beegle · · Score: 4, Informative

    A few comments about this

    -Get the best-value processor that you can find. You won't need the fastest thing out there, but it's better to have a little more "oomph" than you need. If you end up using an encrypted filesystem at some point, you'll want enough power to decript and keep the network "fed"

    -Have a plan for adding a second network interface. Maybe you don't need it now, but once the DIY bug bites, you may find yourself wanting to use the machine as your NAT box or as a wireless access point or something like that.

    -Think about noise and power use. Yeah, those WD Raptors are fast, but they're really loud, too, particularly if you buy a pile of them. You might want to think about acoustic material for the inside of the case -- your local car customizing shop can hook you up. You'll also want an "overkill" power supply for the case so that you don't have problems when you add more drives later.

    -Think about heat and airflow. At this time of the year, it's easy to ignore (Dear Australia: yes, I know it's summer there now), but during the summer, stuffing the fileserver into the closet might not be such a good idea.

    -Consider underclocking. If you do buy a better processor than you need, bump the speed down for now. Less power, less heat, less noise.

    -Get a BIOS or hardware-level RAID mirror for your "root" disk. You can use software RAID for the data disks, but you want to be absolutely certain that you can recover the disk with information about the software RAID. The RAID does no good if you don't know how to access it.

    -If you use Linux, LVM will become your new best friend.

    -Consider buying hard drives that are carried by your nearest Best Buy/CompUSA/other computer store. You don't actually have to buy the initial batch from there, but if a drive in the RAID set goes bad, you'll want to replace it ASAP. It's nice if you can do that tonight rather than "in a few days".

    --
    --
    1. Re:more than you need by alan_dershowitz · · Score: 1

      My fileserver sounds like a harrier jet, but it doesn't matter when it's stored in the basement. It's _network_ storage, doesn't have to be nearby.

  24. Take a look at the PetaBox by TTK+Ciar · · Score: 4, Interesting

    When we developed the PetaBox at The Archive, the idea was to use off-the-shelf PC hardware and maximize GB/buck, while keeping cooling and power costs low. It's worked out pretty well. See also my unofficial PetaBox web page.

    It turns out that you really don't need much of a PC to serve files. We underclocked the cheap little Via C3 processors to 800MHz to reduce power and heat, and they still troop along nicely. SATA is not necessary, since you're going to be bottlenecked on the network connection anyway. We used 512MB of RAM per node, but only because our system runs a gaggle of perl scripts to provide a variety of services (file searches, XML-based metadata updates, etc). If you're just going to be running NFS or Samba, 256MB is probably plenty (unless you choose to run Gigabit over a mere 32-bit PCI bus, in which case 512MB or 1GB would be better, so that you're reading more from filesystem cache and pounding the hard drives over your overloaded bus less). Gigabit ethernet is a must (we used 100bT for the PetaBox, which is annoying at times, but the cheaper 100bT 48-port switches were instrumental in keeping the overall price of the system low). We stuck four hard drives in each case, mostly from previous bad experiences trying to work with eight-disk machines. I can't say too much about the disk failure rate statistics which incited us to switch to Hitachi Deskstars, but I will say that I'm glad our PetaBox is using Deskstars and I will only use Deskstars in my workstation at home.

    If you really, really want to keep the gigabit pipe full while pounding on your disks, then a newer bus like PCI-Express is necessary. Otherwise, I'd be tempted to go with an older, cheaper (and imo, more reliable) Pentium-II or -III based PC. You can get solid, reliable, well-cooled and well-dustfiltered early model VA Linux servers with 500MHz Pentium-III's for $200 or less. I must stress the importance of buying a really solid, rigid case. Over time, normal computer cases get all bendy-wendy, turning every part into a moving part, including parts you don't want to have moving at all. Fans will start sticking, motherboard traces will start breaking, etc. Most of the rack-mountable cases are made of good thick solid steel panels, which makes them heavy as f**kall, but IMO that's a small price to pay for a system that will run forever.

    For operating system, the most important thing is to get something you know how to run and maintain, or can get help running and maintaining. If you have geek friends who are willing to provide technical assistance, find out what they know best and use that. A well-known operating system will probably be of more use to you than a technically better, but less well understood, operating system.

    Having said that, my personal preference is Slackware Linux, because I appreciate its philosophy of keeping things simple, and preferences for packages which are the most stable, as opposed to newest versions or lots of features. My second choice would be FreeBSD. Third would be the OS we decided to use at The Archive for the PetaBox nodes, Debian Linux. But if all you know is Windows, then go ahead and use Windows.

    Regarding RAID, it's been my experience working at The Archive that RAID is often more trouble than it's worth, especially when it comes to data recovery. In theory, recovery is easy, you just replace a bad disk and it will rebuild the missing data, and you're good to go. In practice, though, you will often not notice that one of your disks are borked until two disks or borked (or however many it takes for your RAID system to stop working), and then you have a major pain in the ass on your hands. At least with one filesystem per disk, you can attempt to save the filesystem by dd'ing the entire raw partition contents onto a different physical drive of same make + model, skipping bad sectors, and then running fsck on the good drive. But if you have

    1. Re:Take a look at the PetaBox by FunkyRat · · Score: 1

      Interesting comments regarding RAID. They seem to defy common sense, but common sense is not always correct.

      Just out of curiosity, why did you end up going with your third choice for OS (Debian) rather than your first or second choices?

    2. Re:Take a look at the PetaBox by ComputerSlicer23 · · Score: 1
      As to your RAID thoughts. You are clinically insane. man "mdadm". On a RedHat machine "service mdmonitor start".

      mdadm --scan --detail > /etc/mdadm.conf
      echo "DEVICE /dev/[sh]d[a-z][1-9]" >> /etc/mdadm.conf
      echo "DEVICE /dev/[sh]d[a-z][a-z][1-9]" >> /etc/mdadm.conf
      echo "MAILADDR alert_email@domain.com" >> /etc/mdadm.conf
      chkconfig mdmonitor on
      service mdmonitor start

      You can easily adapt the RedHat scripts to run on Slackware. Personally I would recommend setting up nagios or some other software monitoring. Everytime something goes wrong on a machine, we write a script to monitor that. Now, every few things go wrong unnoticed.

      We write monitoring scripts that run via nagios, that check that out. Within 10 minutes of a drive failing I have a page, within 5 I have an e-mail (there's a five minute latency on nagios recognizing the problem, and about a five minute latency from the time the paging company gets the page until the pager goes off). That's pretty much the worst case scenerio.

      I'd really much prefer that to not having a RAID array. We've used that system (*knock*,*knock*,*knock*), for 4 years, and with about 5TB of filesystems at work, we've never ever lost a RAID'ed filesystem (worst case, was the SCSI locked up due to a driver failure, but I think that would have happened even with no RAID configuration, the machine had to be power cycled, but the filesystem was still in tact).

      We have lost several, incredibly important filesystems that weren't RAID'ed. Technically speaking the filesystem wasn't important, however, the downtime was really bad during the rebuild/recover phase. The first time we lost $10K due to a failed IDE disk that was 4 years old, we convinced the boss that he should really purchase us mirrored SCSI disks for all the OS drives, it was a cheaper one time cost.

      If you have spare drives arround, you can configure mdadm to automatically add them into the system. Unlike the standard md tools, you can have one spare for any number of md arrays.

      Kirby

    3. Re:Take a look at the PetaBox by TTK+Ciar · · Score: 2, Interesting

      Interesting comments regarding RAID. They seem to defy common sense, but common sense is not always correct.

      Yeah, though I'm not necessarily correct, either. There are plenty of smart IT professionals who disagree with with The Archive's conclusions regarding RAID. It may just be a contextual thing -- our data storage clusters are friggin' huge, and we only have three sysadmins, two of whom work part-time. A smaller system with more manpower and better discipline about following good procedures may fare better with RAID than we have.

      Just out of curiosity, why did you end up going with your third choice for OS (Debian) rather than your first or second choices?

      What I listed were my personal choices. At my own company (which only has two employees, one of them me) we use Slackware, and I periodically make sure all our software will "just work" on FreeBSD and Solaris, just in case we need to switch. But the PetaBox program at The Archive is/was very much a group effort. What I said about "go with what you know, go with what your supporting friends know" applies to business use as well. Joerg, our chief sysadmin, knows and likes Debian a lot, and had already put in a good chunk of effort on his own time tweaking a Debian box to play nicely in The Archive's larger framework. Our other sysadmins liked Debian okay, and at least knew a little more about it than Slackware (which is very old-school BSDish in ways). Brewster and Jon, two very important individuals at The Archive, were very much enamored of Debian's apt-get packaging system. FreeBSD wasn't even on the map; The Archive is very much Linux-centric.

      Given all that, when I was told to go make the architectural decisions on this new cluster, Debian seemed like a no-brainer. I didn't even waste our time trying to convince anyone that we should go with anything else. I'm fairly nonpolitical about technology, but a lot of people feel very strongly that their choices are the only good choices. Debian was acceptable to everyone who needed to be able to work on the new systems, and choosing it meant that everyone could slide easily into development and administration without kicking up any fuss. I hate it when engineers argue, and am very much willing to suppress my own ideas about what constitutes a "best direction" and throw my support behind someone else's good idea, if it means the team can pull together and do what engineers are supposed to do. (qv this page outlining my philosophies on engineering.)

      All in all, Debian was not a bad selection. It is a good, solid distribution, and it has served us very well.

      -- TTK

    4. Re:Take a look at the PetaBox by Anonymous Coward · · Score: 0
      you will often not notice that one of your disks are borked until two disks or borked (or however many it takes for your RAID system to stop working), and then you have a major pain in the ass on your hands.

      Have you considered smartmontools?

  25. What of IBM's JFS? by HoneyBunchesOfGoats · · Score: 1

    I've used that on a few of my systems...

    1. Re:What of IBM's JFS? by sarahemm · · Score: 1

      We run that here on our .75ish TB file server, and it's been great for us. We've not had any data corruption issues since we deployed it ~1yr ago, and it's survived a number of power outages with no problems. I'm impressed so far :)

  26. You don't need a fast processor by Matt+Perry · · Score: 1
    I'm doing the same thing you are. I have a case with five drives in it. One 13GB drive that's my OS and junk disk, and four 230GB drives in a RAID5 array. The machine is a Celeron 700MHz with 256MB of RAM. It works great for what I use it for which is:
    • Firewall for my wireless AP (via Matrox quad NIC)
    • File server via samba
    • Postgres
    • Java development
    • Personal email and shell stuff
    • DHCP
    • Caching DNS
    For just a file server you can get away with a much slower machine.
    --
    Slashdot: Failed Car Analogies. Amateur Lawyering. Anecdote Battles.
    1. Re:You don't need a fast processor by Anonymous Coward · · Score: 0
      For just a file server you can get away with a much slower machine.


      Said the man who doesn't use encryption or compression on his files...

  27. USB Samba Server by rerunn · · Score: 1

    Cheap USB based samba server. Just add usb drives and go:

    http://estore.itmm.ca/product_info.php?products_id =135

  28. How Much Can One Box Do by Synesthesiatic · · Score: 1

    I'm interested in a project that will be very similar to the original poster's. Ideally what I'd like to do is set up a nice RAID 5 array that can hum away in the closet, serving video and allowing me to rsync backups to it.

    It'd also be nice if I could set the box up as a Myth back-end, then put a smaller, nicer, quieter Mac Mini as a myth back-end. And if the closet box could do some low-load web serving over cable, that'd be nice too.

    But is this asking too much of one box? Will I have to get a hardware RAID controller and hardware MPEG encoder for it all to work? And what kind of power supply should I get for 5-7 7200 RPM disks?

  29. Home Server Boxen by mckwant · · Score: 1

    I've been wondering where these products are. Like just about everyone else on /., I'd LOVE to get a 1TB server going with (virtually) no processor, a decent amount of RAM, and so on, BUT:

    Why can't it be silent? I mean "drive noise + just about nothing" silent. The file serving can't use much more than a P2 for a family unit, so it strikes me that there should be a readily available fanless option.

    If it's just running the file system + maybe a minor family intranet, I'd think you could run this off of a relatively modern PDA mainboard w/an IDE controller. This shouldn't be rocket science here.

    Or is it, and I'm just missing something?

    --
    ceci n'est pas un sig.
    1. Re:Home Server Boxen by ameoba · · Score: 1

      If that's what you want/need, go for a mini-ITX EPIA board. Small, low power & several of the models operate fine with passive cooling.

      Just watch your heat - a bunch of 7200+RPM drives in an enclosed space will generate a lot of heat & require decent cooling (if you want the drives to last any length of time). This is where most of your noise is going to come from.

      --
      my sig's at the bottom of the page.
  30. Solaris 10 by soyle · · Score: 1
    You might want to look into Solaris 10 with ZFS. It's free (as in beer), comes with source, and ZFS sounds just about like something from the book of black magic. http://www.sun.com/software/solaris/10/ds/zfs.jsp
    • 128-bit filesystem (zettabyte?)
    • Automagic volume management
    • Rock-stable NFS implementation
    Serving files on a home LAN is not really that heavy on the CPU, so anything that's on the supported Solaris x86 list should do, just make sure you stick enough RAM in it. Personally I'd go for something that doesn't consume megawatts of energy and is relatively quiet.
  31. We have the same specs by mnmn · · Score: 1

    We were also looking to build 1TB+, sata raid based nas server with a pcix gigabit eth card...

    So far it seems its gonna be fedora core, on an ibm xseries 206 (real cheap in canada), with an adaptec sata raid card (8 or 16 connectors) and maxtor maxlineii drives (300gb). we'll get 5 drives first.. to make 1.2tb with raid5, and the onboard drive will just host the os in 80gb. we have a spare gigabit nic...

    total price $2000 CDN or so..

    the only downside for now is its only possible to put 4 additional drives in the 206, removing the floppy, and using the 5.25" bay somehow. if we can remove the cdrom drive, or use the little space in the bottom, we can put 2 more disks and we have it made.

    it beats all other NAS servers' price/performance ratios by a wide margin and we'd know we dont have crap hardware....

    oh one more downside. the 206's power supply is only rated at 250W.

    --
    "Give orange me give eat orange me eat orange give me eat orange give me you." -Nim Chimpsky
  32. Buy two Mac minis when they come out. by Linuxathome · · Score: 1

    Buy two $499 minis when they are released. Upgrade the size of the harddrives in both--they're already pics out that show how, this will satisfy your DIY urge. Have one rsync the the other daily with a cron job--I doubt that you'll be constantly writing critical information frequently enough that you require RAID. They are small, quiet, sleek, and beautiful. From what I've read, you can also buy video adapters for S-Video out to connect to your TV, so you can make them multi-task as: 1) media boxes, 2) NAS, 3) Airport express substitute, 4) AirTunes Express substitute. The cost will run you probably a little over $1200 (for two minis, mind you). For all the things you can do with them, they'll save you money with overlapping functions.

    1. Re:Buy two Mac minis when they come out. by drsmithy · · Score: 1

      US$1000 is a hell of a lot to pay for a grand total of 80GB of semi-redundant storage...

  33. my solution by johnmearns · · Score: 1

    I guess it depends on your needs, but I found this to be an excellent solution in that its quiet, cheap, low power consumption, plus it acts as an itunes server. http://www.nslu2-linux.org/wiki/OpenSlug/HomePage

    --
    "I may disagree with what you have to say, but I shall defend, to the death, your right to say it." -Voltaire
  34. I was doing this years ago; easy and cheap. by Trixter · · Score: 1

    My last effort in this area was a Dual Pentium 933 with 1GB RAM, and a 3Ware Escalade 6400 hardware RAID-5 (real RAID, it has a RISC on it) handling four IDE drives. My total cost three years ago was $500 for the server, $240 for the drives, and $300 for the 3ware controller. I installed Red Hat 7.2 at the time.

    So why haven't I upgraded since then? I haven't needed to! It's still my fileserver, and has never had a problem. I have been especially happy with 3ware's linux software, and in their latest updates they have allowed rebuilding a RAID where there are known bad sectors, just so you can get SOMETHING back from a catastrophic crash.

  35. Jesus by fozzmeister · · Score: 1

    you must be clueless, all it takes is Microsoft Active Disk, or LVM or Linux Software Raid or some hardware implementation. I mean really, its about an hours work no matter what u use.

  36. Old, solid hardware by a9db0 · · Score: 1

    For home use, I use:

    Pentium 233
    768mb ram
    2 Promise adapters
    2 60GB drives - RAID 1
    2 120GB drives - RAID 1
    100MB ethernet
    el cheapo video card
    300 watt power supply
    1 big case

    I care not about video - I haven't looked at the screen in months. It serves files reliably, cost little or nothing. I left space between each drive, added 2 extra case fans, and let it run. It has been rock solid reliable since day 1, which was about 6 years ago. Sexy? No. Effective? Yes.

    --
    -- "Never underestimate the power of human stupidity." - R.A.H.
  37. Harddrive Quality by Reapman · · Score: 1

    I, like most around here, have probably been fighting with the same thing... right now I have a gentoo server with two 120s, and two 200s, both setup in raid-1 (so 320g total space) I'm not worried so much about performance, as ensuring reliable data.

    My two 120s are both identical, but my two 200s are differing brands (yes it works, Software RAID, not hardware) It seems to me that, going with the same brand, while better for performance, means that if there is a manufacturing defect (these are home drives after all, not server SCSIs) that they could potentially blow at the same time. Or am I just a clueless luser for thinking that ? I remember at work when we had WD's in our Client machines, we had 60 go all within a 2 week span, im multiple offices.

    1. Re:Harddrive Quality by Homology · · Score: 1

      Actually, I've had a few IDE harddisk fail at home over the last few years, so now I'm buying SCSI hardisks for my home server. Yes, they are far more expensive (with the added overhead of a good sCSI card), but are much more reliable. Now 74GB is plenty of space for my needs.....

  38. REDUNDANCY! by op00to · · Score: 1

    Please, for the love of god, if you're not going to back your array up, MAKE SURE IT HAS SOME SORT OF REDUNDANCY! Merely striping the data is going to get you really pissed off when a disk fails. Note I said when, not if. I replace hard drives in our NetApps at work with frightening regularity. I no longer trust hard drives.

  39. eBay PII by Zakir · · Score: 1

    One solution that has worked for some people is to look for a large cheap pentium II server on eBay. You can usually get one for less than $200. 300 mhz is enough for casual file sharing if you put the maximum amount of ram in and put in a few IDE cards. Server 2k runs easily on these, but linux doesn't always because of propreitary hardware.

  40. an Alternative by Anonymous Coward · · Score: 0

    http://www.linksys.com/products/product.asp?grid=3 5&scid=43&prid=655

    For some reason i can't find the price. But our company bought an older version, for $500

  41. Collected quotes by Anonymous Coward · · Score: 0
    I been considering building a NAS, so I've been collecting what I consider worthwhile suggestions from this and similar Ask Slashdot articles.

    Regarding power efficient motherboards.

    Ivan256 writes:

    My server (with a smaller by far RAID) used to be a dual athlon too. I got tired of paying for the electricity, so I switched it to a Athlon-M 2500+ and setup all the powersaving stuff. (It took ages to find a desktop board with a PowerNow capable BIOS and voltage regulator...) Kernel compiles are a little slower, but 90% of the time (even streaming data at 100mbit) the processor stays in it's low power mode. What once took 350watts now takes 70. Highly recommended.

    Ivan256 further writes:

    It's a Shuttle MK40VN. Any Via KM400 board with an AMI bios instead of an Award BIOS should work though.

    MK40VN motherboards run about $39 from NewEgg.

    Regarding RAID setups, I thought Gherald had some interesting comments.

    You see, the typical budget RAID 5 builder just wants to store his collection of MPEG4s, MP3s, and other downloads or perhaps uncompressed hobbyist video. It's not a database, it's not a 150+ employee corporate file server, it's just personal. Performance is not a concern.

    And if performance is a concern (say he wants / on these disks) then the cheap way to go is software RAID 0, 1 or 1+0 (aka 10) *COMBINED* with a RAID5.

    For instance, I just built myself a new system with four 300gb drives and partitioned each one like so:

    50mb - /boot
    1gb - swap
    20gb /
    5gb - /tmp and /var /home

    For the 50mb, I made a bootable RAID 1 of four drives (grub can boot this, dunno about lilo)

    For the 1gb swap, I made a RAID 1 with two drives and a RAID 1 with the other 2. Thus I have a net of two 1gb swap partitions, with redundancy so my system will never crash due to drive-induced paging errors. This is essentially a RAID 0+1, though I let the kernel's swap system handle the RAID 0 aspect by giving them equal priorities.

    For the 20gb /, I did the same thing (pair of RAID 1s) and put a RAID 0 on top of that, for a net of 40gb redundant and fairly speedy storage.

    For the 5gb /tmp and /var I made a simple 10gb RAID 0 for each. Not a whole lot of need for redundancy here, I make a point of backing up the important /var stuff.

    With the four equal-sized partitions that were left, I made the RAID 5 for /home

    Don't you see what a great cost-effective approach this is?!?

    rimu guy offered some cogent advice:

    Build RAID support and RAID1,and RAID5 into the kernel (not as modules). You'll need that if you boot from a raid1 boot partition. Note: if you are using RAID5 you'll need RAID1 built in (since I beleive in the event of a failed disk the raid personaility swaps from RAID5 to RAID1).

    Don't forget to enable S.M.A.R.T. drive monitoring as suggested by k.ellsworth a

  42. Buy An Old NetApp on eBay by Anonymous Coward · · Score: 0

    They're a bit power-hungry, but even the old ones are the best NAS boxes out there. Plug it in, turn it on, type a few lines of config, and Dave's your uncle.

  43. Nice Microsoft FUD! by Anonymous Coward · · Score: 0

    > I feel strange advocating a MS-originated protocol

    There are way too many Microsoft diehards now on slashdot. SMB was not created by Microsoft. It was created by IBM, and until recently most people refered to it as the OS/2 LAN Manager Protocol. Stop your Microsoft pimping. It's not welcome here.

  44. Re:Why spend $1000 on $750 worth of hardware? by arkulkis · · Score: 1
    Yeah, that's EASY to beat:

    $ 50 case

    $100 motherboard with Gigabit ethernet

    $100 1 GB of memory

    $500 (4x250 MB HD @ $125 each)

    $0 to $100 Linux with Samba package

    ------------

    $750 to $850.