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.

ɐɥO
link
fedilink
English
61Y

some 2nd hand car batteries + 12-230v converter are probably the cheapest option

@mudeth@lemmy.ca
link
fedilink
English
71Y

Forgive me if I’m wrong, but auto batteries aren’t meant for deep discharge. UPS’s use a specific type of battery that is meant for it.

Using auto batteries in this situation would likely end up in them dying after a few months.

@evranch@lemmy.ca
link
fedilink
English
31Y

“Deep cycle” batteries are the best of the lead-acids for the task. But they are still obsolete and you should source lithium if at all practical.

However if power interruptions are short, loads are low or you have an external power source like solar or wind, inferior batteries can do the job.

I use a bunch of old car batteries at my house for my battery bank. It’s more of a big capacitor, but it’s almost always sunny here and kW of solar are pouring in.

My critical equipment i.e. starlink, home and farm automation and monitoring, cell booster and HMI/SCADA only take a couple hundred watts, so no big deal. Most of the solar power goes to keeping the freezers cold.

@mudeth@lemmy.ca
link
fedilink
English
11Y

Thanks for your insight. You seem to have some experience.

I’m currently researching a solar hybrid power system in India and am going through different battery types. We have used deep-cycle lead-acid batteries with a regular UPS and I’m familiar with their lifesoan.

Do lifepo4s last longer? I’m only seeing marginally longer lifespans. I’m also concerned about safety. I’m quite scared of regular lithiums and have read that lifepo4s are more hardy.

What about maintenance? Anything else I need to know about them?

@evranch@lemmy.ca
link
fedilink
English
21Y

As the other commenter said, it’s all about depth of discharge. A 10kWh Lifepo4 bank gets you almost 10kWh every time while you should treat a 10kWh lead-acid bank as if it was a 2kWh bank for any sort of decent life, with deep discharges being limited to emergency situations.

All lithium chemistries are practically maintenance free while you are probably familiar with water level monitoring and equalization of lead acid.

Note that all site built lithium banks MUST have a balance mechanism as this is their “automated maintenance”. Without balancing on every charge, lithium cells will be rapidly destroyed.

@mudeth@lemmy.ca
link
fedilink
English
11Y

Good points to note, thank you! I would have taken the balancing circuit for granted, but it doesn’t hurt to double-check with vendors.

@Jason2357@lemmy.ca
link
fedilink
English
11Y

Car batteries are cheap storage if you very rarely discharge them. You get many years if you are only using the top 80% or so of their voltage range, but if you discharge them to 50%, you only get a few hundred cycles, and if you discharge to 0%, you get dozens, if that. “Deep cycle” batteries have the same characteristic, but tend to give you more amp-ours before you hit those thresholds.

Good Lifepo4 batteries could last up to 10 years with daily full discharges. They are quite amazing in that respect. They are also likely safer than even lead acid -which need to be vented properly to avoid hydrogen gas buildup. They don’t get thermal runaway like lipos, but the cells are very much capable of producing enough current for electrical fires, so you want ones that are built properly. Maintenance is pretty much just “don’t ever charge it if it’s frozen.”

@mudeth@lemmy.ca
link
fedilink
English
11Y

I didn’t know that deep-discharge batteries also had the same characteristics, TIL, and it makes sense based on my experience with them!

Doubletwist
link
fedilink
English
1
edit-2
1Y

UPSes aren’t meant to keep things running for long periods of time.

If you’re trying to keep things on for hours, you need a generator. Then the UPS just needs to keep things running until the generator comes online.

I suspect it’ll be a lot cheaper to get a small generator than it would be to buy enough UPS and batteries to run things for multiple hours.

@Decronym@lemmy.decronym.xyz
bot account
link
fedilink
English
2
edit-2
1Y

Acronyms, initialisms, abbreviations, contractions, and other phrases which expand to something larger, that I’ve seen in this thread:

Fewer Letters More Letters
DNS Domain Name Service/System
NAS Network-Attached Storage
NUC Next Unit of Computing brand of Intel small computers
PSU Power Supply Unit
PiHole Network-wide ad-blocker (DNS sinkhole)
RPi Raspberry Pi brand of SBC
SATA Serial AT Attachment interface for mass storage
SBC Single-Board Computer
SSD Solid State Drive mass storage

[Thread #132 for this sub, first seen 11th Sep 2023, 19:25] [FAQ] [Full list] [Contact] [Source code]

Possibly linux
link
fedilink
English
71Y

I rarely get power outages so I just use a filesystem that can take the abuse (ei btrfs or zfs)

circuscritic
link
fedilink
English
10
edit-2
1Y

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.ml
creator
link
fedilink
English
11Y

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

Look at the Turing Pi.

circuscritic
link
fedilink
English
21Y

What services are you running? Which of them are critical and need to stay up?

@stafeel@lemmy.ml
creator
link
fedilink
English
81Y

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.

@CmdrShepard@lemmy.one
link
fedilink
English
31Y

Will anything even be able to use PiHole with the power out?

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)

Turun
link
fedilink
English
01Y

You can boot from the SSD directly btw

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
link
fedilink
English
11Y

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.

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.

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
link
fedilink
English
11Y

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.

@Chup@feddit.de
link
fedilink
English
101Y

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.

@stafeel@lemmy.ml
creator
link
fedilink
English
41Y

