管理和问题排查 - 上的 SAP HANAAmazon
Amazon Web Services 文档中描述的 Amazon Web Services 服务或功能可能因区域而异。要查看适用于中国区域的差异,请参阅中国的 Amazon Web Services 服务入门

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

管理和问题排查

监控群集状态

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

pcs status
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 ~]#

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

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>