Skip to content

Commit 7174fb0

Browse files
authored
Merge pull request #268228 from M2skills/Padmaja-Document
HA Provider Steps added for RHEL/SUSE based OS specifics
2 parents 4f43b90 + 3141cbb commit 7174fb0

File tree

1 file changed

+52
-21
lines changed

1 file changed

+52
-21
lines changed

articles/sap/monitor/provider-ha-pacemaker-cluster.md

Lines changed: 52 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -21,53 +21,86 @@ In this how-to guide, you learn how to create a high-availability (HA) Pacemaker
2121

2222
## Install an HA agent
2323

24-
Before you add providers for HA (Pacemaker) clusters, install the appropriate agent for your environment in each cluster node.
24+
Before you add providers for HA (Pacemaker) clusters, install the appropriate agent for RHEL/SUSE in your environment in each of the cluster node.
2525

2626
For SUSE-based clusters, install **ha_cluster_provider** in each node. For more information, see the [HA cluster exporter installation guide](https://github.com/ClusterLabs/ha_cluster_exporter#installation). Supported SUSE versions include SLES for SAP 12 SP3 and later versions.
2727

28+
For SUSE-based Pacemaker clusters, Please follow below steps to install in each of the cluster node
29+
30+
### Install an HA cluster exporter on SUSE
31+
32+
1. Install the required packages for Prometheus cluster exporter on the system.
33+
34+
```bash
35+
sudo zypper install prometheus-ha_cluster_exporter
36+
```
37+
38+
1. Enable and start the Prometheus cluster exporter as service
39+
40+
```bash
41+
sudo systemctl start prometheus-ha_cluster_exporter
42+
```
43+
44+
```bash
45+
sudo systemctl enable prometheus-ha_cluster_exporter
46+
```
47+
48+
1. Data is then collected in the system by ha_cluster_exporter. You can export the data via URL `http://<ip address of the server>:9644/metrics`.
49+
To check if the metrics are fetched via URL on the server where the ha_cluster_exporter is installed, Run below command on the server.
50+
51+
```bash
52+
curl http://localhost:9644/metrics
53+
```
54+
2855
For RHEL-based clusters, install **performance co-pilot (PCP)** and the **pcp-pmda-hacluster** subpackage in each node. For more information, see the [PCP HACLUSTER agent installation guide](https://access.redhat.com/articles/6139852). Supported RHEL versions include 8.2, 8.4, and later versions.
2956

30-
For RHEL-based Pacemaker clusters, also install [PMProxy](https://access.redhat.com/articles/6139852) in each node.
57+
For RHEL-based Pacemaker clusters, Please follow below steps to install in each of the cluster node
3158

3259
### Install an HA cluster exporter on RHEL
3360

34-
1. Install the required packages on the system.
61+
1. Install the required packages for PCP on the system.
3562

3663
```bash
37-
yum install pcp pcp-pmda-hacluster
64+
sudo yum install pcp pcp-pmda-hacluster
3865
```
3966

4067
1. Enable and start the required PCP Collector Services.
4168

4269
```bash
43-
systemctl enable pmcd
70+
sudo systemctl start pmcd
4471
```
4572

4673
```bash
47-
systemctl start pmcd
74+
sudo systemctl enable pmcd
4875
```
4976

50-
1. Install and enable the HA cluster PMDA. Replace `$PCP_PMDAS_DIR` with the path where `hacluster` is installed. Use the `find` command in Linux to find the path.
77+
1. Install and enable the HA cluster PMDA. Replace `$PCP_PMDAS_DIR` with the path where `hacluster` is installed. Use the `find` command in Linux to find the path of "hacluster" bits. usually hacluster will be in path "/var/lib/pcp/pmdas".
78+
Example : cd /var/lib/pcp/pmdas/hacluster
5179

5280
```bash
5381
cd $PCP_PMDAS_DIR/hacluster
5482
```
5583

5684
```bash
57-
./Install
85+
sudo ./Install
5886
```
5987

6088
1. Enable and start the `pmproxy` service.
6189

6290
```bash
63-
systemctl enable pmproxy
91+
sudo systemctl start pmproxy
6492
```
6593

6694
```bash
67-
systemctl start pmproxy
95+
sudo systemctl enable pmproxy
6896
```
6997

70-
1. Data is then collected in the system by PCP. You can export the data by using `pmproxy` at `http://<SERVER-NAME-OR-IP-ADDRESS>:44322/metrics?names=ha_cluster`. Replace `<SERVER-NAME-OR-IP-ADDRESS>` with your server name or IP address.
98+
1. Data is then collected in the system by PCP. You can export the data by using `pmproxy` via URL `http://<ipaddress of the serrver>:44322/metrics?names=ha_cluster`.
99+
To check if the metrics are fetched via URL on the server where the hacluster is installed, Run below command on the server.
100+
101+
```bash
102+
curl http://localhost:44322/metrics?names=ha_cluster
103+
```
71104

72105
## Prerequisites to enable secure communication
73106

@@ -88,22 +121,20 @@ To [enable TLS 1.2 or higher](enable-tls-azure-monitor-sap-solutions.md), follow
88121
1. Configure providers for each node of the cluster by entering the endpoint URL for **HA Cluster Exporter Endpoint**.
89122
90123
1. For SUSE-based clusters, enter `http://<IP-address>:9664/metrics`.
91-
124+
92125
![Diagram that shows the setup for an Azure Monitor for SAP solutions resource, showing the fields for SUSE-based clusters.](./media/provider-ha-pacemaker-cluster/azure-monitor-providers-ha-cluster-suse.png)
93126
94127
1. For RHEL-based clusters, enter `http://<'IP address'>:44322/metrics?names=ha_cluster`.
95128
96129
![Diagram that shows the setup for an Azure Monitor for SAP solutions resource, showing the fields for RHEL-based clusters.](./media/provider-ha-pacemaker-cluster/azure-monitor-providers-ha-cluster-rhel.png)
97130
98-
1. Enter the system identifiers, host names, and cluster names. For the system identifier, enter a unique SAP system identifier for each cluster. For the hostname, the value refers to an actual hostname in the VM. Use `hostname -s` for SUSE- and RHEL-based clusters.
99-
100-
1. Select **Add provider** to save.
101-
102-
1. Continue to add more providers as needed.
131+
1. Enter the SID - SAP system ID, Hostname - SAP hostname of the Virtual machine (Command `hostname -s` for SUSE and RHEL based servers will give hostname detail.), Cluster - Provide any custom name that is easy to identify the SAP system cluster - this Name will be visible in the workbook for metrics (need not have to be the cluster name configured on the server).
103132
104-
1. Select **Review + create** to review the settings.
133+
1. Click on "Start test" under "Prerequisite check (Preview) - highly recommended" - This test will help validate the connectivity from AMS subnet to the SAP source system and list out if any error's found - which need to be addressed before provider creation otherwise the provider creation will fail with error.
134+
1. Select **Create** to finish creating the Provider.
105135

106-
1. Select **Create** to finish creating the resource.
136+
1. Create provider for each of the servers in the cluster to be able to see the metrics in the workbook
137+
For example - If the Cluster has three servers configured, Create three providers for each of the three servers with all of the above steps followed.
107138

108139
## Troubleshooting
109140

@@ -116,13 +147,13 @@ When the provider settings validation operation fails with the code `PrometheusU
116147
1. Restart the HA cluster exporter agent.
117148

118149
```bash
119-
systemctl start pmproxy
150+
sudo systemctl start pmproxy
120151
```
121152

122153
1. Reenable the HA cluster exporter agent.
123154

124155
```bash
125-
systemctl enable pmproxy
156+
sudo systemctl enable pmproxy
126157
```
127158

128159
1. Verify that the Prometheus endpoint is reachable from the subnet that you provided when you created the Azure Monitor for SAP solutions resource.

0 commit comments

Comments
 (0)