Skip to content

Commit 0b3ed85

Browse files
committed
Add SAPHanaFilesystem for NFS setups
1 parent c0cc571 commit 0b3ed85

File tree

1 file changed

+26
-1
lines changed

1 file changed

+26
-1
lines changed

articles/sap/workloads/sap-hana-high-availability-netapp-files-suse.md

Lines changed: 26 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -411,7 +411,7 @@ Follow the steps in [Setting up Pacemaker on SUSE Enterprise Linux](./high-avail
411411

412412
## Implement HANA hooks SAPHanaSR and susChkSrv
413413

414-
This important step optimizes the integration with the cluster and improves the detection when a cluster failover is needed. We highly recommend that you configure both SAPHanaSR and susChkSrv Python hooks. Follow the steps in [Implement the Python system replication hooks SAPHanaSR and susChkSrv](./sap-hana-high-availability.md#implement-hana-resource-agents).
414+
This important step optimizes the integration with the cluster and improves the detection when a cluster failover is needed. We highly recommend that you configure both SAPHanaSR and susChkSrv Python hooks. Follow the steps in [Implement the Python system replication hooks SAPHanaSR/SAPHanaSR-angi and susChkSrv](./sap-hana-high-availability.md#implement-hana-resource-agents).
415415

416416
## Configure SAP HANA cluster resources
417417

@@ -443,6 +443,10 @@ Example output:
443443

444444
### Create file system resources
445445

446+
File system /hana/shared/SID is necessary for both HANA operation and also for Pacemaker monitoring actions that determine HANA's state. Implement resource agents to monitor and act in case of failures. The section contains two options, one for `SAPHanaSR` and another for `SAPHanaSR-angi`.
447+
448+
#### [SAPHanaSR](#tab/saphanasr)
449+
446450
Create a dummy file system cluster resource. It monitors and reports failures if there's a problem accessing the NFS-mounted file system /hana/shared. That allows the cluster to trigger failover if there's a problem accessing /hana/shared. For more information, see [Handling failed NFS share in SUSE HA cluster for HANA system replication](https://www.suse.com/support/kb/doc/?id=000019904).
447451

448452
1. **[A]** Create the directory structure on both nodes.
@@ -508,6 +512,27 @@ Create a dummy file system cluster resource. It monitors and reports failures if
508512

509513
The `on-fail=fence` attribute is also added to the monitor operation. With this option, if the monitor operation fails on a node, that node is immediately fenced.
510514

515+
#### [SAPHanaSR-angi](#tab/saphanasr-angi)
516+
517+
When using SAPHanaSR-angi package and resource agent, it adds a new agent SAPHanaFilesystem to monitor read/write access to /hana/shared/SID. Filesystem /hana/shared is already mounted with entries in /etc/fstab on each host. SAPHanaFilesystem and Pacemaker doesn't mount the filesystem for HANA and doesn't need any additional mount or subdirectory pre-created.
518+
519+
1. **[1]** Configure SAPHanaFilesystem agent
520+
1.
521+
```bash
522+
# Replace <placeholders> with your instance number and HANA system ID.
523+
sudo crm configure primitive rsc_SAPHanaFil_<HANA SID>_HDB<instance number> ocf:suse:SAPHanaFilesystem \
524+
op start interval="0" timeout="10" \
525+
op stop interval="0" timeout="20" \
526+
op monitor interval="120" timeout="120" \
527+
params SID="<HANA SID>" InstanceNumber="<instance number>" ON_FAIL_ACTION="fence"
528+
529+
sudo crm configure clone cln_SAPHanaFil_<HANA SID>_HDB<instance number> rsc_SAPHanaFil_<HANA SID>_HDB<instance number> \
530+
meta clone-node-max="1" interleave="true"
531+
532+
```
533+
534+
---
535+
511536
> [!IMPORTANT]
512537
> Timeouts in the preceding configuration might need to be adapted to the specific HANA setup to avoid unnecessary fence actions. Don't set the timeout values too low. Be aware that the file system monitor isn't related to the HANA system replication. For more information, see the [SUSE documentation](https://www.suse.com/support/kb/doc/?id=000019904).
513538

0 commit comments

Comments
 (0)