Project

General

Profile

Debian 9 to 10 » History » Revision 11

Revision 10 (Jamila Khan, 04/07/2020 05:05 PM) → Revision 11/12 (Jamila Khan, 04/14/2020 03:40 PM)

{{lastupdated_at}} by {{lastupdated_by}} 

 {{>toc}} 

 h1. Debian 9 to 10 

 h2. Update sources list 

 check which sources exist that point to stretch 
 <pre> 
 cd /etc/apt 
 grep -nr stretch . 
 </pre> 

 Edit the main list, and any others that come up 

 <pre> 
 vim /etc/apt/sources.list 
 </pre> 

 <pre> 
 :%s/stretch/buster/g 
 </pre> 

 h2. Upgrade the system 

 h3. Check for Necessary Disk Space 

 <pre>apt-get -o APT::Get::Trivial-Only=true dist-upgrade</pre> 

 h3. Update the sources 

 <pre> 
 apt-get update 
 </pre> 

 h3. Minimal Upgrade 

 <pre> apt-get upgrade</pre> 

 * if it asks whether to change /etc/apt/trusted.gpg.d/debian-archive-jessie-security-automatic.gpg, say yes 
 * other things it asks to change, say no, keep the existing file 

 h3. Full Upgrade 

 <pre> 
 apt-get dist-upgrade 
 </pre> 

 h3. Upgrade MySQL databases (if MySQL/MariaDB installed) 

 <pre> 
 mysql_upgrade 
 </pre> 

 

 h3. Check that things are up 

 * if a web server, make sure websites are up 
 * if an infrastructure server, test and make sure all parts of the infrastructure are working properly 
 * if a PTC server check the "recovery plan":https://redmine.palantetech.coop/projects/pt/wiki/Recovery_Plan entry for that server to make sure everything has recovered 

 

 h2. Common problems 

 h3. borg 

 * Changes needed to the borg backupninja jobs #48568-1 
 ** need to add @encryption = none@ just above the passphrase 
 ** change the path to the directory to be the complete full path, not use the tilde for home, and must start with a slash 

 h3. mysql backup checking 

 Newest version of mariadb doesn't have separate databases for information schema or performance schema, so remove the old backups of those. 

 <pre> 
 cd /var/backups/mysql/sqldump 
 rm information_schema.sql.gz 
 rm performance_schema.sql.gz 
 </pre> 

 h3. Icinga2 

 Need to re-replace the backupninja binary in /usr/sbin/backupninja https://redmine.palantetech.coop/projects/pt/wiki/Icinga2#Backupninja-monitoring 

 h3. bang check 

 If using a script to check bang via @wp@, make sure the script uses the full path to @/usr/local/bin/wp@
Go to top