第11章 レプリケーション環境のインスタンスがオフラインになった後のレプリケーション更新の強制
通常のメンテナンスでレプリケーションに関連する Directory Server インスタンスを停止する場合、インスタンスがオンラインに戻ったら、サプライヤーは直ちにディレクトリーデータを更新する必要があります。この更新は、コマンドラインおよび Web コンソールを使用して強制できます。
11.1. コマンドラインを使用したレプリケーション更新の強制
サプライヤーで以下の手順を実行し、example-agreement
の dc=example,dc=com
接尾辞のレプリケーション更新を強制します。
前提条件
- レプリケーションが設定されている。
- コンシューマーが初期化されている。
手順
レプリカ合意に更新スケジュールが設定されているかどうかを確認します。
#
dsconf -D "cn=Directory Manager" ldap://server.example.com repl-agmt get --suffix "dc=example,dc=com" example-agreement
コマンドの出力に
nsDS5ReplicaUpdateSchedule: *
が含まれている、またはnsDS5ReplicaUpdateSchedule
パラメーターが存在しない場合、更新スケジュールは設定されていません。nsDS5ReplicaUpdateSchedule
に、以下のようなスケジュールが含まれる場合には、値を書き留めておきます。nsDS5ReplicaUpdateSchedule: 0800-2200 0246
更新スケジュールが設定されている場合は、以下のコマンドを実行して一時的に無効にします。
#
dsconf -D "cn=Directory Manager" ldap://server.example.com repl-agmt set --schedule \* --suffix "dc=example,dc=com" example-agreement
レプリカ合意を一時的に無効にします。
#
dsconf -D "cn=Directory Manager" ldap://server.example.com repl-agmt disable --suffix "dc=example,dc=com" example-agreement
レプリカ合意を再度有効にして、レプリケーションの更新を強制的に実行します。
#
dsconf -D "cn=Directory Manager" ldap://server.example.com repl-agmt enable --suffix "dc=example,dc=com" example-agreement
この手順の最初にレプリケーションスケジュールが設定されていた場合、スケジュールを以前の値に設定します。
#
dsconf -D "cn=Directory Manager" ldap://server.example.com repl-agmt set --schedule "0800-2200 0246" --suffix "dc=example,dc=com" example-agreement
検証
レプリケーションのステータスを表示します。
#
dsconf -D "cn=Directory Manager" ldap://supplier.example.com repl-agmt status --suffix "dc=example,dc=com" example-agreement
... Last Update Start: 20210406120631Z Last Update End: 20210406120631Z Last Update Status: Error (0) Replica acquired successfully: Incremental update succeeded ...