this post was submitted on 14 Jan 2024
33 points (86.7% liked)

Selfhosted

40246 readers
823 users here now

A place to share alternatives to popular online services that can be self-hosted without giving up privacy or locking you into a service you don't control.

Rules:

  1. Be civil: we're here to support and learn from one another. Insults won't be tolerated. Flame wars are frowned upon.

  2. No spam posting.

  3. Posts have to be centered around self-hosting. There are other communities for discussing hardware or home computing. If it's not obvious why your post topic revolves around selfhosting, please include details to make it clear.

  4. Don't duplicate the full text of your blog or github here. Just post the link for folks to click.

  5. Submission headline should match the article title (don’t cherry-pick information from the title to fit your agenda).

  6. No trolling.

Resources:

Any issues on the community? Report it using the report flag.

Questions? DM the mods!

founded 1 year ago
MODERATORS
 

Hey guys ive been self hosting things for a while now mostly just off a bunch if old computers in a k8s cluster.

The majour issue i have currently is all my data is on a single hdd in an old dektop. Its painfully slow and very risky as i have no backup or anything (i dont feel to great about that).

I really dont have much $ to spend hence my setup is built from a stack of practically ewaste hobbled together. I finally have the $ to buy some drives how should i go about building myself a nas on the cheap?

all 16 comments
sorted by: hot top controversial new old
[–] BombOmOm@lemmy.world 10 points 10 months ago* (last edited 10 months ago) (1 children)

Your basic components will be an old desktop you have lying around and two hard drives. Put the two hard drives in RAID 1 (mirroring) set with either a network share and/or FTP access to add/remove stuff from the array. The drives optimally should be the same size, but if they aren't that is OK, the amount of redundant space available will the the size of the smaller of the two drives.

Depending on what you have lying around this might not cost you anything. However, if you are going to spend money anywhere it should be on the drives themselves. You probably don't need anything fancy, just a pair of 5400RPM HDDs that are large enough to hold your data, plus some room to grow.

You can use any OS of your choosing as basically everything supports the requirements. Linux, Windows, and TrueNAS come to mind as viable options. You may or may not want a third, tiny, drive just to boot the OS, particularly for Windows, as it can make things easier. I personally use Linux for my basic NAS with SFTP access.

[–] ryannathans@aussie.zone 2 points 10 months ago (1 children)

With truenas you won't need raid

[–] BombOmOm@lemmy.world 9 points 10 months ago

Yeah, for TrueNAS it would be a mirrored ZFS array with said two drives, functionally the same.

[–] monkeyman512@lemmy.world 7 points 10 months ago (2 children)

If you want cheap new drives check out https://shucks.top/.

You can get used Enterprise drives on eBay if you want to got that way. Look for a seller with lots of sales, a good rating, and a reasonable return policy.

[–] muntedcrocodile@lemmy.world 4 points 10 months ago (2 children)

I have been looking at that as an option just feel a little hesitant to buy used drives. But if the wise gentlmen of lemmy reccommend it how bad can it be.

[–] lemmyvore@feddit.nl 2 points 10 months ago

Don't buy used drives if you don't know how to check them, can't afford to waste the money and/or aren't buying from somewhere with excellent return policy.

[–] TheHolm@aussie.zone 1 points 10 months ago

Just weight your risks. Old drives can fail early, and enterprise drives consume more power. Old drives probably not for mirrors or RAID5. RAID6 and spare HDD on shelf may save your data one day. It is a lottery.

[–] surewhynotlem@lemmy.world 3 points 10 months ago

I've always done this (bought and external drive and pulled it out) but I never knew it had a name. Thank you!

[–] MalReynolds@slrpnk.net 5 points 10 months ago

Your biggest bang for buck is with cheap second hand drives, keep a spare on hand to rebuild the array / volume when one dies. You should be aware that the number of drives in the array directly affects the amount of usable space, 2 drives 50% of total available (a direct mirror, to compensate for the loss of one drive), 3 drives you get 66%, 5 gets you 80%. Say you get 6 4Tb drives, keep one as a spare and the remaining 5 will give you 16Tb usable (with one lost to parity so you can survive one disk failure). You then immediately want to save for a 16 Tb external drive for offline, preferably offsite backup (RAID is not Backup!). As others have wisely said, anything can be used to host, but aim at the most power efficient. If necessary get a PCI card for more SATA or SAS ports. Identify high value, small files, documents, current work, personal photos, source code and so forth and arrange for cloud backup, preferably with local encryption so you needn't trust the cloud provider, preferably in at least two places (so one can go tits up or enshittify without bothering you). You'd be surprised what fits into a free 10Gb account if you triage well.

Good luck.

[–] Decronym@lemmy.decronym.xyz 4 points 10 months ago* (last edited 10 months ago)

Acronyms, initialisms, abbreviations, contractions, and other phrases which expand to something larger, that I've seen in this thread:

Fewer Letters More Letters
NAS Network-Attached Storage
RAID Redundant Array of Independent Disks for mass storage
SATA Serial AT Attachment interface for mass storage
ZFS Solaris/Linux filesystem focusing on data integrity

4 acronyms in this thread; the most compressed thread commented on today has 10 acronyms.

[Thread #429 for this sub, first seen 14th Jan 2024, 02:55] [FAQ] [Full list] [Contact] [Source code]

[–] lemmyvore@feddit.nl 4 points 10 months ago* (last edited 10 months ago)

There's nothing wrong with a single HDD in an old desktop except for the risk of failure.

I would start by getting one hdd that's the same size or larger than the one you have and using it as backup. If the old HDD is very old and small you can probably find a larger one cheap, don't go out of your way to find another small and old one.

Something like Borg Backup will be perfect if you use a Linux filesystem because Borg is incremental, has deduplication and compression built-in. There is a very simple graphical app for it called Pika Backup (for Linux).

There are other solutions if you use Windows but even a simple copy of your important files is better than nothing. Get a HDD and copy files to it right away.

Another backup solution is to buy a DVD or BluRay burner (can be USB or internal) and backup super important files to optical disks. This may or may not be cheaper than a HDD.

Do NOT rush into RAID, Unraid, TrueNAS and other fancy stuff like that. Your priority right now should be backup not RAID. RAID is a convenience for keeping a system running when a HDD fails but it is NOT a replacement for a good incremental backup.

After you have a backup in place and use it regularly you can consider whether RAID and availability is something you want/need.

[–] sabreW4K3@lemmy.tf 2 points 10 months ago

I stumbled across this video, but I think it could be really helpful in terms of building the cheapest, but best NAS you could on a budget

https://youtu.be/C6hf3ddtNCs?si=xuMJsb7OZaZYbeX1

[–] BearOfaTime@lemm.ee 1 points 10 months ago* (last edited 10 months ago) (1 children)

For the money you'll spend on drives, you may be able to pay for a year of space at somewhere like www.storj.io, and use something like Duplicati to backup to them.

Because even with a shiny new NAS, you'll still need backup for it when it crashes, something is accidentally deleted, a drive hiccups and loses data, etc.

If you already have some stuff sitting around, spin up an UnRAID/TrueNAS, but still have a backup solution.

[–] muntedcrocodile@lemmy.world 3 points 10 months ago

I might use some paid remote storage for an off site backup but i need something local as 0.6Mbps/s is about the best upload i can get without shilling out for starlink.

[–] ArbiterXero@lemmy.world 0 points 10 months ago

Truenas scale