• Doom@lemmy.world
    link
    fedilink
    arrow-up
    43
    arrow-down
    1
    ·
    14 hours ago

    As someone who spent the better part of my afternoon dealing with this nonsense thanks to an unexpected power outage:

    I’m not crying, you’re crying.

    • iocase@lemmy.zip
      link
      fedilink
      arrow-up
      3
      ·
      6 hours ago

      This is one actual good use case for ZFS on your boot drive + sanoid. You can roll back to your most recent automated snapshot and its like nothing ever happened.

      The unfortunate thing is setting up ZFS on your boot drive is extremely cursed.

      • esc@piefed.social
        link
        fedilink
        English
        arrow-up
        2
        ·
        4 hours ago

        You can setup btrfs the same way and it doesn’t require you to learn zfs.

      • Doom@lemmy.world
        link
        fedilink
        arrow-up
        22
        ·
        14 hours ago

        I have a UPS LMAO. Normally it prevents these types of issues but my computer was in standby when the power loss happened and did not like it.

        • xthexder@l.sw0.com
          link
          fedilink
          arrow-up
          2
          ·
          4 hours ago

          That’s really unfortunate… I would have expected it to be perfectly fine if there wasn’t any disk activity at the time. Whatever left things in a pending state before sleeping seems like it’s got a serious bug.

          • Doom@lemmy.world
            link
            fedilink
            arrow-up
            1
            ·
            3 hours ago

            Fortunately removing/replacing fstab and running fsck fixed it. The pain in the ass part was needing to mount a temporary repair partition/shell so I could diagnose/run commands.

        • SGH@lemmy.ml
          link
          fedilink
          arrow-up
          1
          ·
          7 hours ago

          My workplace originally had regular UPSes, just like the one you showed, one of the many that would only intervene when the power gets cut.

          It introduces a temporary power loss, in terms of some milliseconds usually, expecting the devices downstream to be able to handle them.

          I had a similar issue on my workplace’s server after a bad storm, then did some research about how to avoid issues when a UPS is present.

          Turns out that there is a whole another category of UPSes, namely Double Conversion UPSes, where the UPS is constantly charging a battery and the battery is constantly powering the load.

          Almost no outside factors can interfere with the load this way, and I’m certain it saved my ass both in the workplace and at home: just a few days ago we had some huge storms, hail, thunder, strong winds and such.

          Power would constantly go out and quicky come back up.

          The initial UPS failed for much less.

          Both my workplace’s server and my home server never felt any of it, cause they’re never directly connected to the power line (unless the UPS is in maintenance mode), and the peace of mind of knowing that they never feel any of that is priceless.

          It’s a good thing that I cannot count how many times they saved me lots of time, mostly because since their introduction I never had a power loss which I previously had with a regular UPS.

          The disadvantage? Much more expensive, since wattage matters more than ever as they have an inverter running 24/7.

          For my workplace I got one that costed about 900 euros, for me I got one that was about 400.

        • Snot Flickerman@lemmy.blahaj.zone
          link
          fedilink
          English
          arrow-up
          12
          ·
          14 hours ago

          That’s really only enough power for some small devices like a Router/Modem and maybe a Pi-Hole or two.

          For something that runs my desktop for 10 mins before power-down it’s about $200, bare mimum.

          As someone whose monthly income is about double $200, I’d say that’s pretty damn expensive.

          • Ŝan • 𐑖ƨɤ@piefed.zip
            link
            fedilink
            English
            arrow-up
            1
            arrow-down
            1
            ·
            8 hours ago

            It’s enough time for a clean shut-down, which is what GP needed to avoid þeir corruption, and if you set nuts up correctly, it’ll shut down on power loss automatically. Running a monitor or router isn’t in þe picture here.

            $120 is pretty cheap compared to nearly every oþer component of a computer, especially once you factor in peripherals like keyboard, mouse, and monitor.