Migration from Freenas all ZFS volumes to another machines lvm is pretty simple.
create on you new machine logical volume and start netcat which will write everything it receives to the new LVM of your choice:
# Source box
dd bs=16M if=/dev/disk/by-path/iscsi-mysql-lun-0 | nc 192.168.1.254 19000
# Destination box (192.168.1.254)
nc -l -p 19000|dd bs=16M of=/dev/vg0/mysql-data
While signing a certificate for a new OpenVPN user, I received the following error message which stops the whole process (exit code 1)
Certificate is to be certified until Nov 6 08:53:05 2023 GMT (3650 days)
Sign the certificate? [y/n]:y
failed to update database
TXT_DB error number 2
Because you have generated your own self signed certificate with the same CN (Common Name) information that the CA certificate that you’ve generated before.
Enter another Common Name.
Upgrading Fedora from Version Spherical Cow version 18 to the latest Schrödinger’s Cat version 19.
The official Fedora documentation is a good friend.
All following steps as root or with sudo;)
1. Backup your system
2. Do the upgrade
yum install fedora-upgrade
You will be asked at the end for a reboot
After reboot update yum to latest version available in your Fedora version
3. Clean up
Enjoy Schrodinger’s Cat
When replacing a failed disk you have to create partitions on the new one. Or simple copy them from the old one.
Clean and prepare new disk:
dd if=/dev/zero of=/dev/sdc bs=1024 count=1024
parted --script /dev/sdc mklabel msdos
Create Partitions overviews from old disk:
sfdisk -d /dev/sda > partitions-sda.txt
Now read in the crated partition table:
sfdisk /dev/sdc < partitions-sda.txt
old broken disk: /dev/sda
new working one: /dev/sdc
Discard a stock Mailman message from a command line: