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:44] 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 279: | Line 309: | ||
# | # | ||
- | |||
# deb cdrom:[Debian GNU/Linux 9.4.0 _Stretch_ - Official amd64 NETINST 20180310-11:21]/ stretch main | # deb cdrom:[Debian GNU/Linux 9.4.0 _Stretch_ - Official amd64 NETINST 20180310-11:21]/ stretch main | ||
- | |||
#deb cdrom:[Debian GNU/Linux 9.4.0 _Stretch_ - Official amd64 NETINST 20180310-11:21]/ stretch main | #deb cdrom:[Debian GNU/Linux 9.4.0 _Stretch_ - Official amd64 NETINST 20180310-11:21]/ stretch main | ||
- | |||
deb http://ftp.us.debian.org/debian/ bullseye main | deb http://ftp.us.debian.org/debian/ bullseye main | ||
deb-src http://ftp.us.debian.org/debian/ bullseye main | deb-src http://ftp.us.debian.org/debian/ bullseye main | ||
- | |||
deb https://security.debian.org/debian-security bullseye-security main | deb https://security.debian.org/debian-security bullseye-security main | ||
deb-src https://security.debian.org/debian-security bullseye-security main | deb-src https://security.debian.org/debian-security bullseye-security main | ||
- | |||
# stretch-updates, previously known as 'volatile' | # stretch-updates, previously known as 'volatile' | ||
deb http://ftp.us.debian.org/debian/ bullseye-updates main | deb http://ftp.us.debian.org/debian/ bullseye-updates main | ||
deb-src http://ftp.us.debian.org/debian/ bullseye-updates main | deb-src http://ftp.us.debian.org/debian/ bullseye-updates main | ||
- | |||
# Backports for Certbot | # Backports for Certbot | ||
#deb http://ftp.debian.org/debian bullseye-backports main | #deb http://ftp.debian.org/debian bullseye-backports main | ||
Line 299: | Line 323: | ||
Update with new sources | Update with new sources | ||
- | ''apt update'' | + | ''apt update && apt upgrade -y'' |
During the upgrade process you will be prompted: | During the upgrade process you will be prompted: | ||
Line 338: | Line 362: | ||
==== Check services ==== | ==== Check services ==== | ||
+ | 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]] | ||