Closed wtmpx closed 1 year ago
@wtmpx For new installations the srHook (when using the new hook) did move from the global to the site-specific area. We should doument this and should not move to the (global) sync_state attribute. The latter will only be used, if the site specific is not available or in in SWAIT (no event occurred).
Hi wtmpx,
thank you for the feedback.
Could it be you copied the example without replacing placeholder
We might add an hint to the example.
Regards, Lars
Hi Lars,
I missed pasting it in github.
scope=crm_config name=hana_so1_glob_srHook value=(null) Error performing operation: No such device or address
Regards, Ahmad
Hi Fabian,
Yes, I'm using SAPHanaSrMultiTarget.py ; not the old srHook: SAPHanaSR.py
Hi Ahmad,
if you query for an attribute, but do not get an result, then most likely the attribute does not yet exist. That could happen if the hook never has been called by HANA so far.
Regards, Lars
Hi Lars,
I kill the nameserver and cluster moved HANA to SiteB. And now I see this:
crm_attribute -G -n hana_so1_glob_srHook scope=crm_config name=hana_so1_glob_srHook value=SWAIT
Should we add something here https://documentation.suse.com/sbp/all/single-html/SLES4SAP-hana-scaleOut-PerfOpt-15/#id-verifying-the-communication-between-the-hook-and-the-cluster regarding this?
Thanks Ahmad
Hi Ahmad,
1) It is general characteristic of crm/CIB to show such a message in case the attribute does not exists. This is not specific to SAPHanaSR.py. 2) The guide already mentions how to check HANA traces and Linux messages for HANA HADR events and related CIB access. Manual pages SAPHanaSR-ScaleOut(7) and SAPHanaSR.py(7) are explaining when and how the hook script is called and what is does. The manual pages are referenced in the guide. 3) We have ben told by management to keep the setup guides short.
Regards, Lars
Hi Lars, Sure. Just I am saying step 8.4.1 will not work as written in the docs because in the guide the test section coming later.
Thanks, Ahmad
Hi Ahmad,
in step 7.5 the HANA is restarted to implement and test the hooks ( https://documentation.suse.com/sbp/all/single-html/SLES4SAP-hana-scaleOut-PerfOpt-15/#id-starting-sap-hana )
At that point the srHook status is written into a hidden file. Once the cluster activate the SAPHana RA, the CIB attribute srHook is written according to that file. See man page SAPHanaSR.py(7).
If there is no CIB attribute srHook, the previous steps for integrating the hooks have not been done as described. E.g. the hooks have been implemented without restarting HANA.
Regards, Lars
8.4.1 Verifying the communication between the hook and the cluster:
https://documentation.suse.com/sbp/all/single-html/SLES4SAP-hana-scaleOut-PerfOpt-15/#id-verifying-the-communication-between-the-hook-and-the-cluster
In test I got this error: crmattribute -G -n hana_glob_srHook
Error performing operation: No such device or address
Looking at my configuration I see: hana_so1_glob_upd=ok \ hana_so1_glob_sync_state=SOK \ hana_so1_glob_sec=SiteB \ hana_so1_glob_prim=SiteA \ hana_so1_glob_op_mode=logreplay
Should we change srHook with sync_state ?