I believe this is a slightly controversial topic, at least from what I have gathered so far. Some say its best to leave the server on to spare the life time of the spinning rust. Other seem to prefer to save power and boot the server off each night. So wanted to chip in and hear what folks here do and why do what you do.

Bonus question; Do you guys have a UPS? Is it a must have for a homelab, or does it just depend on the usecase?

98 points

I leave my servers running 24/7, thats the point of a server. Also my home automation would be a little pointless if its off.

I did have a UPS, but it died and I have got round to replacing it.

Its all horses for courses, if your homelab is a playground to test things out then turning it off when not is use is fine. But some have live services that you may want at a moments notice and there for having it up all the time is better.

permalink
report
reply
15 points

I’m in the same boat as you. My server runs 24/7, because I have some services that require close to 100% uptime to function correctly.

My UPS works fine though, and I wouldn’t go without it these days. Just because the damage an improper shutdown can cause on data.

permalink
report
parent
reply
41 points

There’s a poweroff?!

permalink
report
reply
5 points

Im pretty sure OP is just yanking our chain.

permalink
report
parent
reply
34 points

And ruin my uptime stats? Are you mad?!?!

Among the many things I run are my own email servers so, yeah gotta be up all the time. And yes I have a UPS behind every electronic device in my house except the TV because if that dies I get to buy a new one.

I’ve probably spent upwards of $2000 on UPSes and replacement batteries over the last 20 years, but if it saved even one of my servers from taking a hit it was worth it. Servers are expensive and my time is valuable to me.

permalink
report
reply
3 points

Relevant xkcd: https://xkcd.com/705/

permalink
report
parent
reply
27 points

My home server does all my network related stuff (including DNS and DHCP) turning it off would be a very bad idea due to this.

I don’t have a UPS, but it is relatively high on my list.

permalink
report
reply
6 points

It all depends if you actually nerd those services 24/7

I dont need DHCP or DNS from 1am to 6am for example

permalink
report
parent
reply
12 points

“Do I need them? No, but I nerd them, so they stay up!”

A most relevant typo 👍

permalink
report
parent
reply
5 points

need them

LOL I do nerd em all as well

permalink
report
parent
reply
4 points

You may not but your phone will fail over to data if it loses its lease and stuff like background update tasks will cease to function (like Windows Update or dnf cron)

permalink
report
parent
reply
2 points

I moved my DNS to a pair of raspberry Pi 3’s running bind, with a DNS stub zone for my homelab domain that points to my homelab DNS servers.

That way the internet keeps working whether my homelab works or not. Keeps the wife aggro down.

permalink
report
parent
reply
22 points

You can do whatever you want. Don’t let anyone tell you it’s “wrong”. A big part of homelabbing is to try stuff. If it doesn’t work, that’s fine, you learned something, and that was the point.

For me, I don’t see a UPS as essential. It’s generally a good idea, but not strictly essential. My servers are on 24/7, because I have services that do things overnight for me. I also know that some people access my lab when I’m not awake, so I just leave it on so it can be ready for anything at any time. It poses some unique challenges sometimes when running stuff that’s basically 24/7/365.

Be safe, have fun, learn stuff.

permalink
report
reply
3 points

I have a ‘dumb’ UPS for my synology NAS to protect against short power outages - it’s done after a minute or 10 though so if I’m not at home it’ll crash anyway. In Retrospect I should’ve gone for a smart one that will shutdown the NAS.

permalink
report
parent
reply

Selfhosted

!selfhosted@lemmy.world

Create 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!

Community stats

  • 6.7K

    Monthly active users

  • 2.7K

    Posts

  • 42K

    Comments