Skip to content

Commit 87f0d76

Browse files
Merge pull request #107260 from rsponholtz/patch-2
changed <pre><code> to ```bash around code
2 parents b93c135 + 761bd17 commit 87f0d76

File tree

1 file changed

+7
-6
lines changed

1 file changed

+7
-6
lines changed

articles/sap/workloads/sap-hana-high-availability.md

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -477,14 +477,15 @@ With susChkSrv implemented, an immediate and configurable action is executed, wh
477477

478478
Configuration pointing to the standard location /usr/share/SAPHanaSR, brings a benefit, that the python hook code is automatically updated through OS or package updates and it gets used by HANA at next restart. With an optional, own path, such as /hana/shared/myHooks you can decouple OS updates with the used hook version.
479479

480-
2. **[A]** The cluster requires sudoers configuration on each cluster node for <sid\>adm. In this example that is achieved by creating a new file. Execute the command as `root` and adapt the bold values of hn1/HN1 with correct SID.
481-
<pre><code>
480+
2. **[A]** The cluster requires sudoers configuration on each cluster node for <sid\>adm. In this example that is achieved by creating a new file. Execute the command as `root` and adapt the values of hn1/HN1 with correct SID.
481+
482+
```bash
482483
cat << EOF > /etc/sudoers.d/20-saphana
483484
# Needed for SAPHanaSR and susChkSrv Python hooks
484-
<b>hn1</b>adm ALL=(ALL) NOPASSWD: /usr/sbin/crm_attribute -n hana_<b>hn1</b>_site_srHook_*
485-
<b>hni</b>adm ALL=(ALL) NOPASSWD: /usr/sbin/SAPHanaSR-hookHelper --sid=<b>HN1</b> --case=fenceMe
485+
hn1adm ALL=(ALL) NOPASSWD: /usr/sbin/crm_attribute -n hana_hn1_site_srHook_*
486+
hn1adm ALL=(ALL) NOPASSWD: /usr/sbin/SAPHanaSR-hookHelper --sid=HN1 --case=fenceMe
486487
EOF
487-
</code></pre>
488+
```
488489
For more details on the implementation of the SAP HANA system replication hook see [Set up HANA HA/DR providers](https://documentation.suse.com/sbp/all/html/SLES4SAP-hana-sr-guide-PerfOpt-15/index.html#_set_up_sap_hana_hadr_providers).
489490
490491
3. **[A]** Start SAP HANA on both nodes. Execute as <sid\>adm.
@@ -1277,4 +1278,4 @@ NOTE: The following tests are designed to be run in sequence and depend on the e
12771278
12781279
* [Azure Virtual Machines planning and implementation for SAP][planning-guide]
12791280
* [Azure Virtual Machines deployment for SAP][deployment-guide]
1280-
* [Azure Virtual Machines DBMS deployment for SAP][dbms-guide]
1281+
* [Azure Virtual Machines DBMS deployment for SAP][dbms-guide]

0 commit comments

Comments
 (0)