Migration Steps
After successfully creating the admin migration user, follow the below migration steps:
-
In RHEL 8 and 9 make the following files executable:
chmod a+rwx /usr/local/Secunia/csi/install/util/migratedb.shchmod a+rwx /usr/local/Secunia/csi/install/util/dumpPDB.php -
In RHEL 8 and 9 run the below script:
/usr/local/Secunia/csi/install/util/migratedb.sh -
After running the script, you can see a log folder get created at /usr/local/Secunia/csi/install/util/ with the migration successful message. If a log folder is not created then you need to verify the permission of dumpPDB.php, migratedb.sh files.
-
Script will ask for the below details of source server (RHEL 7) and destination server (RHEL 8 or 9):
Source IPSource MySQL usernameSource MySQL passwordDestination IPDestination MySQL usernameDestination MySQL password -
Run the below commands for permission and to copy the previously generated reports (pdf and csv):
-
On RHEL 8 / RHEL 9— Use the following command:
chmod a+rw /usr/local/Secunia/csi/reports -
On RHEL 7— Use the following command:
rsync -av /usr/local/Secunia/csi/reports/* root@<RHEL8 IP>:/usr/local/Secunia/csi/reports/
-
-
Start services using the below commands:
systemctl start sgdaemon.servicesystemctl start scandaemon.servicesystemctl start haproxy.service -
After migration, remove mysql user - 'mig_admin'@'%' from both the servers using the below commands:
DROP USER 'mig_admin'@'%';FLUSH PRIVILEGES;