Category: Admin’s Little Helpers

Moving lvm-thin volumes on proxmox between vm-s or ct-s

it’s pretty straight forward following this official howto: https://pve.proxmox.com/wiki/Moving_disk_image_from_one_KVM_machine_to_another lvs shows you all volumes in their volume group (in my case ‘ssd’) If the id of the new ct or vm is not equal to the id of the volume’s previous attachment, rename them, i.e. lvrename ssd/vm-101-disk-1 ssd/vm-117-disk-2 this will make vm-101-disk-1 available as vm-117-disk-2,

Continue Reading…

WakeOnLan, Archlinux, systemd-networkd, Asus Pro WS X570-ACE

The board has two integrated ethernet adapters, here’s the lshw data: sudo lshw -c network  *-network                         description: Ethernet interface       product: I211 Gigabit Network Connection       vendor: Intel Corporation       physical id: 0       bus info: pci@0000:05:00.0       logical name: enp5s0       version: 03       serial: 24:4b:fe:<redacted>       size: 1Gbit/s       capacity: 1Gbit/s       width: 32 bits       clock: 33MHz       capabilities: pm msi msix pciexpress

Continue Reading…

Upgrade Postgresql from 11 upwards

On Ubuntu 18.04 Multiple installations (11, 12, 13) be wary of that, as pg_upgradcluster for example will always go for the hightes version. copied configuration files for new version initialized new version db stopped the current server and killed all connections ran checked upgrade with linked files had to fix diverse configuration file problems that

Continue Reading…

Some reminders for http caching

blatantly copypasted from https://httptoolkit.tech/blog/http-wtf/ No-cache means “do cache” Caching has never been easy, but HTTP cache headers can be particularly confusing. The worst examples of this are no-cache and private. What does the below response header do? It looks like this means “don’t store this response anywhere”, right? Hahaha no. In reality, this means “please

Continue Reading…

run openvpn in client mode automatically after linux boot

scenario: send out a raspberry pi model b rev1, all setup with raspberryi os / raspbian. the hardware specs are nothing much, but the machine is reliable, even when apparently half the ram chips are dead…. install openvpn, then take the config file from the server you want to connect to – in my case

Continue Reading…