text

convert ext4 to xfs

apt-get install xfsprogs!!

boot gparted to shrink partitions / setup empty partition for xfs (e.g. vda3).

boot debian live rescue:

- mkfs.xfs -f /dev/vda3

- mount both partitions and cp -a /mnt2/* /mnt

- empty /mnt2 and move everything from /mnt/boot over

- umount /mnt2 ; mount /dev/vda1 /mnt/boot ; mount -o bind /dev /mnt/dev ; mount -o bind /sys /mnt/sys ; mount -o bind /proc /mnt/proc

- nano /mnt/etc/fstab -> /dev/vda1 /boot etx4 defaults 0 1 ; /dev/vda3 / xfs defaults 0 1

- chroot /mnt ; grub-install /dev/vda ; update-grub

- exit ; umount /mnt/boot ; umount /mnt/dev ; umount /mnt/sys ; umount /mnt/proc ; umount /mnt

reboot to hdd and check.

afterwards may resize all partitions with gparted accordingly and change /etc/fstab to UUIDs and wanted mount options.


text

resparse raw image

qemu-img convert -O raw ./vm-210-disk-1.raw.bak ./vm-210-disk-1.raw

text

hard kill multiple processes by grepping

kill -9 $(ps ax  | awk '/spiceproxy/ {print $1}')

text

stop snmpd spamming log-files

Thus if /etc/default/snmpd contains the line

SNMPDOPTS='-LS 5 d -Lf /dev/null -p /var/run/snmpd.pid'

The capital S is crucial to the syntax.

or even better, just add

dontLogTCPWrappersConnects true

into /etc/snmp/snmpd.conf

text