this post was submitted on 23 Jul 2023
30 points (96.9% liked)

Technology

59300 readers
4818 users here now

This is a most excellent place for technology news and articles.


Our Rules


  1. Follow the lemmy.world rules.
  2. Only tech related content.
  3. Be excellent to each another!
  4. Mod approved content bots can post up to 10 articles per day.
  5. Threads asking for personal tech support may be deleted.
  6. Politics threads may be removed.
  7. No memes allowed as posts, OK to post as comments.
  8. Only approved bots from the list below, to ask if your bot can be added please contact us.
  9. Check for duplicates before posting, duplicates may be removed

Approved Bots


founded 1 year ago
MODERATORS
 

This week I finished setting up Arch Linux (It felt so good to nuke Windows 11 off my laptop!) and GrapheneOS for my new Pixel phone.

I am interested in getting a NAS for multiple purposes such as accessing files, hosting a small website, and to upload security camera footage to name a few.

Is there a particular brand to buy? I'm basically illiterate when it comes to networks aside from what an IP is and what DNS is. Any suggestions for books and reading material is greatly appreciated. It feels liberating to know more than I did before with tech!

top 22 comments
sorted by: hot top controversial new old
[–] kostel_thecreed@lemmy.ca 8 points 1 year ago (2 children)

I would recommend making your own NAS instead of buying a Synology or something similar. Check out !selfhosted@lemmy.world. Hardware will cost a bit, but it's far more worth it.

An extremely good resource to begin learning the server environment would be https://esc.sh/projects/devops-from-scratch/. He has youtube videos that are really well done, I would strongly encourage you to watch atleast the first few videos as they cover topics that you will need to learn, such as : networking, explaining how linux works, etc.

After watching a couple of his guides and learning from them, I would recommend starting a basic server using an old computer or the likes that hosts a couple of apps you will be using. Nothing important like a password manager, file storage, etc, just yet; simply the basics so you get a better understanding of using linux as a server. My recommendations of stuff to try out:

  • Installing PiHole using docker / docker-compose
  • Installing Wordpress using docker / docker-compose
  • Setting up a Wireguard server (there are also docker images, such as wg-easy) so you can connect to your home network from wherever, and use whatever services you are hosting (important if you wish to use your future NAS while not at home)
  • Installing Nginx Proxy Manager and learning how to reverse proxy your services to a hostname

After that I would recommend you transition to Proxmox as your OS, learn from there, and then start hosting file managers/file storage (Network Attached Storage part), zoneminder/frigate for the camera system, etc. Patience is key with this type of learning.

For the hardware part it's all up to you: amt. of storage, amt. of ram, how big the chasis will be, power-efficiency, motherboard with features you want (ex. more pcie for 2.5gbps network card), cpu depending on how much processing power you need, ... You will need to do your research on this, but I recommend getting a NAS after you understand how docker and the works function, and to tailor to your needs.

If you have any questions let me know, hopefully you can understand what I was trying to say, not the best at conveying this type of information lol.

[–] rustyricotta@lemmy.ml 2 points 1 year ago

Thanks for the great info. I plan to make myself a NAS soon. Saving this comment.

I just wanted to say thank you for the well thought out comment as someone looking to roll my own NAS.

[–] thorbot@lemmy.world 7 points 1 year ago (2 children)

I’ve spent the time building and maintaining a pi NAS and I prefer a Synology DiskStation. If you have the budget for it, you’ll get a device that’s super easy to set up, is bursting with features just waiting to be added, and there’s no maintenance on it. My NAS runs a plex (streaming video) server, an email server, file server for my local network, it does DHCP and DNS for my network, it stores my IP camera footage, it hosts a small web server, and an audio steaming server. All this functionality was gained by just clicking “install” on the package manager on DiskStation. Unless you have gobs of time to spend learning and fiddling, I’d always go with a DiskStation over a home brewed solution. I guess it boils down to your goal. is your goal to learn more and make something yourself? Or do you just want the seamless features of a consumer level NAS?

[–] Bell@lemmy.world 1 points 1 year ago

This is the best easiest solution. I set one up for a client years ago and it just runs and does as asked. You can't really tinker but just about everything you can think of is there so you don't need to.

[–] gronjo45@lemm.ee 1 points 1 year ago

I've been wading through the past 2 months of messages because I was far too incompetent at systems management (and hardware) to even pose the question correctly.

Ideally, I'd like my NAS to have a VLAN'd off way of sectioning my security camera footage and my website so I don't get locked out of it somehow. I heard that I need to somehow create a topology that involves a WAP, Switch, the physical chassis with the NAS in it, and the actual modem/router into the wall. I want to have a streaming server for music/video, a Hugo website, an email server, and a file system where I can store projects just in case I need to access them somewhere other than my home.

I've also heard others suggest some of the larger drives for the RAID array, and I've seen various things suggested such as Thomas Krenn's "mdraid", which requires a "Hardware RAID controller" which makes me wonder what this thing actually is. I need to do more research into it, but I'm just a little stumped on how the drives fit together (physically and logically). Thanks for the help!

[–] stealth_cookies@lemmy.ca 6 points 1 year ago (1 children)

I'm a proponent of a do it yourself NAS using FreeNAS or Unraid. I had a standalone NAS and got burned by a ransomware attack due to a vulnerability in the software for a feature I had "disabled". There was zero way for me to know it was an issue without checking the vendor's forums and seeing everyone else who had the same issue. Upon looking into it a bit more, it seemed like most standalone commercial NAS companies had been hit at least once.

