Not using this all too often, so here it is for me and everyone:
create table my_new_table like my_old_table; insert into my_new_table select * from my_old_table;
An easy way to make a quick backup.
Increase from 300 G to 400 G using the same storage, but leverage LVM on GPT inside the VM.
lvextend -L +100G /dev/mapper/guests--lolguest virsh qemu-monitor-command lolguest info block --hmp virsh qemu-monitor-command lolguest block_resize drive-virtio-disk0 400G --hmp
sgdisk -e /dev/vda gdisk /dev/vda # <-- create partition 5 partprobe /dev/vda pvcreate /dev/vda5 vgextend ubuntu-vg /dev/vda5 lvextend -l +100%FREE /dev/ubuntu-vg/ubuntu-lv resize2fs /dev/mapper/ubuntu--vg-ubuntu--lv
Always watch out for paths, partition numbers and names!
This article explains how to get your own IP addresses and why you might want them. I try to make it as information dense as possible.Continue reading “How to get IP addresses?”
I got a couple of small computers laying around which are more like development systems and mostly lab environments. However, these are not running 24/7 and since I’m traveling alot I’m not always close to those computers. Let me show you what Wake on LAN (WOL) is and how you can make it Wake on WAN over IPv6.Continue reading “Wake on LAN? Wake on WAN!”
Recently I looked into deavmi’s project named CRXN where he’s leveraging yggdrasil’s peer-to-peer VPN routing mechanism to build an overlay network using IPv4. Since several of my online services are not connected to yggdrasil, I was wondering if it’s possible to just NAT64 CRXN into IPv6. Sure it worked quite fine, I’ll show you how we pulled that off.
Shitty pro-tip: You can also use this instruction to expose your super secured enterprise network to the public. Instead of yggdrasil you use your corporate VPN.
UPDATE: I had to setup mss clamping. Check the last paragraph how I did it. I also fixed some errata in my systemd service file.Continue reading “Subsetting CRXN into the real Internet”