Egregoros

Signal feed

Timeline

Post

Remote status

Context

6

infrastructure update:

im moving everything off the main disk onto the new disk. Everything seems to be fine for the most part. im working on moving the important stuff now, then I will copy the rest after

the primary system partition is fine surprisingly, but I am wondering if I want to re-install my current host this upcoming December with a better distro than what I have been running ATM since debian has been giving me nonstop friction

if anyone has suggestions or a distro they prefer tell me, im not running anything like proxmox and I want to keep the system bare metal, no hypervisor, for now

@theorytoe It is repackaged RHEL for the most part, so some software choice is weird (like NetworkManager on a fucking server). You can check pkgs.org or repology.org if what you want is packaged in main repos or EPEL. But if not, it is kinda annoying. Especially if you need new-ish versions of things like go/rust/node. If you like Debian for packaging old versions, RHEL does that even more.

Replies

26
@theorytoe @tyler Containers are always an option, but not my preferred way at least. Usually a last resort if software is hell to build and package. With mise/asdf, it is at least pretty easy to get new toolchain versions on an older system.

Honestly, my main and pretty much only reason for running RHEL is that it has 5+5 years of support and is less broken than Debian/Ubuntu. If I could run Gentoo on a small 1 core VPS with a gigabyte of RAM, I would.
@kumicota @theorytoe @tyler https://stackoverflow.com/questions/77941756/how-do-i-add-pg-repack-to-a-postgres-container

Side note: The way it is done in the answer will create 2 intermediate images that will be part of the image, but are completely useless (the apt update/install and apt remove). To do it properly, you do it the way Pleroma's Dockerfile is structured. (Build in a separate `FROM XYZ as build` and then copy only what is needed to the Postgres image. [The last FROM declaration in a Dockerfile is the base for resulting image.])
@phnt @theorytoe @tyler when I first started hosting FETI instances, my knowledge of Linux was if Ubuntu breaks, you got to reinstall Ubuntu and start over.

When people start entrusting me with their data, I felt obligated to keep it safe and learn how to keep it safe.

When migrating from NB to baest, I also took that as an opportunity to switch from Arch to Ubuntu because a rolling release distro is not the best for something like that.

Later I put the database on a ZFS, so doing backups of the database before an upgrade was as simple as taking a snapshot. Also, I could ensure the integrity of the database.

I also took dumps of the database every 12 hours.

It was a plan of mine to implement point-in-time recovery, but I never got around to it.

That being said, I always made sure to ensure that the database dumps of the database and all uploaded attachments were safe and stored on more than just the server.

I think a lot of people underestimated just how much effort I put into keeping the data of the attachments and database safe

Database and attachments were always stored in at least three physical locations and at least two separate continents.
@Idoru @theorytoe @tyler They would be technically correct, it's a distro for power users with almost zero guardrails on purpose. The wiki page does explicitly say that it is recommended to add postgres packages to the ignore list so that they don't update without the admin doing it explicitly manually.

t. ex-arch user btw
@phnt @theorytoe @tyler @Idoru
>The wiki page does explicitly say that it is recommended to add postgres packages to the ignore list so that they don't update without the admin doing it explicitly manually.

so, here's the thing. Arch's pacman does not guarantee (or at least, this used to be the case last I used it) dynamic library dependencies. It is entirely possible that some library that PostgreSQL depends on gets yanked out from under it during an upgrade. And Postgres depends on quite a bunch of stuff.

Though, this is still much better than database corruption. But any how, you probably don't want Arch on your servers.
@newt @theorytoe @tyler @Idoru You can depend on a specific library version, but it is rarely done and it is not automatic. Packages that link against ffmpeg do that on Arch.

Though all of the libraries are most likely already linked and mapped for the running postgres instance so this is mostly a problem on reboots and db restarts. It does happen though, Lua on Arch is also notorious for doing this.