I live in a part of the world where powercuts are pretty frequent. 1 per day is normal. They last between 1 and 8 hours. A day without powercuts feels like a special occasion.

My machine is powered by a desktop ups which is terrible. It is only supposed to power everything for a few minutes to shutdown safely. But it is cheap and I don’t know much about other affordable alternatives.

How do you folks who self host at home deal with powercuts? Any recommendations? 8 hours of uptime from a ups sounds almost impossible or totally unaffordable to me.

  • Chup@feddit.de
    link
    fedilink
    English
    arrow-up
    0
    ·
    1 year ago

    Data centres, business, hospitals etc. run batteries to bridge the gap until the diesel starts running. It can take a minute or a few until the diesel generator takes over, but it can run for hours and days with refuelling.

    Getting batteries for 8h is expensive and risky - what if the power cut suddenly lasts 9h? With batteries you have a fixed storage, with petrol or diesel you can just refuel.

    Having that unreliable electricity, my home server would be the least of my problems. I would already have a generator to keep the fridge running so the food doesn’t go bad every other day.

  • Appoxo@lemmy.dbzer0.com
    link
    fedilink
    English
    arrow-up
    0
    ·
    edit-2
    1 year ago

    Germany.

    I don’t. Can’t remember a power outage ever except for shorting our connection box :)

    Besides that only some internet outages of our ISP but that is also very rare today.

    Edit: At work we sell 750VAh to our customers which are usually very small in demand and workload

    • neeeeDanke@feddit.de
      link
      fedilink
      English
      arrow-up
      0
      ·
      1 year ago

      for real, my homeserver in my appartment had an uptime of 450ish days before I had to power it down, because I wanted to plug in a power meter in front of it (don’t have anything fancy with redundant psus or something like that…).

    • ErwinLottemann@feddit.de
      link
      fedilink
      English
      arrow-up
      0
      ·
      1 year ago

      and mitigating internet outages is as easy as getting a 4 or 5g router as a backup.

      i stresstest my ups once a year because it doesn’t get to work otherwise 😬

  • circuscritic@lemmy.ca
    link
    fedilink
    English
    arrow-up
    0
    ·
    edit-2
    1 year ago

    Can you migrate, or setup failovers, to a low powered ARM device? Or one the new Intel N series e.g. N100 low power devices?

    If not, you’re going to need to buy/build a fairly large battery bank.

    • stafeel@lemmy.mlOP
      link
      fedilink
      English
      arrow-up
      0
      ·
      1 year ago

      Yeah, been looking into Pi’s and its alternatives. But with the external drives I think I’ll need a big powerbank or I’ve to DIY a ups

        • stafeel@lemmy.mlOP
          link
          fedilink
          English
          arrow-up
          0
          ·
          1 year ago

          Not a lot of critical services but I would absolutely need things like pihole.

          Just realized, I can host the critical ones on the ARM device and the services which I can do without for some time can stay on the current server.

          • TheInsane42@lemmy.world
            link
            fedilink
            English
            arrow-up
            0
            ·
            1 year ago

            Then I’d go that route. Here all is on RPies, alas not the NAS, but those disks are almost always in sleep mode.

            Small tip on the storage, go for a cheap SSD external (alie has a few for next to nothing), get at least 2-4, as reliability issues exists, but will show themselves within days or not. Only use rhe sd card to boot from, mount / from the ssd.

            1 RPi and an ssd can runa while on a small UPS. (Need to get me one as well)

            • 7Sea_Sailor@lemmy.dbzer0.com
              link
              fedilink
              English
              arrow-up
              0
              ·
              1 year ago

              Not sure if I’m a fan of the “AliExpress SSD” recommendation. They’re badly built and unreliable, you won’t know what capacity you get, and they can be incredibly slow.

              Regular, known-brand SSDs have dropped so much in price and are very affordable at low capacities. That should be a much safer investment than buying heaps of most likely unusable drives.

              • TheInsane42@lemmy.world
                link
                fedilink
                English
                arrow-up
                0
                ·
                1 year ago

                Depends. I used loads of ‘known brand’ micro SD cards and went trough them one per month. I ordered 2 KingSpec and ‘Kunup’ sticks, just to test. (june '20) Of each, 1 worked perfectly, 1 was not good enough for continuous use. The active Kingspec has been active for years now, but I use less then 20 GB of the 120 GB SSD. (Really need to clean up logs, OS shouldn’t use more then 5G, data is on NAS) The ones that were not reliable enough for continuous use are still in use for transport.

                It worked here and proved a lot cheaper then replacing the SD card every month. As they are Chineese ‘unknown brand’, ymmv hugely. (and don’t buy something that will just fit, as trade GB isn’t IT GB and Chineese GBs vary even more) It however is always a gamble to buy something from the other side of the world. (but hey, every ‘known brand’ is made in China anyway now, so we already are hugely locked into that country)

                • Turun@feddit.de
                  link
                  fedilink
                  English
                  arrow-up
                  0
                  ·
                  1 year ago

                  With the price of SSDs I’d recommend an internal SSD and SATA or m.2 to USB adapter instead. That way you can choose the enclosure to provide enough cooling, and even open the adapter and add a fan if you really stress the SSD.

              • TheInsane42@lemmy.world
                link
                fedilink
                English
                arrow-up
                0
                ·
                1 year ago

                I know, and from network, but I haven’t put time into enabeling that. (and I have loads of < 1G SD cards that need to be used up anyway)

                • Turun@feddit.de
                  link
                  fedilink
                  English
                  arrow-up
                  0
                  ·
                  1 year ago

                  A new RPI should have USB boot enabled out of the box. I know the first year after release you had to update the firmware to get it working, but iirc that is no longer needed. Just burn the image to the stick instead of the SD card and it’s plug and play.

    • Craftkorb@feddit.de
      link
      fedilink
      English
      arrow-up
      0
      ·
      1 year ago

      I’m honestly dumbfounded how that can happen in the US. Here in Germany power outages are rare, maybe a few minutes in 8 years.

      I really don’t get how something so important is left so broken in the biggest economy on earth.

      I’m not trying to be mean.

  • echo64@lemmy.world
    link
    fedilink
    English
    arrow-up
    0
    ·
    1 year ago

    Multiply your server wattage by 8 hours. That’s how much battery you need. It’s probably not going to be a cheap investment.

    The alternative would be to keep your ups and invest in a generator you can kick on if there is a power cut, but if it’s every day, that might get rough. Technology connections figured out a build it yourself solution a few years ago https://youtu.be/1q4dUt1yK0g?si=8WOTue9-zGghWlxY

      • neeeeDanke@feddit.de
        link
        fedilink
        English
        arrow-up
        0
        ·
        1 year ago

        are there no dc-dc PSUs (or technically just voltage regulators I guess) to relace a PSU with available? That way OP could avoid part of the Ac->Dc->Ac->Dc-conversion related losses he would have with a battery-backup.