A Modest Proposal for minimizing downtime and adding more blinkenlights to ye olde 25U rack

In case you haven’t been following my work (I absolutely can’t blame you, as this blog is self-congratulatory at best), I have a 25U rack with some stuff in it. In short, it consists of a Supermicro 2U X9, and a ZFS pool, with an almost-identical second Supermicro 2U X9 that exists as a cold spare, and a ZFS backup target. There’s also a Dell R620 1U that I’ve done absolutely nothing with yet beyond installing Proxmox....

2021-08-28 · 3 min · Stephan Garland

Baking VMs to Perfection

I’ve now accomplished one of my previously-mentioned desires, namely, to use Packer to make VMs for Proxmox. After much battling with YAML and esoteric bash commands, I have succeeded in being able to spawn endless VMs, ready to go just how I like them. As with many projects I’ve done, this was thanks to someone else’s hard work; I merely customized it. The repo[s] are in two parts, and for my forks, only the Debian template has been customized....

2021-07-03 · 4 min · Stephan Garland

Might As Well Jump

A friend wanted to learn Linux, so I offered to spin up a VM under Proxmox. Done. Just kidding. I mean, that would work (assuming you handled port forwarding) if you were hitting an IP, but FQDNs are much easier for people to remember. Except ssh isn’t based on HTTP, so how do you forward them? One way is with nginx’s stream module. Something like this suffices. stream { upstream ssh { server $DEST_IP:$SSH_PORT; } server { listen $FORWARDED_PORT; proxy_pass ssh; } } And that’ll handle one person just fine....

2021-02-21 · 3 min · Stephan Garland

Failed NVMe drive? Better change your upstream DNS resolver.

This is not entirely an “it’s always DNS joke,” I promise. But for the record, it is always DNS. I have an (three, actually - two are boot drives/VM storage) NVMe drive in my server that serves multiple functions - a Plex cache, a ZFS Intent Log (I should get rid of that, as it’s shown to have 0% gains for me), and a general scratch disk for anytime I need a fast disk....

2021-02-03 · 3 min · Stephan Garland

Hardware Sucks

It’s coarse and rough and irritating and… it sucks. There’s a reason why cloud providers are wildly popular. Scaling in AWS is incredibly easy; not so much when you’re rolling your own. God help you if you’re doing this by cobbling together disparate groups of enterprise and consumer hardware. Oh wait, that’s exactly what I’m doing. I’ve had a Linux box since 2016 or so. I mean, I dual-booted every distro known to man with Windows when I was a teenager (including bootstrapped Gentoo, and I managed to get a crotchety HP printer to work with it), but I didn’t have a dedicated Linux box until then....

2021-01-03 · 12 min · Stephan Garland