3.5.3 Procedure 6 BACKUP LSMS DB
Table 3-11 Procedure 6 - Backup LSMS DB
| S T E P # | This procedure outlines the steps to backup the LSMS DB. Estimated time: 90 minutesNote: The estimated time may differ depending on the DB size. | |
|---|---|---|
|
☐1. |
LSMS Active server: Log in to the server as the user “root” |
|
|
☐2. |
LSMS Active server: Record DB counts |
|
|
3. |
LSMS Active and Standby Server: Disable LSMS backup on both A and B servers |
Run the following command on both LSMS A and B to disable LSMS backup: |
|
☐4.. |
LSMS Active server: Remove existing DB snapshots |
|
|
☐5. |
LSMS Active server: Enable “QUERY_SERVER” and “RESYNCDB_QUERY_S ERVER” Feature Note: Even if Query Server is not connected this step is required to take backup |
Run below command to verify “QUERY_SERVER” and “RESYNCDB_QUERY_SERVER” feature is enabled: If these features are not enabled then run the below commands to enable them: Provide the “Customer Service ID” Provide the “Customer Service ID” |
|
☐6. |
LSMS Active server: Backup the LSMS DB |
Note: The time taken to run the above command shall vary according to the DB size. Verify that the following snapshot files are created at /var/TKLC/lsms/free directory:
|
|
☐7. |
LSMS Active server: Verify the snapshot files for all existing NPAC regions |
Run the following command and verify that the snapshot files are created for all the NPAC regions listed in the command output. Note: The below command shows only the regions for which the DB exists. |
|
☐8. |
LSMS Active server: Take MySQL dump of supDB. Note: Take a note of EMS configuration (IP, user, Group) and delete the same on LSMS. |
Run the following command on LSMS Active server CLI to take MySQL dump of the supDB database. Note: Below warning message can be ignored if displayed:
Note: Do not run the following command when upgrading from 14.1.0.X to 14.1.0.Y. This command is only required while upgrading from 13.X release. |
|
☐9. |
LSMS Active server: Take MySQL dump of mysql.user. |
Create MySQLUserGrants.sql file listing all the users and their privileges using the following shell script MySQLUser.sh in the root directory: File: MySQLUser.sh Note: Edit MYSQL_CONN for the proper connection properties and this will generate the MySQLUserGrants.sql file with grant statements from the 5.7 machine that you can source into the 8.0 machine. Run the MySQLUser.sh file to generate MySQLUserGrants.sql Run the below command to edit MySQLUserGrants.sql The content of the MySQLUserGrants.sql will be: GRANT USAGE ON *.* TO 'lsmsadm'@'%' IDENTIFIED BY '57570851ac3cc01499';Edit the .sql file and replace the password of all the users with plain text password to contain something like: GRANT USAGE ON *.* TO 'lsmsadm'@'%' IDENTIFIED BY 'password- in-plain-text';Run below commands to recover plain text password for default lsms users: For dbroot user: For materepl user: For cmdline user: For other default users: Remove entry for `lsmsrepl`@`<lsmsqs IP>` from the Note: There is no way to reverse the hash to recover the plain text. So the customer has to provide us the plain text passwords for users which were added by customer. Edit the For migration from 14.1.0.X to 14.1.0.Y edit the file MySQLUserGrants.sql. Remove below two lines in MySQLUserGrants.sql: Add below line at the end of |
|
☐10. |
LSMS Active server: Log into the Active LSMS server GUI |
Login to LSMS GUI as lsmsall user. |
|
☐11. |
LSMS Active server: Record the configured MySQL Port |
Go to “Admin -> MySQL Port -> View” and record the configured MySQL Port. |
|
☐12. |
LSMS Active server: Record the configured ELAP Credentials |
Go to “Configure -> LNP System -> EMS -> View” and record the configured ELAP Credentials. |
|
☐13. |
LSMS Active and Standby Server Copy and Backup license file when upgrading from LSMS 14.0.0.X release |
Login to LSMS CLI and take back up of the below 2 files from both Active and Standby server: These licenses will be required after full upgrade is complete |
|
This procedure is complete! |
||