centos_7_migration_notes
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
centos_7_migration_notes [2019/10/03 20:20] – juckins | centos_7_migration_notes [2023/12/14 10:10] (current) – juckins | ||
---|---|---|---|
Line 2: | Line 2: | ||
RHEL5/6/7 Cheatsheet: {{: | RHEL5/6/7 Cheatsheet: {{: | ||
+ | |||
+ | [[https:// | ||
+ | |||
+ | |||
+ | 14 Dec 2023 (for Dell XPS 8930 tower): | ||
+ | * Updated kernel from kernel-3.10.0-1160.102.1.el7.x86_64 to kernel-3.10.0-1160.105.1.el7.x86_64 | ||
+ | * Attempted to rebooted machine but after the BIOS splash screen, only got a blank screen with blinking cursor in upper-left corner | ||
+ | * Restarted machine using the power button but had same condition | ||
+ | * Restarted once again but at the BIOS splash screen selected F12 | ||
+ | * For boot options, chose Boot from Hard Drive and list of kernels appeared | ||
+ | * Chose latest kernel and machine was OK | ||
+ | * After machine was running, did another restart and machine powered up with no issues | ||
+ | |||
+ | 23 Oct 2023 (for Dell XPS 8930 tower) | ||
+ | * Updated kernel from kernel-3.10.0-1160.99.1.el7.x86_64 to kernel-3.10.0-1160.102.1.el7.x86_64 and then machine would not boot, just blank screen with blinking cursor in upper-left corner | ||
+ | * Powered off machine, unplugged the USB peripheral cables | ||
+ | * Unplugged power cable for 30 seconds | ||
+ | * Rebooted and used F12 to go into BIOS Boot Options | ||
+ | * Tried to boot to Hard Drive but that immediately failed with error 'press any key to reboot' | ||
+ | * After that, the machine booted up OK and the normal selection of kernels appeared | ||
Other fixes: | Other fixes: | ||
Line 7: | Line 27: | ||
* Disable WiFi LAN connection with ''# | * Disable WiFi LAN connection with ''# | ||
* [[https:// | * [[https:// | ||
+ | |||
+ | 11 Oct 2020: | ||
+ | * Keep getting errors in python3 script connecting/ | ||
+ | * '' | ||
+ | * '' | ||
+ | * Updated / | ||
+ | |||
+ | max_connections = 818 (Note that 818 seems to be the absolute limit) | ||
+ | back_log = 1024 (Note that OS limit is in / | ||
+ | thread_cache_size = 818 | ||
+ | thread_handling = pool-of-threads | ||
+ | | ||
+ | Then do: '' | ||
+ | |||
+ | * Other commands to check and modify on mariadb server: | ||
+ | * '' | ||
+ | * '' | ||
+ | * '' | ||
+ | * '' | ||
+ | * '' | ||
+ | * See https:// | ||
+ | * Also check python3 coding best practices for opening/ | ||
+ | * I have noted that opening and closing the database connection only once in the python script helps reduce database " | ||
+ | * [[https:// | ||
+ | * import MySQLdb | ||
+ | * See examples at https:// | ||
+ | |||
+ | # | ||
+ | | ||
+ | import MySQLdb | ||
+ | | ||
+ | # Open database connection | ||
+ | db = MySQLdb.connect(" | ||
+ | | ||
+ | # prepare a cursor object using cursor() method | ||
+ | cursor = db.cursor() | ||
+ | | ||
+ | # execute SQL query using execute() method. | ||
+ | cursor.execute(" | ||
+ | | ||
+ | # Fetch a single row using fetchone() method. | ||
+ | data = cursor.fetchone() | ||
+ | print " | ||
+ | | ||
+ | # disconnect from server | ||
+ | db.close() | ||
+ | |||
+ | |||
+ | 16 May 2020: | ||
+ | * System randomly reboots when KVM toggles back and forth from Dell XPS 8930 (running CentOS 7 as ' | ||
+ | * Workaround: Use remmina to RDP to local Windows machine | ||
+ | * Noticed monitoring emails not being sent from tidewater; postfix not running and won't start. mysql error. | ||
+ | * yum reinstall < | ||
+ | * 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 / | ||
+ | * restart httpd service | ||
+ | * yum update had many instances of 'empty files' | ||
+ | * 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: | 13 December 2016: | ||
Line 69: | Line 156: | ||
* [[http:// | * [[http:// | ||
* Don't forget to add semicolons with this: # sed -i ‘/[^;] *$/ | * Don't forget to add semicolons with this: # sed -i ‘/[^;] *$/ | ||
+ | * Note: I used phpMyAdmin to export users from a VM (get the SQL syntax) and then run that on the new machine | ||
* export MySQL databases with mysqldump | * export MySQL databases with mysqldump | ||
* [[https:// | * [[https:// | ||
Line 74: | Line 162: | ||
* list of installed perl modules | * list of installed perl modules | ||
* grep all .pl script and look for the "use " calls | * grep all .pl script and look for the "use " calls | ||
+ | * list of installed python (pip) modules | ||
* Copy the following to accessible location for restore after upgrade | * Copy the following to accessible location for restore after upgrade | ||
* users' $HOME | * users' $HOME | ||
Line 83: | Line 172: | ||
* Samba users, passwords, shares (for security cameras) | * Samba users, passwords, shares (for security cameras) | ||
* / | * / | ||
+ | * smbpasswd -a < | ||
+ | * < | ||
* / | * / | ||
* / | * / | ||
* Make sure service is running and will start at boot. | * Make sure service is running and will start at boot. | ||
* Check output with: testparm -v | * Check output with: testparm -v | ||
- | * nxclient-3.5.0-7.x86_64.rpm | + | * <del>nxclient-3.5.0-7.x86_64.rpm</ |
- | * nxnode-3.5.0-9.x86_64.rpm | + | * <del>nxnode-3.5.0-9.x86_64.rpm</ |
- | * nxserver-3.5.0-11.x86_64.rpm | + | * <del>nxserver-3.5.0-11.x86_64.rpm</ |
* < | * < | ||
* verify services that should be installed/ | * verify services that should be installed/ | ||
Line 233: | Line 324: | ||
* [[http:// | * [[http:// | ||
* [[https:// | * [[https:// | ||
- | * As root: setsebool -P allow_ftpd_full_access on | + | * As root (if selinux is enabled): setsebool -P allow_ftpd_full_access on |
* As root: systemctl restart vsftpd | * As root: systemctl restart vsftpd | ||
* As root: systemctl enable vsftpd | * As root: systemctl enable vsftpd | ||
Line 242: | Line 333: | ||
* Working crontabs for each user | * Working crontabs for each user | ||
* [[python_notes|Install Python 3]] | * [[python_notes|Install Python 3]] | ||
+ | |||
+ | Optional: | ||
+ | * [[https:// | ||
Contents of / | Contents of / | ||
Line 359: | Line 453: | ||
* Yet another option is to use modules that are in a repository | * Yet another option is to use modules that are in a repository | ||
- | [[http:// | + | <del>[[http:// |
[[http:// | [[http:// | ||
Line 366: | Line 460: | ||
* [[http:// | * [[http:// | ||
- | [[centos_php7.2_upgrade|Upgrade PHP to version 7.2]] | + | <del>[[centos_php7.2_upgrade|Upgrade PHP to version 7.2]]</ |
+ | |||
+ | [[https:// | ||
Migrate / | Migrate / | ||
Line 394: | Line 490: | ||
Database work: | Database work: | ||
+ | * Update / | ||
+ | * '' | ||
+ | * '' | ||
* Backup /etc/my.cnf | * Backup /etc/my.cnf | ||
* Add this line under [mysqld] | * Add this line under [mysqld] | ||
Line 405: | Line 504: | ||
* Ensure database on target server exists; create if necessary | * Ensure database on target server exists; create if necessary | ||
* Tables migrated should be MyISAM | * Tables migrated should be MyISAM | ||
- | * Default database engine is InnoDB as<color #ed1c24>Red Highlighted Text</ | + | * Default database engine is <color #ed1c24>InnoDB</ |
* [[https:// | * [[https:// | ||
* The exact number of rows of InnoDB tables cannot be shown | * The exact number of rows of InnoDB tables cannot be shown | ||
Line 416: | Line 515: | ||
* systemctl start mariadb.service | * systemctl start mariadb.service | ||
* systemctl enable mariadb.service | * systemctl enable mariadb.service | ||
- | * mysql DATABASE -h localhost -u USER -p' | + | * mysql -u USER -p' |
+ | * CREATE | ||
+ | * Now logout of command line | ||
+ | * mysql DATABASE_NAME | ||
* Note CentOS7 comes with PHP 5.4 and latest version of phpMyAdmin that will work is 4.4.x | * Note CentOS7 comes with PHP 5.4 and latest version of phpMyAdmin that will work is 4.4.x | ||
Line 428: | Line 530: | ||
* https:// | * https:// | ||
* yum -y install ddclient | * yum -y install ddclient | ||
- | * Use /etc/ddclient/* for configs from previous machine | + | * In /etc use the ddclient* |
Setup duckdns: | Setup duckdns: | ||
Line 591: | Line 693: | ||
Set up local printer(s) | Set up local printer(s) | ||
+ | * Note that Brother has notes for the HL2170W at https:// | ||
+ | * RPM #1: brhl2170wlpr-2.0.2-1.i386.rpm | ||
+ | * RPM #2: cupswrapperHL2170W-2.0.2-1.i386.rpm | ||
+ | * Use ' | ||
* [[https:// | * [[https:// | ||
* yum install cups | * yum install cups |
centos_7_migration_notes.txt · Last modified: 2023/12/14 10:10 by juckins