I should probably clarify that the 8 hour ones are infrequent. Once in a month or two. But those are the days that are really annoying. The regular ones are like two hours a day or an hour at 3 different times in a day. All the other appliances are manageable but I have to shutdown my server every time.

@SheeEttin@lemmy.world
link
fedilink
English
31Y

This. Batteries are to bridge the gap until the generator is running.

Cole
link
fedilink
English
51Y

Depending on your budget and location, a whole house backup generator can be relatively inexpensive. My family lives in a very rural area in the central US, so we have a backup whole house generator that runs on propane. I chose propane because those motors seem to have less maintenance, plus we have propane for the grill, etc, already on site.

Curious Canid
link
fedilink
English
9
edit-2
1Y

I have a small UPS to keep my fiber and router working for a while and I have a larger UPS for my server. Even the larger UPS will only keep the server going for maybe half-an-hour, but most outages here are short. For me, the most important benefit is that my UPS will tell my server to shutdown when it begins to get short of power. Graceful shutdowns remove the risk of corruption and data loss.

Do you have access to a gas-powered generator? A UPS could keep you up long enough to cut over.

Scrubbles
link
fedilink
English
41Y

I’m against fossil fuel solutions, a UPS is good if you have daily shorter outages. A quality server-grade UPS is pricey, but can last you much longer.

The best solution, and this is an investment, but would be solar. Tbh if you have power outages that often and you own your place, then I would be seriously looking into solar+wall battery. It would fail over automatically.

We know nothing about your location/usage OP so it’s hard to make recommendations. But if it were me and my equipment in your scenario, I’d go full solar.

@Appoxo@lemmy.dbzer0.com
link
fedilink
English
17
edit-2
1Y

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

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 😬

@neeeeDanke@feddit.de
link
fedilink
English
31Y

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…).

@Im1Random@lemm.ee
link
fedilink
English
2
edit-2
1Y

Another German here and yeah I also only had a single power outage (around 1h) in the last 5 or 6 years. Couldn’t even imagine having no power once every day or even every week.

@CmdrShepard@lemmy.one
link
fedilink
English
291Y

OP just needs a really long extension cord plugged into a German outlet.

@johntash@eviltoast.org
link
fedilink
English
31Y

Most desktop ups are more meant to give you time for the machine to shut down (hopefully automatically) vs actually running them for n extended period of time.

Do you have anything that would still be using the server when the power is out?

It’s not really answering your question, but are solar panels or a backup generator possible in your area? A long power outage like that everyday would be really annoying

@stafeel@lemmy.ml
creator
link
fedilink
English
11Y

It’s odd how people get used to the powercuts. It becomes a part of our lives.

Hadn’t thought of generators. But I feel those might be overkill for me.

@Treczoks@lemmy.world
link
fedilink
English
121Y

I live in a part of the world where powercuts are pretty frequent.

Texas?

Earl Turlet
link
fedilink
English
11Y

I have all of my important electronics (computers, entertainment center, network equipment) on CP1500PFCLCD. They’re scattered around the house, so there are multiple CP1500PFCLCD.

…then there’s a 22 kW gas generator that handles everything once it switches on.

Ah. Texas.

@Craftkorb@feddit.de
link
fedilink
English
41Y

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.

Also not trying to be mean, but energy in the US is generally very cheap ($0.12/kwh where I am). With more regulation of the market, the reliability would probably increase but so would the price! (I see this happen first hand since I work in the industry)

@waz@feddit.uk
link
fedilink
English
11Y

That doesn’t sound like a bad thing tbh.

Few reasons. First, the United States is huge. Texas alone is twice the size of Germany. Second, the U.S. has three main power grids. The left half, the right half, and Texas. It’s a little more complex than that, but the important part is that Texas is on its own. Third, Texas hates people. They let companies deregulate to hell and back, even at the expense of its residents.

The combination of being on its own power grid, deregulating that power grid and the companies that maintain it, and not taking proper precautions to protect its residents all leads to a less-than-reliable power grid when it gets hit with any non-standard weather. Texas especially needs to prepare for climate change, but things could definitely be going better…

I am totally out of the loop. Why is Texas’s power grid that bad right now?

ASeriesOfPoorChoices
link
fedilink
English
151Y

Republicans.

@jhulten@infosec.pub
link
fedilink
English
21Y

Not just the GOP, but privatization of public goods and services. Profit motive is a terrible way to run a power grid.

I have an apc battery hooked up to it

@rambos@lemm.ee
link
fedilink
English
181Y

Where are you from my friend? Why do you actually need server running if you have no electricity at home? Your internet is also down right? Dont you need to just find how to shutdown safely when outage happens? Or do you have mobile/sattelite internet as a backup?

I use candles btw 🕯️

shnizmuffin
link
fedilink
English
71Y

Not OP but my fiber optic Internet is not on the same power grid as the rest of my house. I’ve got a battery backup on my routers and modem for exactly this reason. I’ve got a UPS to handle a power outage into automatic graceful shutdown at 33% remaining.

@rambos@lemm.ee
link
fedilink
English
21Y

That makes sense now, thx

Same deal here.

Can keep my WiFi up and running for hours in a power outage, even when cell signal has dropped out. Server on a separate UPS shuts down at about 40%.

Create a post

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!

  • 1 user online
  • 279 users / day
  • 589 users / week
  • 1.34K users / month
  • 4.55K users / 6 months
  • 1 subscriber
  • 3.49K Posts
  • 69.7K Comments
  • Modlog