this post was submitted on 11 Sep 2023
71 points (93.8% liked)

Selfhosted

40728 readers
557 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 2 years ago
MODERATORS
 

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.

you are viewing a single comment's thread
view the rest of the comments
[–] circuscritic@lemmy.ca 14 points 1 year ago* (last edited 1 year ago) (1 children)

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 1 points 1 year ago (2 children)

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

[–] circuscritic@lemmy.ca 2 points 1 year ago (1 children)

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

[–] stafeel@lemmy.ml 8 points 1 year ago (2 children)

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 3 points 1 year ago

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

[–] TheInsane42@lemmy.world 2 points 1 year ago (2 children)

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 2 points 1 year ago (1 children)

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 1 points 1 year ago (1 children)

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 1 points 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.

[–] Turun@feddit.de 1 points 1 year ago (1 children)

You can boot from the SSD directly btw

[–] TheInsane42@lemmy.world 1 points 1 year ago (1 children)

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 1 points 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.

[–] thisisawayoflife@lemmy.world 1 points 1 year ago

Look at the Turing Pi.