管理和故障排除 - SAP HANA 开启 Amazon
Amazon Web Services 文档中描述的 Amazon Web Services 服务或功能可能因区域而异。要查看适用于中国区域的差异,请参阅 中国的 Amazon Web Services 服务入门 (PDF)

本文属于机器翻译版本。若本译文内容与英语原文存在差异,则一律以英文原文为准。

管理和故障排除

监控集群的状态

您可以以 root 用户身份使用以下命令检查集群的状态:

root@prihana ~] pcs status
Cluster name: rhelhanaha
Stack: corosync
Current DC: sechana (version 1.1.19-8.el7_6.5-c3c624ea3d) - partition with quorum
Last updated: Thu Nov 12 09:44:08 2020
Last change: Thu Nov 12 09:43:20 2020 by root via crm_attribute on sechana

2 nodes configured
6 resources configured

Online: [ prihana sechana ]

Full list of resources:

 clusterfence   (stonith:fence_aws):    Started prihana
 Clone Set: SAPHanaTopology_HDB_00-clone [SAPHanaTopology_HDB_00]
     Started: [ prihana sechana ]
 Master/Slave Set: SAPHana_HDB_00-master [SAPHana_HDB_00]
     Masters: [ prihana ]
     Slaves: [ sechana ]
 hana-oip       (ocf::heartbeat:aws-vpc-move-ip):       Started prihana

Daemon Status:
  corosync: active/enabled
  pacemaker: active/enabled
  pcsd: active/enabled
[root@prihana ~]

您可以以<sid>adm用户身份使用以下命令检查 SAP HANA 复制状态:

hdbadm@prihana:/usr/sap/HDB/HDB00> python
/usr/sap/HDB/HDB00/exe/python_support/systemReplicationStatus.py
| Database | Host       | Port  | Service Name | Volume ID | Site
ID | Site Name  | Secondary  | Secondary | Secondary | Secondary
| Secondary     | Replication | Replication | Replication    |
|          |            |       |              |           |
|            | Host       | Port      | Site ID   | Site Name    |
Active Status | Mode        | Status      | Status Details |
| -------- | ---------- | ----- | ------------ | --------- | -------
| ---------- | ---------- | --------- | --------- | ------------
| ------------- | ----------- | ----------- | -------------- |
| SYSTEMDB | prihana | 30001 | nameserver   |         1 |       1 |
HDBPrimary | sechana |     30001 |         2 | HDBSecondary | YES
| SYNCMEM     | ACTIVE      |           |
| HDB      | prihana | 30007 | xsengine     |         2 |       1 |
HDBPrimary | sechana |     30007 |         2 | HDBSecondary | YES
| SYNCMEM     | ACTIVE      |           |
| HDB      | prihana | 30003 | indexserver  |         3 |       1 |
HDBPrimary | sechana |     30003 |         2 | HDBSecondary | YES
| SYNCMEM     | ACTIVE      |           |

status system replication site "2": ACTIVE
overall system replication status: ACTIVE

Local System Replication State
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

mode: PRIMARY
site id: 1
site name: HDBPrimary
hdbadm@prihana:/usr/sap/HDB/HDB00>