Category: linux
- Expanding ZFS pool online ()
At work I’m setting up a new syslog server and wanted the logs to be stored raw on disk (that is not compressed using gzip). To do that I created a ZFS pool with compression enabled allowing for transparent compression. First I created a zpool with a single disk (this is a VM so no […]
- Configuring systemd user timer ()
To run systemd timer jobs (cron) as a user you’ll need to create a systemd service folder as the user: By default, systemd will only run timers if the user is logged in so to be able to run timer jobs without logged in use we enable lingering session with Then you can drop the […]
- haproxy: Monitor PostgreSQL for current master ()
There are couple of methods for haproxy to monitor what PostgreSQL instance is currently master so that “dumb” clients can always write to a PostgreSQL instance (instead of connecting to the standby node). First there is the send-binary method by replicating the PostgreSQL V3 protocol but requires trusted connection and is TCP/IP only (no SSL). […]
- vlan bridges in netplan ()
Took me a while to figure this one out in the netplan yaml syntax: Bonus .vimrc settings for yaml
- Pipe cron to syslog/journald ()
Simple way to pipe cron script output to journalctl / syslog gives following in journalctl