Christopher Juckins

SysAdmin Tips, Tricks and other Software Tools

User Tools

Site Tools


centos_8_migration_notes

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
Next revisionBoth sides next revision
centos_8_migration_notes [2020/09/30 11:52] juckinscentos_8_migration_notes [2020/10/14 16:40] juckins
Line 7: Line 7:
   * Disable WiFi LAN connection with ''# nmcli radio wifi off''   * Disable WiFi LAN connection with ''# nmcli radio wifi off''
   * [[https://unix.stackexchange.com/questions/152691/how-to-disable-beep-sound-in-linux-centos-7-command-line|Disable bell]]   * [[https://unix.stackexchange.com/questions/152691/how-to-disable-beep-sound-in-linux-centos-7-command-line|Disable bell]]
- 
-16 May 2020: 
-  * System randomly reboots when KVM toggles back and forth from Dell XPS 8930 (running CentOS 7 as 'tidewater') and HP Pavilion P7-1240 
-  * Noticed monitoring emails not being sent from tidewater; postfix not running and won't start. mysql error. 
-  * yum reinstall <mysql_package> that was failing 
-  * postfix started 
-  * Other trouble...had to completely uninstall PHP 
-  * Reinstall PHP - that is v5.4 
-  * Then upgrade to REMI php v7.4 
-  * Look in the bash setup script to install the needed php files 
-  * Restore /etc/php.ini from a local VM 
-  * restart httpd service 
-  * yum update had many instances of 'empty files'....it fixed itself 
-  * ldconfig gave errors for 2 more things 
-    * yum reinstall oniguruma5 
-    * yum reinstall oniguruma 
-  * reboot system, came up cleanly 
-  * may need to check if mysql connection limit needs to be increased 
- 
- 
-13 December 2016: 
-  * VM machine #1 failed to boot into kernel-3.10.0-514.2.2.el7.x86_64 
-    * Yum had hung up when updating open-vm-tools and I did a ''CTRL-C'' (bad move) 
-    * Booting machine into previous kernel had no network connection; rebooting once again got network up 
-    * RPM database completely hosed; had to erase this VM and restore from backup 
-  * VM machine #2 was a clone of a test CentOS 7 VM (v7.2.1511) and it got stuck on trying to update ''open-vm-tools-10.0.5-2.el7.x86_64'' 
-    * cancelled by CTRL-C 
-    * had to install "yum-utils" and run ''yum-complete-transaction'' 
-    * yum then failed because transaction size changed 
-    * ran ''package-cleanup --dupes'' 
-    * ran ''package-cleanup --problems'' 
-    * ran ''package-cleanup --cleandupes'' 
-    * Still a mess, ran ''yum check'' and too many errors to fix 
-    * Erased VM 
-  * VM machine #3 was clone of test CentOS 7 VM (v7.2.1511) 
-    * tried to remove open-vm-tools - hung up so aborted attempt 
-  * VM machine #4 test was clone of test CentOS 7 VM (v7.2.1511) 
-    * ''yum update --exclude=open-vm-tools*'' 
-    * machine updated and booted into new kernel normally 
-    * ran ''yum -y update'' 
-      * stalled again 
-      * ''top -d 2'' showed high CPU usage for process "vmware-checkvm" 
-      * **did ''ps -ef |grep vmware''** 
-      * **saw this process: ''root      3186  3182 97 17:08 pts/0    00:07:55 /usr/bin/vmware-checkvm''** 
-      * **issued ''kill 3186'' and the yum update completed** 
-  * Primary machine updated OK 
-    * Virtual Box VMs would not start 
-    * Had to run as root ''/sbin/rcvboxdrv setup'' 
- 
-5 June 2016: 
-  * Primary system migrated 
- 
-18 May 2016: 
-  * Xfce Power Manager icon appeared in task bar 
-    * Might be a way to configure screen blanking  
- 
-5 April 2016: 
-  * NUX repository needed for rdesktop 
-    * https://www.certdepot.net/rhel7-install-nux-repository/ 
-    * xfreerdp doesn't always authenticate to Windows 7 hosts 
- 
-16 February 2016: 
-  * High CPU usage for vmtoolsd process 
-    * removed open-vm-tools-desktop 
-    * rebooted; open-vm-tools still remained but did not use high CPU 
- 
-Restarting Services: http://www.putorius.net/2014/07/restarting-services-in-red-hat-7-or.html 
  
 For migrating a system from a different OS, take note of this info first: For migrating a system from a different OS, take note of this info first:
-  * Make a test user on CentOS6 and one on CentOS7+  * Make a test user on CentOS7 and one on CentOS8
     * Compare hidden files to see if anything changed between OSs     * Compare hidden files to see if anything changed between OSs
 +    * This allows for easy migrating of data for users' $HOME directories
   * ensure all scripts make their own log file directory   * ensure all scripts make their own log file directory
     * $log_dir = "/var/tmp/check_disk_space";     * $log_dir = "/var/tmp/check_disk_space";
     * mkdir ("$log_dir", 0755);     * mkdir ("$log_dir", 0755);
     * should crons write to /tmp and then have a daily script that checks cron logs for errors?     * should crons write to /tmp and then have a daily script that checks cron logs for errors?
-  * users+  * Get inventory of users 
 +  *  
 +  * Check that PHP is working correctly, localhost/index.php tries to open a file 
 +  * 
   * <color #ed1c24>MySQL / MariaDB Database and users</color>   * <color #ed1c24>MySQL / MariaDB Database and users</color>
-    * [[https://www.tecmint.com/transfer-mysql-databases-from-old-to-new-server/|Migrate with rsync]]+    * [[https://www.digitalocean.com/community/tutorials/how-to-reset-your-mysql-or-mariadb-root-password|Reset mysql root password]] 
 +    * [[https://www.tecmint.com/install-lamp-on-centos-8/|Notes for installing LAMP]] on CentOS 8 
 +    * [[https://www.tecmint.com/transfer-mysql-databases-from-old-to-new-server/|Migrate all databases with mysqldump]] 
 +      * Note that the restore of mysql does not use "--all-databases" option and is an error in link above
     * [[https://www.linode.com/docs/databases/mysql/create-physical-backups-of-your-mariadb-or-mysql-databases/|Migrate with tar]]     * [[https://www.linode.com/docs/databases/mysql/create-physical-backups-of-your-mariadb-or-mysql-databases/|Migrate with tar]]
     * [[http://www.uptimemadeeasy.com/linux/mysql-migrate-users-server-server/|Migrate MySQL users to new machine]]     * [[http://www.uptimemadeeasy.com/linux/mysql-migrate-users-server-server/|Migrate MySQL users to new machine]]
Line 341: Line 281:
 </code> </code>
  
-yum -y update, reboot, verify latest kernel is loaded by GRUB+dnf -y update, reboot, verify latest kernel is loaded by GRUB
  
 Only keep 1 old kernel Only keep 1 old kernel
Line 354: Line 294:
 Add 2nd hard drive to /etc/fstab [[adding_a_second_hard_drive|following these notes]] Add 2nd hard drive to /etc/fstab [[adding_a_second_hard_drive|following these notes]]
  
-Prepare to run the local yum installer script+Prepare to run the local dnf installer script
   * Also installs [[https://wiki.centos.org/AdditionalResources/Repositories|EPEL repository]]   * Also installs [[https://wiki.centos.org/AdditionalResources/Repositories|EPEL repository]]
   * Best to run the script by establishing SSH connection to box from a different machine.   * Best to run the script by establishing SSH connection to box from a different machine.
   * Pipe output to log file and tail the log file   * Pipe output to log file and tail the log file
-  * [[Yum installer bash script (CentOS7)|Copy this source to a .bash and run as root]]+  * [[yum_installer_bash_script_centos8|dnf installer bash script (CentOS 8)]]
  
 [[install_configure_cpan|CPAN packages]] to install: [[install_configure_cpan|CPAN packages]] to install:
Line 446: Line 386:
 Setup ddclient: Setup ddclient:
   * https://sourceforge.net/p/ddclient/wiki/Home/   * https://sourceforge.net/p/ddclient/wiki/Home/
-  * yum -y install ddclient+  * dnf -y install ddclient
   * Use /etc/ddclient/* for configs from previous machine   * Use /etc/ddclient/* for configs from previous machine
  
Line 492: Line 432:
 [[http://www.binarytides.com/gorgeous-looking-fonts-ubuntu-linux/]] [[http://www.binarytides.com/gorgeous-looking-fonts-ubuntu-linux/]]
 <code> <code>
-yum install google*fonts+dnf install google*fonts
 </code> </code>
   * open Chrome, go to Settings > Advanced and set fonts as follows:   * open Chrome, go to Settings > Advanced and set fonts as follows:
Line 552: Line 492:
  
 <code> <code>
-yum install alsa-plugins-pulseaudio.i686 qt.i686 1:qt-x11.i686 libXScrnSaver.i686 libXv.i686+dnf install alsa-plugins-pulseaudio.i686 qt.i686 1:qt-x11.i686 libXScrnSaver.i686 libXv.i686
 rpm -Uvh http://li.nux.ro/download/nux/dextop/el7/x86_64/nux-dextop-release-0-1.el7.nux.noarch.rpm rpm -Uvh http://li.nux.ro/download/nux/dextop/el7/x86_64/nux-dextop-release-0-1.el7.nux.noarch.rpm
-yum localinstall http://download.skype.com/linux/skype-4.3.0.37-fedora.i586.rpm+dnf localinstall http://download.skype.com/linux/skype-4.3.0.37-fedora.i586.rpm
 </code> </code>
  
Line 566: Line 506:
   * Update to openssh seems to require RSA keys now and authorized_keys file instead of DSA keys and authorized_keys2 file   * Update to openssh seems to require RSA keys now and authorized_keys file instead of DSA keys and authorized_keys2 file
   * Set "PermitRootLogin no"   * Set "PermitRootLogin no"
-  * <del>But MATE does not work, tried KDE with yum group install "KDE Plasma Workspaces" and seems to work better but still no icons on the screen</del>+  * <del>But MATE does not work, tried KDE with dnf group install "KDE Plasma Workspaces" and seems to work better but still no icons on the screen</del>
   * <del>But need to configure custom desktop to use /etc/X11/xinit/Xsession mate-session</del>   * <del>But need to configure custom desktop to use /etc/X11/xinit/Xsession mate-session</del>
   * <del>Also tried /usr/bin/startxfce4 but still general odd behavior</del>   * <del>Also tried /usr/bin/startxfce4 but still general odd behavior</del>
Line 615: Line 555:
     * Use 'lpstat' and 'lpq' to ensure it's a known destination printer     * Use 'lpstat' and 'lpq' to ensure it's a known destination printer
   * [[https://access.redhat.com/documentation/en-US/Red_Hat_Enterprise_Linux/7/html/System_Administrators_Guide/sec-Printer_Configuration.html#sec-Starting_Print_Settings_Config|RHEL7 Print Settings]]   * [[https://access.redhat.com/documentation/en-US/Red_Hat_Enterprise_Linux/7/html/System_Administrators_Guide/sec-Printer_Configuration.html#sec-Starting_Print_Settings_Config|RHEL7 Print Settings]]
-  * yum install cups+  * dnf install cups
   * service cups start   * service cups start
   * systemctl enable cups   * systemctl enable cups
Line 622: Line 562:
     * Default printer driver works OK     * Default printer driver works OK
   * Or use web browser:   * Or use web browser:
-  * # yum install httpd+  * # dnf install httpd
   * # /bin/systemctl start httpd.service   * # /bin/systemctl start httpd.service
-  * # yum install system-config-firewall+  * # dnf install system-config-firewall
   * # firewall-config (or System > Administration > Firewall)   * # firewall-config (or System > Administration > Firewall)
     * Allow http and https as rules     * Allow http and https as rules
centos_8_migration_notes.txt · Last modified: 2022/06/08 16:03 by juckins