redhat_sap.sap_hana_hsr

この役割は非推奨で、もう開発されていません

後継は現在、community.sap_install コレクションの一部として開発されています。

sap-hana-hsr Ansible Lint Ansible Galaxy Import

この役割は、2つの指定されたRHEL 7.xまたは8.xホスト間でSAP HANAシステムレプリケーションを有効にします。

要件

SAP HANA 1.0 SPS 12以上(HANA2)が指定されたホストにインストールされ、稼働している必要があります。

役割の変数

この役割で使用する変数は、異なるスコープで追加する必要があります。一部の変数は両方のホストに適用でき、一部は各ホストに個別に適用する必要があります。これは、SAP HANAシステムレプリケーションの性質によるもので、ホストはレプリケーションアーキテクチャ内で異なる役割(プライマリとセカンダリ)を持っているためです。

共通の変数

変数 情報 必須か
sap_hana_hsr_hana_sid SAP HANAシステムID はい
sap_hana_hsr_hana_instance_number インスタンス番号 はい、文字列として宣言する必要があります 例: "00"
sap_hana_hsr_hana_db_system_password データベースユーザー(SYSTEM)のパスワード はい
sap_hana_hsr_hana_primary_hostname プライマリノードのシステムホスト名 はい
sap_hana_hsr_rep_mode リドーログのレプリケーションモード (sync | syncmem | async) いいえ、デフォルトは sync
sap_hana_hsr_oper_mode SAP HANAシステムレプリケーションを実行するための運用モード (delta_datashipping | logreplay | logreplay_readaccess) いいえ、デフォルトは logreplay

ホストごとの特定変数

変数 情報 必須か
sap_hana_hsr_role レプリケーションアーキテクチャにおけるホストの役割 はい、選択肢は primary または secondary
sap_hana_hsr_alias レプリケーションレイアウトでHANAサイト名を識別するために使用されるエイリアス はい

例のプレイブック

    - hosts: hana
      roles:
        - { role: redhat_sap.sap_hana_hsr }

例のインベントリ

# cat <inventory_dir>/group_vars/hana.yml
## 'sap_hana_hsr' 役割に必要な変数
sap_hana_hsr_hana_sid: RH1
sap_hana_hsr_hana_instance_number: "00"
sap_hana_hsr_hana_db_system_password: "MyS3cr3tP4ssw0rd"
sap_hana_hsr_hana_primary_hostname: hana-0c0c0

# cat <inventory_dir>/host_vars/hana-0c0c0.yml
sap_hana_hsr_role: "primary"
sap_hana_hsr_alias: "DC1"

# cat <inventory_dir>/host_vars/hana-0c0c1.yml
sap_hana_hsr_role: "secondary"
sap_hana_hsr_alias: "DC2"

HANAシステムレプリケーションの確認

この役割を使用してHANAシステムレプリケーションが構成された後、プライマリホストで次のコマンドを実行して実際の状態を確認できます。

# su - <sid>adm
# python /usr/sap/<SID>/HDB<INSTANCE_NUMBER>/exe/python_support/systemReplicationStatus.py

| データベース | ホスト       | ポート  | サービス名 | ボリュームID | サイトID | サイト名 | セカンダリ  | セカンダリ | セカンダリ | セカンダリ | セカンダリ     | レプリケーション | レプリケーション | レプリケーション    |
| プライマリ   | ---------- | ----- | ------------ | --------- | ------- | --------- | ---------- | --------- | --------- | --------- | ------------- | ----------- | ----------- | -------------- |
| SYSTEMDB | hana-25e40 | 30001 | nameserver   |         1 |       1 | DC1       | hana-25e41 |     30001 |         2 | DC2       | YES           | SYNC        | ACTIVE      |                |
| RH1      | hana-25e40 | 30007 | xsengine     |         2 |       1 | DC1       | hana-25e41 |     30007 |         2 | DC2       | YES           | SYNC        | ACTIVE      |                |
| RH1      | hana-25e40 | 30003 | indexserver  |         3 |       1 | DC1       | hana-25e41 |     30003 |         2 | DC2       | YES           | SYNC        | ACTIVE      |                |

システムレプリケーションサイト "2" の状態: ACTIVE
全体のシステムレプリケーションの状態: ACTIVE

ローカルシステムレプリケーションの状態
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

モード: PRIMARY
サイトID: 1
サイト名: DC1

ライセンス

Apache License 2.0

作者情報

Red Hat SAP コミュニティプラクティス

プロジェクトについて

Configure SAP HANA System Replication on existing SAP HANA deployments in RHEL

インストール
ansible-galaxy install redhat_sap.sap_hana_hsr
ライセンス
apache-2.0
ダウンロード
5.5k
所有者
Community repositories for SAP Solutions on Red Hat Technologies