top 96 comments

sorted by: hot top controversial new old
[–] 217 points 7 months ago (7 children)

Let's tinker around and accidentally break something.

  • source
  • hideshow 7 child comments
  • [–] 73 points 7 months ago (4 children)

    and debug it until you have to reinstall your entire stack from scarch

  • source
  • parent
  • hideshow 4 child comments
  • [–] 105 points 7 months ago (1 child)

    If it’s stable, it’s not a lab.

    That’s infrastructure.

  • source
  • hideshow 1 child comment
  • [–] 4 points 7 months ago

    I've moved my homelab twice because it became stable, I really liked the services it was running, and I didn't want to disturb the last lab**cough**prod server.

    My current homelab will be moar containers. I'm sure I'll push it to prod instead of changing the IP address and swapping name tags this time.

  • source
  • parent
  • [–] 76 points 7 months ago (7 children)

    When's the last time you checked if your backup solution works?

  • source
  • hideshow 7 child comments
  • [–] 4 points 7 months ago* (3 children)

    What's a backup solution..? (I'm only being half sarcastic, I really need to set one up, but it's not as "fun" as the rest of my homelab, open to suggestions)

  • source
  • parent
  • hideshow 3 child comments
  • [–] 4 points 7 months ago (2 children)
  • [–] 7 points 7 months ago* (1 child)

    I at least have external backups for important family pics and docs! But yea the homelab itself is severely lacking. If it dies, I get to start from scratch. Been gambling for years that "I'll get around to a backup solution before it dies". I wouldn't bet on me :|

  • source
  • parent
  • hideshow 1 child comment
  • [–] 44 points 7 months ago* (2 children)

    logging is probably down

    You do, of course have a dedicated rsyslogd server? An isolated system to which logs are sent, so that if someone compromises another one of your systems, they can't wipe traces of that compromise from those systems?

    Oh. You don't. Well, that's okay. Not every lab can be complete. That Raspberry Pi over there in the corner isn't actually doing anything, but it's probably happy where it is. You know, being off, not doing anything.

  • source
  • hideshow 2 child comments
  • [–] 37 points 7 months ago (8 children)

    You have remote power management set up for the systems in your homelab, right? A server set up that you can reach to power-cycle other servers, so that if they wedge in some unusable state and you can't be physically there, you can still reboot them? A managed/smart PDU or something like that? Something like one of these guys?

    Oh. You don't. Well, that's probably okay. I mean, nothing will probably go wrong and render a device in need of being forcibly rebooted when you're physically away from home.

  • source
  • hideshow 8 child comments
  • [–] 7 points 7 months ago (3 children)

    Does a $12 Shelly plug count?

  • source
  • parent
  • hideshow 3 child comments
  • [–] 6 points 7 months ago (2 children)

    if you can cycle your home assistant with the shelly plug whilst your home assistant is down, yes. from experience it’s really quite annoying to have a smart plug switch off HA…

  • source
  • parent
  • hideshow 2 child comments
  • [–] 1 point 7 months ago (1 child)

    HA is on the same proxmox host as the router. So yeah I can end up locked out. Hasn't happened yet tho! The relay is on my test machine, it's always nvidia that crashes there.

  • source
  • parent
  • hideshow 1 child comment
  • [–] 2 points 7 months ago* (last edited 7 months ago)

    An 8 switch relay, old Pi, and 8 hardware store outlets can be had for not much more. I did that and let PiKVM control my outlets directly.

    This is the back of my 10" rack before it was cleaned up. Lots of custom work on this that I'll be posting a page on my site about when complete.

    @tal@lemmy.today in case you are interested

  • source
  • parent
  • [–] 7 points 7 months ago

    Oh. You don’t. Well, that’s probably okay. I mean, nothing will probably go wrong and render a device in need of being forcibly rebooted when you’re physically away from home.

    *furiously adds a new item to the TODO list*

  • source
  • parent
  • [–] 2 points 7 months ago

    If you do have the smart PSU and power management server you probably also went down the rabbit hole of scripting the power cycling, right? Maybe made that server hardened against power loss disk corruption so it can be run until UPS battery exhaustion.

    What if there is a power outage and NUT shuts everything down? Would be nice to have everything brought back up in an orderly way when power returns. Without manual intervention. But keeping you informed via logging and push notifications.

  • source
  • parent
  • [–] 37 points 7 months ago (8 children)

    Time to start documenting it!

  • source
  • hideshow 8 child comments
  • [–] 22 points 7 months ago (5 children)

    At 71, I have to document. I started a long time ago. I worked for a mec. contractor long ago, and the rule was: 'If you didn't write it down, it didn't happen.' That just carried over to everything I do.

  • source
  • parent
  • hideshow 5 child comments
  • [–] 10 points 7 months ago (4 children)

    Do you write down what you write down on the internet?

  • source
  • parent
  • hideshow 4 child comments
  • [–] 6 points 7 months ago (3 children)

    As in a blog or wiki? I do not because I am not authoritative. What I know came from reading, doing, screwing it up, ad nauseam. When something finally clicks for me, I write it down because 9 times out of 10, I will need that info later. But my writing would be so full of inaccuracies that it would be embarrassing and possibly lead someone astray.

  • source
  • parent
  • hideshow 3 child comments
  • [–] 2 points 7 months ago (2 children)

    It's how cults start!

    I've started to take a l lot more notes at work I guess there will be a time where I take notes of what month it is!

  • source
  • parent
  • hideshow 2 child comments
  • [–] 1 point 7 months ago (1 child)

    I guess there will be a time where I take notes of what month it is!

    You may jest, but there are times when I can't remember what I had for breakfast. They say that you never truly forget anything, but that our recall mechanism fades over time. For a myriad of reasons, including age, my recall mechanism is shit.

  • source
  • parent
  • hideshow 1 child comment
  • [–] 36 points 7 months ago (6 children)

    Have you already tried implementing an identity provider like Authentik, so you can add OIDC and ldap for all your services, while you are the only one that’s using them? πŸ€”

  • source
  • hideshow 6 child comments
  • [–] 18 points 7 months ago (3 children)

    Behind a traefik reverse proxy with lets encrypt for ssl even though the services aren’t exposed to the internet?

  • source
  • parent
  • hideshow 3 child comments
  • [–] 4 points 7 months ago

    Who cares if it's exposed to the internet?

    1. Encrypting your local traffic is still valuable to protect your systems from any bad actors on your local network (neighbor kid cracks your wifi password, some device on your network decides to start snooping on your local traffic, etc)

    2. Many services require HTTPS with a valid cert to function correctly, eg: Bitwarden. Having a real cert for a real domain is much simpler and easier to maintain than setting up your own CA

  • source
  • parent
  • [–] 35 points 7 months ago (2 children)

    All of those systems in your homelab...they aren't all pulling down their updates multiple times over your network link, right? You're making use of a network-wide cache? For Debian-family systems, something like Apt-Cacher NG?

    Oh. You're not. Well, that's probably okay. I mean, not everyone can have their environment optimized to minimize network traffic.

  • source
  • hideshow 2 child comments
  • [–] 30 points 7 months ago (3 children)

    The rare moment when everything actually works. πŸ˜„

  • source
  • hideshow 3 child comments
  • [–] 23 points 7 months ago (3 children)

    Don't worry, you're one Docker pull away from having to look up how to manually migrate Postgres databases within running containers!

    (Looks at my PaperlessNGX container still down. Still irritated.)

  • source
  • hideshow 3 child comments
  • [–] 20 points 7 months ago (3 children)

    I should do some breaking network changes... While tunneled in.

  • source
  • hideshow 3 child comments
  • [–] 10 points 7 months ago (2 children)

    β€œYes, while connected to my wireguard server through port 123 here from my Chinese office, I should probably try to upgrade the wireguard server. That’s a great idea!”

    Ask me how I know.

  • source
  • parent
  • hideshow 2 child comments
  • [–] 20 points 7 months ago (1 child)

    Backups. You're forgetting them.

  • source
  • hideshow 1 child comment
  • [–] 37 points 7 months ago* (last edited 7 months ago) (24 children)

    Now try migrating all your docker containers to podman.

  • source
  • hideshow 24 child comments
  • [+] 13 points 7 months ago (15 children)
  • [–] 15 points 7 months ago (14 children)

    And then try turning on SELinux!

  • source
  • parent
  • hideshow 14 child comments
  • [–] 8 points 7 months ago (7 children)

    I set my homelab up on Bazzite immutable with podman and SELinux. It took a while to work everything out and have it boot up into a valid state hahaha

  • source
  • parent
  • hideshow 7 child comments
  • [–] 6 points 7 months ago (6 children)

    Any reason you chose Bazzite for your homelab distro? First I've heard of someone doing that!

  • source
  • parent
  • hideshow 6 child comments
  • [–] 2 points 7 months ago (2 children)

    At the start I just wanted a desktop machine that runs Steam through sunshine/moonlight so hardware support and gaming stuff such was very important.

    My homelab used to run on my laptop when it could all fit within a couple 100s of GB and I was the only user but moving it was tricky. Since I'm a programmer I'm not afraid of this stuff so I just spent the hours to figure out one problem at a time.

    I ended up figuring out adding HDD whitelist in SELinux, make it accessible in podman, manually edit fstab because tools didn't work, systemd service for startup, logging in automatically where I already forgot everything and would have not had to do any of this on a bog standard Ubuntu server.

  • source
  • parent
  • hideshow 2 child comments
  • [–] 2 points 7 months ago* (1 child)

    Respect! I too often take it for granted that it's a privilege for my gaming rig and my homelab server to be separate boxes.

    My server is Almalinux, my laptop is Mint, and my gaming rig is Nobara. But if I had to consolidate everything in to one machine, I'd pick Nobara.

  • source
  • parent
  • hideshow 1 child comment
  • [–] 1 point 7 months ago (2 children)

    Wouldn't an immutable OS be overall a pretty good idea for a stable server?

  • source
  • parent
  • hideshow 2 child comments
  • [–] 1 point 7 months ago

    I honestly don't know a ton about immutable distros other than that they let you front-load some difficulty in getting things set up in exchange for making it harder to break. I was just surprised that the distro of choice was Bazzite, since its target audience seems to be gamers.

  • source
  • parent
  • [–] 4 points 7 months ago (5 children)

    It's not that difficult to get SELinux working with podman quadlets, especially if you run things rootless. I have a kerberized service account for each application I host and my quadlets are configured to run under those. I very rarely encounter applications that simoky can't be run rootless but I usually can find an adequate alternative. I think right now the only thing that runs as root is one of the talk or collabora containers in my nextcloud stack. No selinux issues either.

  • source
  • parent
  • hideshow 5 child comments
  • [–] 1 point 7 months ago (4 children)

    I use podman-compose with system accounts and I don't have a ton of issues. The biggest one is that I can't seem to get bluetooth and pip working on Home Assistant at the same time. Most of the servers I manage have SELinux and it works fine as long as I use :z/:Z with bind mounts.

    A few years ago, I set up a VPS for my friend's business; at the time, I didn't know how to work with SELinux so I just turned it off. I tried to flip it back on, and it somehow bricked the system. We had to restore from a backup. Since then, I've been afraid to enable it on my flagship homelab server.

  • source
  • parent
  • hideshow 4 child comments
  • [–] 1 point 7 months ago (3 children)

    are you sure it really bricked it? when turning it on, on next boot it needs to go over all the files and retag them or something like that, and it can take a significant amount of time

  • source
  • parent
  • hideshow 3 child comments
  • [–] 1 point 7 months ago (2 children)

    Honestly, I don't know what happened, but it was unreachable via SSH and the web console. There shouldn't have been a ton of files to tag since it was an Almalinux system that started with SELinux enabled, and all we added was a container app or two.

  • source
  • parent
  • hideshow 2 child comments
  • [–] 2 points 7 months ago (1 child)

    that started with SELinux enabled

    that does not matter, it needs to go over all of them. I don't know how long it takes with SSD, but with HDD it can take a half an hour or more, with a mostly base system. and the kernel starts doing this very early, when not even systemd or other processes are running, so no ssh, but web console should have been working to see what its doing

  • source
  • parent
  • hideshow 1 child comment
  • [–] 4 points 7 months ago (6 children)

    Just did that last weekend. Nothing to do anymore. 😒

  • source
  • parent
  • hideshow 6 child comments
  • [–] 4 points 7 months ago (5 children)
  • [–] 3 points 7 months ago (2 children)

    Yes of course. Had to spend a couple of hours fixing permission related issues.

  • source
  • parent
  • hideshow 2 child comments
  • [–] 2 points 7 months ago (1 child)

    I had problems getting apps with multiple containers working in quadlets (definitely a knowledge issue on my part, but didn't feel the time learning it was beneficial, but will probably revisit during kubernetes learning) so went back to podman with docker compose.

  • source
  • parent
  • hideshow 1 child comment
  • [–] 18 points 7 months ago*

    You have an intrusion detection system set up, right? A server watching your network's traffic, looking for signs that systems on your network have been compromised, and to warn you? Snort or something like that?

    Oh. You don't. Well, that's probably okay. I mean, probably nothing on your network has been compromised. And probably nothing in the future will be.

  • source
  • [–] 17 points 7 months ago* (3 children)

    Never run:

    docker compose pull
    docker compose down
    docker compose up -d
    

    Right before the end of your day. Ask me how I know πŸ˜‚

  • source
  • hideshow 3 child comments
  • [–] 2 points 7 months ago

    Right before the end of your day

    Oh, gosh, I did this last evening. I didn't check what time it was, and initiated an update on some 70 containers. I have a cron that shuts down the server in the evening, and sure enough, right in the middle of the updates, it powered off. I didn't even mess with it and went to bed. Re-initiated the update this morning, and everything is up and running. Whew!

  • source
  • parent
  • [–] 14 points 7 months ago

    All of your systems are set up, but are they capable of being redeployed using a configuration management software package? Ansible or something like that?

    Oh. They're not. Well, that's probably okay. I mean, you could probably go manually reproduce configurations, more or less.

  • source
  • [–] 13 points 7 months ago (1 child)

    You have all your devices attached to a console server with a serial port console set up on the serial port, and if they support accessing the BIOS via a serial console, that enabled so that you can access that remotely, right? Either a dedicated hardware console server, or some server on your network with a multiport serial card or a USB to multiport serial adapter or something like that, right? So that if networking fails on one of those other devices, you can fire up minicom or similar on the serial console server and get into the device and fix whatever's broken?

    Oh, you don't. Well, that's probably okay. I mean, you probably won't lose networking on those devices.

  • source
  • hideshow 1 child comment
  • load more comments
    view more: next β€Ί