266
submitted 6 months ago by padook@feddit.nl to c/selfhosted@lemmy.world

I woke up this morning to a text from my ISP, "There is an outage in your area, we are working to resolve the issue"

I laugh, this is what I live for! Almost all of my services are self hosted, I'm barely going to notice the difference!

Wrong.

When the internet went out, the power also went out for a few seconds. Four small computers host all of my services. Of those, one shutdown, and three rebooted. Of the three that ugly rebooted some services came back online, some didn't.

30 minutes later, ISP sends out the text that service is back online.

2 hours later I'm still finding down services on my network.

Moral of the story: A UPS has moved to the top of the shopping list! Any suggestions??

you are viewing a single comment's thread
view the rest of the comments
[-] taladar@sh.itjust.works 44 points 6 months ago

most traditional VMs do not like to have their power killed (especially non-journaling file systems).

Why are you using a non-journaling file system in 2024 when those were common 10+ years ago?

[-] ryannathans@aussie.zone 4 points 6 months ago

Or even better use something like ZFS with CoW that can't corrupt on power loss

[-] emptiestplace@lemmy.ml 4 points 6 months ago

and don't fuck with sync writes

[-] taladar@sh.itjust.works 1 points 6 months ago

I would still consider that generation of filesystem to be effort to use while regular journaling filesystems have been so ubiquitous that you need to invest effort to avoid using one.

[-] ryannathans@aussie.zone 1 points 6 months ago

It was supported and the default out of the box when I installed my OS

[-] taladar@sh.itjust.works 0 points 6 months ago

Maybe on some distros that is the case if you install a recent version but to get a non-journaling filesystem you literally have to partition manually to avoid using one on any distro that is still supported today and meant for full sized PCs (as opposed to embedded devices).

[-] ryannathans@aussie.zone 1 points 6 months ago* (last edited 6 months ago)

Are you talking about Linux distros? What manual partitioning has to occur?

[-] taladar@sh.itjust.works 0 points 6 months ago

If you want to use a filesystem that is so bad that it doesn't even have journaling you need to manually select it. None of them have been using one of those by default for 10-15 years now.

[-] lazynooblet@lazysoci.al 4 points 6 months ago

It's been a while since a power cut affected my services, is this why?

I remember having to troubleshoot mysql corruption following abrupt power loss, is this no longer a thing?

[-] taladar@sh.itjust.works 8 points 6 months ago

Databases shouldn't even need a journaling filesystem, they usually pay attention to when to use fsync and fdatasync.

In fact journaling filesystems basically use the same mechanisms as databases only for filesystem metadata.

this post was submitted on 03 Mar 2024
266 points (96.8% liked)

Selfhosted

39143 readers
319 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