this post was submitted on 16 Feb 2025
201 points (97.6% liked)

Selfhosted

42719 readers
688 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 2 years ago
MODERATORS
 

My NAS was getting increasingly annoying.

It would give error messages about not being shut down properly after scheduled restarts.

Apps would sometimes work and sometimes not. I had to manually stop and restart my video library each time to make it work. It was slow, it was refusing to do more than one thing at a time.

So, I finally started it up. Shunted all the data to external drives, setup the box from scratch.

Between it being fresh, and me knowing better what I'm doing and how I want things from the get-go, it's running better than ever, better even than when I got it a few years back.

Interesting, while it was offline and being setup I found myself realising how integral it's become to my day. So much stuff I went to do, only to discover I needed my box.

It was intended as a file backup and server, but so much has changed since then, I've grown used to having it here!

Still tempted to get an upgrade, maybe later this year if things workout well with the cash.

Wanted to share this with a community who can appreciate the feeling of having something working well!

you are viewing a single comment's thread
view the rest of the comments
[–] lka1988@sh.itjust.works 43 points 6 days ago* (last edited 6 days ago) (3 children)

It's best if a NAS remains as a dedicated NAS and nothing else; I would build a separate machine to tinker with, and share the appropriate folders on the NAS with whatever service(s) you're running. That way, if you're experimenting and fuck something up, it doesn't take your data with it when it goes down.

[–] Lichtblitz@discuss.tchncs.de 24 points 6 days ago (3 children)

That's what containers are for. Fucking up the container won't fuck up the host. That was the best decision in self hosting I've done. Even that one virtual machine feels weird and uncomfortably legacy now but it needs to interact with hardware in a certain way that just won't fully work with docker.

[–] greyfox@lemmy.world 2 points 4 days ago

If your NAS has enough resources the happy(ish) medium is to use your NAS as a hypervisor. The NAS can be on the bare hardware or its own VM, and the containers can have their own VMs as needed.

Then you don't have to take down your NAS when you need to reboot your container's VMs, and you get a little extra security separation between any externally facing services and any potentially sensitive data on the NAS.

Lots of performance trade offs there, but I tend to want to keep my NAS on more stable OS versions, and then the other workloads can be more bleeding edge/experimental as needed. It is a good mix if you have the resources, and having a hypervisor to test VMs is always useful.

That's what I'm doing. Here's my setup:

  • BTRFS RAID W/ snapshots - can always roll back
  • OS installed on SSD - can always reinstall without messing with the RAID
  • containers installed on SSD (also BTRFS W/ snapshots) and backed up to RAID; only access RAID through bind mounts (ro if possible)

It's incredibly unlikely that I'll mess anything up on the host, but I can always reinstall if needed.

[–] lka1988@sh.itjust.works 2 points 5 days ago

I've done this before. That's why I have a Proxmox cluster separate from my NAS now.

[–] Diplomjodler3@lemmy.world 10 points 6 days ago (1 children)

On the other hand, having one home server that does it all has its advantages. I have a mini PC with an N100 processor and two HDD drive bays. It hosts my Docker containers and holds my data. As long as you install all the software on the internal drive and keep only the data on the HDDs in RAID, you should be pretty safe. I hope. So far I've managed not to fuck it up.

[–] lka1988@sh.itjust.works 3 points 5 days ago* (last edited 5 days ago)

I used to do that, but I have a bad habit of over-tinkering with the underlying system. Having Proxmox as a base where I can spin up VMs and LXC containers to fuck with to my heart's content is far more ideal in my situation. Plus, my entire cluster - NAS included - pulls 100-120 watts.

[–] just_another_person@lemmy.world 3 points 6 days ago (1 children)

This, plus also it's good to revisit your setups from time to time to audit and improve.

[–] lka1988@sh.itjust.works 1 points 5 days ago* (last edited 5 days ago)

Oh I'm always doing something with it, it's basically my winter hobby haha. I'm currently building a "new" NAS out of an old HP Proliant G2 case (from like 2002) and 7th gen Intel hardware, to replace the current Mac mini/4-bay Sabrent DS-SC4B. Still gonna run OMV on the new NAS, because OMV is awesome; but the USB connection between the Mac and drive station is cumbersome and risky.