I’m interested in setting up something to act as a file server. Think of it as “the cloud” but local. I’ve never built (or bought) something specifically for this, so it’s a big foreign to me.

I think really all I would want is something that can store a lot of TB of data easily. It doesn’t need to be fast. It doesn’t need to be able to stream media anywhere. It really only needs to be able to act as an SFTP server, maybe run sync thing (new to that), and maybe act as a NAS. My gut feeling is something like 10+ TB might be a good amount to start. Something that won’t fill up quick and that I can put big things in (like a full system image of another computer) without concern.

What would be a good way to go about this? Building a computer like normal but getting very cheap stuff? Getting something pre built or used (like surplus office stuff)? I’m just not really sure where to begin.

  • @TheBananaKing
    link
    217 hours ago

    Will it cost you money or grief if you lose that data when a drive fails? (note: when.)

    If so, then you need redundancy. It can be in the form of regular backups - in which case you need 2x the storage in some form, or some kind of cloud provider - or you could save a bit of space by setting up a RAID5 or RAID6.

    Check out https://www.raid-calculator.com/ - for instance, 5x 2TB disks in a RAID5 gets you 8TB storage that will survive the loss of any single drive.

    If you can get a bunch of cheap drives (and a board+case that can take them), that can be a decent solution. You can go minimal on all the rest of the specs, boot linux off the cheapest m.2 you can find, and set up an MD device across the hard drives. Keep a copy of mdadm.conf somewhere to easily rebuild the array on a new machine if you ever need to (but it’s still simple even without that)

  • slazer2au
    link
    English
    6
    edit-2
    24 hours ago

    The simplest way would be to get an off the shelf NAS (Network Attached Storage) like Qnap or Synology.

  • JohnWorks
    link
    fedilink
    220 hours ago

    You might want to check if your router has the ability to mount network shares for attached storage.

  • @[email protected]
    link
    fedilink
    118 hours ago

    If you need ~20TB or less of space, I’d suggest that you just add an extra HDD to any computer you already have. You can get that in a single drive for a few hundred dollars US without doing anything particularly special. I can find various 16TB 3.5" HDDs being promoted around $330-ish USD right now with ~30 seconds of looking; you might be able to get better $/TB if you spend longer looking than I did.

  • @themachine
    link
    324 hours ago

    A server is quite literally just a computer. Your desires could be serviced by something as simple as a raspi with a USB attached external HDD.

    My very first server many years ago was just a desktop chassis with old scrap parts I had lying around. If you don’t have parts on hand you can obviously buy them or if you are unsure about how committed you are to this project just pick up some cheap used system of Craigslist/some online marketplace/eBay/etc.

    The above all assumes you are interested or comfortable with setting up the software side of things yourself. A prebuilt NAS device is again nothing more than a computer but among other things will come preloaded with an OS and software catered to fulfilling its role and typically making it highly user friendly to just start rolling with.

    If cost savings is key though and you are interested in learning you can also just install Linux on any old box and set it up to do everything and more that a prebuilt NAS can.

    • JackbyDevOP
      link
      fedilink
      English
      121 hours ago

      I think I may have made myself seem like more of a novice than I intended. I know a server is a computer. I run Linux on multiple devices and I’ve built multiple daily use/gaming computers. I only meant I haven’t had experience with what sort of things to shop for for a file storage server.

      • @themachine
        link
        220 hours ago

        The bare minimum is a hard drive and a computer. Unless you have a more specific question I’m not sure how else to answer. I don’t think I fully understand what your concerns are.

        • JackbyDevOP
          link
          fedilink
          English
          118 hours ago

          I don’t have any concerns, I guess I’m just curious if there is any sort of advice folks with they had after the first time they did something similar.

    • @[email protected]
      link
      fedilink
      English
      1
      edit-2
      23 hours ago

      To your point, I’m running Proxmox on a 5+ year old Dell small form factor desktop with 3 (2.5") drives in it for data. That’s all that will phsycially fit.

      Works great as a file server, and it syncs the data partition to a NAS and a couple external drives using an offset schedule. It also has a backup running to Backblaze. (The NAS doesn’t have the performance of the desktop, and it’s even older).