Actions on RHEL 8 Machine
To migrate from the RHEL 7, follow the below preparatory steps in RHEL 8 machine:
-
Install SVM in RHEL 8 box. For more information, see RHEL 8.
-
Create admin migration user using the below commands:
GRANT ALL PRIVILEGES ON *.* TO 'mig_admin'@'%' IDENTIFIED BY 'MIG_ADMIN' WITH GRANT OPTION;FLUSH PRIVILEGES; -
Add the below entries in /etc/my.cnf to [mysqld] section and restart MariaDB server to apply the new settings:
net_read_timeout=1000connect_timeout=1000On terminal: systemctl restart mariadb.service -
Using the below command, try connecting to RHEL 7 using mig_admin user from the new RHEL 8:
mysql –umig_admin –pMIG_ADMIN -h <RHEL7IP> -
Using the below command, try connecting to RHEL 8 from RHEL 7:
mysql –umig_admin –pMIG_ADMIN -h <RHEL8 IP> -
Stop the services, using the below commands:
systemctl stop sgdaemon.servicesystemctl stop scandaemon.servicesystemctl stop haproxy.service -
Drop the common and private databases (RHEL 8) using the below commands:
DROP DATABASE ca;DROP DATABASE ca_; (Private database starts with ca_) -
Drop the private db mysql users (which starts with customer id) using the below commands:
DROP USER '<cust_id*>'@'localhost'FLUSH PRIVILEGES;