This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
bock_upgrade_debian_10_-_11 [2024/06/20 20:45] SLUUG Administration |
bock_upgrade_debian_10_-_11 [2025/02/26 00:40] (current) SLUUG Administration Add cloning steps |
||
---|---|---|---|
Line 248: | Line 248: | ||
- | ===== Step 1 - Upgrade Bock2 Clone 0 ===== | + | ===== Step 1 - Test upgrade - Bock2 Clone 0 ===== |
+ | |||
+ | === Possible preparation steps if copying to a clone === | ||
+ | |||
+ | * Update DNS | ||
+ | * hostname to IP | ||
+ | * reverse for IP | ||
+ | * SPF TXT record | ||
+ | * Warn admins to not make changes during the copying | ||
+ | * Shut down e-mail during the copy | ||
+ | * Make the copy | ||
+ | * Restart e-mail | ||
+ | * All further actions are on the clone | ||
+ | * /etc/hosts | ||
+ | * /etc/hostname | ||
+ | * /etc/fstab | ||
+ | * /etc/motd | ||
+ | * /boot/grub/grub.cfg ? | ||
+ | * /boot/initrd.img* ? | ||
+ | * Others changed that haven't been discovered? | ||
+ | * Change /etc/postfix/main.cf myhostname,mydomain,mydestination | ||
+ | * Disable production mailing lists: | ||
+ | * Stop mailman processes | ||
+ | * mkdir /var/lib/mailman/lists-disabled/ | ||
+ | * mv /var/lib/mailman/lists/[a-ln-su-z]* /var/lib/mailman/lists-disabled/ | ||
+ | * Start mailman processes | ||
+ | * Check logs, test | ||
+ | * Separate Letsencrypt | ||
+ | * Separate git | ||
+ | * Change the recipient of debian-upgrade-reminder.sh | ||
+ | * Inform admins of the status | ||
==== Start with basic procedure ==== | ==== Start with basic procedure ==== | ||
Line 333: | Line 363: | ||
curl http://bock2.sluug.org | curl http://bock2.sluug.org | ||
+ | ===== Step 2 - Clone Bock and Upgrade - Take #2 ===== | ||
+ | |||
+ | === Summary of steps === | ||
+ | |||
+ | * Edit /etc/apt/sources.list | ||
+ | * apt-get update | ||
+ | * apt-get install python-is-python2 | ||
+ | * apt-get upgrade --without-new-pkgs | ||
+ | * See the wiki for responses to prompts | ||
+ | * apt-get full-upgrade | ||
+ | * Verify mailman hasn't been removed. | ||
+ | * Check logs | ||
+ | * Reboot, etc. | ||
+ | * Check logs, test, document. | ||
+ | * apt-get --purge autoremove # With cautions | ||
+ | * Check logs, test, document. | ||
+ | * apt-get upgrade | ||
+ | * apt-get autoremove | ||
+ | |||
+ | [[upgrade.log]] | ||