centos_7_migration_notes
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionNext revisionBoth sides next revision | ||
centos_7_migration_notes [2019/04/17 20:49] – juckins | centos_7_migration_notes [2023/12/14 10:10] – 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 26: | ||
* 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 155: | ||
* [[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 161: | ||
* 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 81: | Line 169: | ||
* /etc/hosts | * /etc/hosts | ||
* / | * / | ||
- | * / | + | |
- | * Samba users, passwords, shares | + | |
- | * nxclient-3.5.0-7.x86_64.rpm | + | * smbpasswd -a < |
- | * nxnode-3.5.0-9.x86_64.rpm | + | * < |
- | * nxserver-3.5.0-11.x86_64.rpm | + | * / |
+ | * / | ||
+ | * Make sure service is running and will start at boot. | ||
+ | * Check output with: testparm -v | ||
+ | * <del>nxclient-3.5.0-7.x86_64.rpm</ | ||
+ | * <del>nxnode-3.5.0-9.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 99: | Line 193: | ||
perl | perl | ||
perl-autodie | perl-autodie | ||
+ | perl-Array-Diff | ||
+ | perl-Array-Unique | ||
perl-B-Lint | perl-B-Lint | ||
perl-Business-ISBN | perl-Business-ISBN | ||
Line 224: | Line 320: | ||
* [[gmail_as_a_relay_on_linux|Set up Gmail Relay and test]] | * [[gmail_as_a_relay_on_linux|Set up Gmail Relay and test]] | ||
* Disable SELinux | * Disable SELinux | ||
- | * VSFTP | + | * VSFTP (for security cameras) |
* [[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 | ||
* Samba | * Samba | ||
- | * [[http:// | + | * [[samba_file_sharing|Samba |
- | * [[https:// | + | |
* < | * < | ||
* Virtual Box | * Virtual Box | ||
* Working crontabs for each user | * Working crontabs for each user | ||
+ | * [[python_notes|Install Python 3]] | ||
+ | |||
+ | Optional: | ||
+ | * [[https:// | ||
Contents of / | Contents of / | ||
Line 294: | Line 394: | ||
* Preferable to use local .iso file to conserve bandwidth for multiple installs | * Preferable to use local .iso file to conserve bandwidth for multiple installs | ||
- | * Used http://mirror.centos.org/centos/7.1.1503/os/x86_64/ for package repository | + | * Used http://mirrors.sonic.net/centos/7.7.1908/os/x86_64/ for package repository |
* On initial config screen, ensure the network connection is activated | * On initial config screen, ensure the network connection is activated | ||
* You can also disable SELinux | * You can also disable SELinux | ||
Line 338: | Line 438: | ||
* [[http:// | * [[http:// | ||
* Array:: | * Array:: | ||
+ | * //Note, this module is not needed. Was used in ASMAD compare_stops.pl and compare_origin.pl// | ||
* Start up cpan as root (initial time) | * Start up cpan as root (initial time) | ||
* Run through the manual configuration process, accept the defaults | * Run through the manual configuration process, accept the defaults | ||
Line 344: | Line 445: | ||
* cpan Array:: | * cpan Array:: | ||
* Time:: | * Time:: | ||
- | * //Note, this module | + | * //Note, this module |
* As root, had to: | * As root, had to: | ||
* cd / | * cd / | ||
Line 351: | Line 452: | ||
* 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 358: | Line 459: | ||
* [[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 386: | Line 489: | ||
Database work: | Database work: | ||
+ | * Update / | ||
+ | * '' | ||
+ | * '' | ||
* Backup /etc/my.cnf | * Backup /etc/my.cnf | ||
* Add this line under [mysqld] | * Add this line under [mysqld] | ||
Line 397: | Line 503: | ||
* 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 408: | Line 514: | ||
* 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 416: | Line 525: | ||
* With PHP 5.6, the latest version of phpMyAdmin (4.6.4) is fully supported | * With PHP 5.6, the latest version of phpMyAdmin (4.6.4) is fully supported | ||
* Copy config from previous machine | * Copy config from previous machine | ||
+ | |||
+ | Setup ddclient: | ||
+ | * https:// | ||
+ | * yum -y install ddclient | ||
+ | * In /etc use the ddclient* files for configs from previous machine | ||
+ | |||
+ | Setup duckdns: | ||
+ | * crontab is < | ||
+ | |||
+ | Setup ydns: | ||
+ | * crontab is < | ||
Firewall notes: | Firewall notes: | ||
Line 533: | Line 653: | ||
* Additional tips: http:// | * Additional tips: http:// | ||
* systemctl restart sshd.service | * systemctl restart sshd.service | ||
+ | * User accounts at remove machines connecting to the new machine will need their $HOME/ | ||
Update GRUB and splash screen | Update GRUB and splash screen | ||
Line 541: | Line 662: | ||
* vi grub | * vi grub | ||
* remove "rhgb quiet" from the GRUB_CMDLINE_LINUX call | * remove "rhgb quiet" from the GRUB_CMDLINE_LINUX call | ||
- | * add " | + | * add " |
* comment out this line: GRUB_TERMINAL_OUTPUT=" | * comment out this line: GRUB_TERMINAL_OUTPUT=" | ||
* add this line: GRUB_BACKGROUND="/ | * add this line: GRUB_BACKGROUND="/ | ||
* Ensure it is rw-r-r permissions | * Ensure it is rw-r-r permissions | ||
* [[http:// | * [[http:// | ||
- | * For VM/ | + | * For VM/ |
* For UEFI-based installs, as root: grub2-mkconfig -o / | * For UEFI-based installs, as root: grub2-mkconfig -o / | ||
* More info at [[https:// | * More info at [[https:// | ||
Line 571: | Line 692: | ||
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