Selfhosted
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:
-
Be civil: we're here to support and learn from one another. Insults won't be tolerated. Flame wars are frowned upon.
-
No spam posting.
-
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.
-
Don't duplicate the full text of your blog or github here. Just post the link for folks to click.
-
Submission headline should match the article title (don’t cherry-pick information from the title to fit your agenda).
-
No trolling.
Resources:
- selfh.st Newsletter and index of selfhosted software and apps
- awesome-selfhosted software
- awesome-sysadmin resources
- Self-Hosted Podcast from Jupiter Broadcasting
Any issues on the community? Report it using the report flag.
Questions? DM the mods!
view the rest of the comments
Right now when updates get applied to the NAS, if it gets powered off during the update window that would be really bad and inconvenient require manual intervention.
In memory caching, and the Amy cashing, well I think the file system would almost certainly be in a consistent state, you might lose data in flight if you're not careful.
The real problem, that I need an nas for, is not the loss of some data, it's when the storms hit and there's flooding, the power can go up and down and cycle quite rapidly. And that's really bad for sensitive hardware like hard disks. So I want the NAS to shut off when the power starts getting bad, and not turn on for a really long time but still turn on automatically when things stabilize
Because this device runs a bunch of VMs and containers as well closing down so that all of those rights get flushed is good practice
You sure? I mean, sure, it's possible; there are devices out there that can't deal with power loss during update. But others can: they'll typically have space for two firmware versions, write out the new version into the inactive slot, and only when the new version is committed to persistent storage, atomically activate it.
Last device I worked on functioned that way.
That's the responsibility of the application if they rely on the data to be persistent at some point; they need to be written to deal with the fact that there may be in-flight data that doesn't make it to the disk if they intend to take other actions that depend on that fact; they'll need to call
fsync()
or whatever their OS has if they expect the data to be on-drive.Normally, there will always a period where some data being written out is partial: the
write()
could complete after handing the data off to the OS's buffer cache. The local drive could complete because data's in its cache. The app could perform multiplewrite()
calls, and the first could have completed without the second. With a NAS, the window might be a little bit longer than it otherwise would be, but something like a DBMS will do thefsync()
; at any point, it'd be hypothetically possible for the OS to crash or power loss or something to happen.Like I said in the above comment, you'll get that even without a clean shutdown; you'll actually get a bit more time if you don't do a clean shutdown.
Ah, okay, it's not just a file server? Fair enough -- then that brings the case #2 back up again, which I didn't expect to apply to the NAS itself.
I was surprised too. But a lot of the current NAS devices basically operate as hosting devices. It makes sense the hard drives are there the power is there the RAM is there the CPU is there. So for the low intensity containers and VMs you want to run like a Plex server, or DNS server, or tail scale it's all right there