Doing it myself means that I know how it is setup and can control what has access to the internet. As a benefit, the old computer I used performs way better than the standalone NAS and is way more stable (my old NAS "lost" docker containers multiple times). I can definitely recommend Unraid as being easy to use which has a ton of resources on their website and forums, as well as many videos on Youtube on recommended setups. It was definitely a good learning experience and overall not too difficult to do.

[–] gronjo45@lemm.ee 1 points 1 year ago (1 children)

I'm going to look into FreeNAS and Unraid. I have 2 WD 2TB HDDs that are relatively new that I've needed to just pop into the switch connected to my router. The whole networking scene has been a bit overwhelming having had so much of my foundational computer knowledge shifted I haven't gotten around to it yet. I want the router set up in a different room so I can make more stuff with Ethernet possible rather than connecting wirelessly.

How does a docker container get lost? Does it have something to do with the "contiguity" of theway the block devices partition data? Does it get separated from the other blocks physically? Or is it just a software error and I'm over thinking it? Thanks for the advice!

[–] stealth_cookies@lemmy.ca 2 points 1 year ago (1 children)

Definitely do your research if you are planning on starting any NAS with 2TB HDDs. For the most part you can only really add drives of the same size to a RAID Array (e.g. with FreeNAS), and with Unraid your parity drive you start with must be the largest disk in the system. So when you run out of space you might end up cursing yourself by not starting with larger drives. I have even regretted only starting with 4TB drives in my NAS.

You are overthinking the docker issue, it was just a software issue and broke the container in a way that I either couldn't, or don't have the skill to recover.

[–] gronjo45@lemm.ee 1 points 1 year ago

I'll have to get one of those 12 or 14TB harddrives in the future so I can actually have a proper NAS. Is TrueNAS what FreeNAS is now? I see their parent company is iXSystems. I've heard stuff about different file systems like "ZFS" and all these other fancy 3 letter acronyms. The last time I bought software was many years ago, so would you suggest paying for their OS? Thanks for the advice, now I just need to get a better job to actually afford the toys :(

[–] shrugal@lemmy.world 5 points 1 year ago

If you decide to go down the Synology route, make sure it supports docker. Their cheaper models don't support it, and it's the gateway to self-hosting all the services that are not available directly from the package manager.

[–] ryan659@kbin.social 4 points 1 year ago

I got an Odroid HC4 last year and put Armbian on it, with 2 HDDs in RAID1 via mdraid, and can connect to it using either SMB or NFS. Works great, and since it can run Docker containers nicely I use it for pretty much all my home server needs.

[–] ST5000@lemmy.world 2 points 1 year ago

One thing about buying older Synology boxes is make sure the thing is 64-bit. I goofed and mine can't run docker which limits features.

[–] DrKevorkian@lemmy.world 2 points 1 year ago

I saved $50 and bought DS420+ instead of DS920+

Don’t do this

I’d kill to have the quad core at this point, it’s CPU limited with all my Docker apps

[–] Molecular0079@lemmy.world 1 points 1 year ago* (last edited 1 year ago) (2 children)

Whatever you do, don't buy a QNAP. I have no idea whether Synology is similar, but I am having a hell of a time recovering data off my dead QNAP TS-453 Pro because they make it almost impossible to repair without specialized tooling and the on-disk format is using a custom version of LVM that's incompatible with standard Linux. The reason why it died was because of a manufacturing defect in the onboard Intel J1900 chip that QNAP knew about, didn't do a recall for, and refused to provide proper support for. The disks themselves are fine, I am just forced to buy another QNAP just to access the data. After this experience, I swore off using turnkey NAS boxes. If your data is stored in a proprietary box that's unrepairable and using a disk format that's non-standard, that data is not safe.

Now I have a self-built DIY NAS that I've setup with Arch Linux and OpenZFS and I am pretty happy with the results. Sure, going SSD over HDD is an expensive choice, but given that I had to replace each hard drive in my QNAP 2-3 times each over the span of 7 years, I think the cost balances out and the extra performance is sooo worth it (80MB/s vs 700-1000MB/s).

[–] FlameGrilledTanuki@lemmy.world 2 points 1 year ago (1 children)

Exact same thing happened to me. Last time I'll buy qnap.

[–] Molecular0079@lemmy.world 1 points 1 year ago (1 children)

Sucks that this also happened to you. How did you end up recovering your data?

The same way. I had to buy a compatible qnap replacement.

[–] gronjo45@lemm.ee 1 points 1 year ago

Yikes! I'm going to have to watch out for that. I don't know if I can just jerry-rig together some HDDs into one of the RAID X configurations, but I think I want to get some that are quite a bit larger than 2TB given the amount of things I'd like to do with my NAS (File server, email server, personal website, etc). I'll do some more research, thanks for the help!

[–] farcaller@fstab.sh 1 points 1 year ago

On one side of the spectrum you have the likes of Synology: you pay premium for the software that does what it says in a nice compact enclosure. Good documentation, easy UI, potentially limiting flexibility.

On the other side, you can make a linux box and declare it a NAS. Run whatever storage you want with whatever filesystem. Any enclosure and form factor you can imagine. Infinitely scalable, but also you’re absolutely on your own in configuring and managing it.

I'd suggest figuring a budget first, and then figuring how much of a hands-on approach you want to have.

[–] tj@kbin.chat 1 points 1 year ago

"I finished setting up Arch Linux" 😎

[–] MrGiblets@lemmy.world 1 points 1 year ago

One thing people often overlook is size. You’ll probably want something that’s Lil.