8000 [patch] HADR setup bug fixes by mnivedithaa · Pull Request #284 · ibm-mas/gitops · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

[patch] HADR setup bug fixes #284

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 12 commits into from
Apr 3, 2025
Merged

[patch] HADR setup bug fixes #284

merged 12 commits into from
Apr 3, 2025

Conversation

mnivedithaa
Copy link
Contributor
@mnivedithaa mnivedithaa commented Apr 3, 2025

Issue: MASCORE-6234

Description

  1. Problem: Currently if the hadr job fails due to some temporary issue after the configurations are applied, the next job execution compares the config and doesn't start the HADR service on primary and standby.
    Solution: We restart hadr services if roles are not set to primary and standby
  2. Problem: There was one occurrence of master key label not available in the keystore file from primary. Current approach was to overwrite the standby keystore with the one from primary.
    Solution: Exporting the keystore using gsk8capicmd_64 command in primary and importing the keystore in standby will avoid this issue

Test

Problem 2

INFO:mas.devops.db2:Results
================================================================
INFO:mas.devops.db2:All checks passed

Starting HADR in standby
--------------------------------------------------------------------------------
Defaulted container "db2u" out of: db2u, instdb (init), init-labels (init), init-kernel (init)
04/03/2025 09:56:02 0 0 SQL1064N DB2STOP processing was successful.
SQL1064N DB2STOP processing was successful.
04/03/2025 09:56:06 0 0 SQL1063N DB2START processing was successful.
SQL1063N DB2START processing was successful.
DB20000I The START HADR ON DATABASE command completed successfully.
Starting HADR in primary
--------------------------------------------------------------------------------
Defaulted container "db2u" out of: db2u, instdb (init), init-labels (init), init-kernel (init)
04/03/2025 09:56:24 0 0 SQL1064N DB2STOP processing was successful.
SQL1064N DB2STOP processing was successful.
04/03/2025 09:56:30 0 0 SQL1063N DB2START processing was successful.
SQL1063N DB2START processing was successful.
DB20000I The START HADR ON DATABASE command completed successfully.
...... HADR services are started successfully

@mnivedithaa mnivedithaa requested a review from whitfiea April 3, 2025 10:02
@whitfiea whitfiea changed the title HADR setup bug fixes [patch] HADR setup bug fixes Apr 3, 2025
@whitfiea whitfiea merged commit 5e97723 into main Apr 3, 2025
2 checks passed
@whitfiea whitfiea deleted the hadr-bug branch May 14, 2025 17:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants
0