Closed ab-mohamed closed 2 years ago
The SR is OK initially after the HANA installation. In the S/4HANA case, a large backup is imported into the HANA before the PAS instance is installed. After this import, the HANA is in the described state and would need a 2nd initial backup
The node who knows best that this new backup is needed is the PAS node. It would be logical to initiate the backup from this host.
@arbulu89 What do you think of the idea to implement a query_remote
module inside salt-shaptools
which would than run on the PAS node to run a backup query on the HANA? Is such a way of interacting wanted at all? The wait_for_connection
module already does something similar and is only missing the query part.
https://github.com/SUSE/sapnwbootstrap-formula/pull/95 and https://github.com/SUSE/ha-sap-terraform-deployments/pull/811 include a new feature to backup HANA after initial DB import (if SR is enabled). This should fix this issue.
Used cloud platform GCP
Used SLES4SAP version SLES4SAP 15 SP2
Used client machine OS Google Cloud Shell
Expected behavior vs. observed behavior HANA System Replication status is
SFAIL
while it should beSOK
.How to reproduce
Using the current
master
branch, start a new S/4HANA deployment.Troubleshooting Steps
2, Confirming the same results from the command line:
It seems that the initial backup for the primary HANA was not executed, as shown in the replication status details:
Node List:
Stopping the HANA database on both nodes:
Backup the primary DB:
demo1-hana01:prdadm> hdbsql -t -d prd -u system -p -i 00 "backup data using file ('full')"
0 rows affected (overall time 342.329219 sec; server time 342.327767 sec)
demo1-hana01:prdadm> hdbsql -u system -p -i 00 "select value from "SYS"."M_INIFILE_CONTENTS" where key='log_mode'"
VALUE
"normal"
demo1-hana01:~ # crm cluster start demo1-hana02:~ # crm cluster start
demo1-hana01:~ # SAPHanaSR-showAttr Global cib-time
global Mon Dec 6 17:46:16 2021
Resource is-managed
cln_SAPHanaTopology_PRD_HDB00 true
Sit srHook
FRA SOK
Hosts clone_state lpa_prd_lpt node_state op_mode remoteHost roles score site srmode sync_state version vhost
demo1-hana01 PROMOTED 1638812776 online logreplay demo1-hana02 4:P:master1:master:worker:master 150 NUE sync PRIM 2.00.052.00.1599235305 demo1-hana01 demo1-hana02 DEMOTED 30 online logreplay demo1-hana01 4:S:master1:master:worker:master 100 FRA sync SOK 2.00.052.00.1599235305 demo1-hana02
demo1-hana01:~ # crm_mon -rnf1 Cluster Summary:
Node List:
Inactive Resources:
Migration Summary:
Failed Resource Actions: