15.2. コマンドラインを使用してインスタンスがオンラインのときにコンシューマーを初期化する
サプライヤーとコンシューマーのインスタンスがオンラインの場合、コマンドラインを使用してコンシューマーを初期化できます。
前提条件
-
サプライヤーサーバーとコンシューマーサーバーで
dc=example,dc=com
接尾辞のレプリケーションを有効化している。 - サプライヤーサーバーとコンシューマーサーバーの間でレプリカ合意を作成している。
手順
コンシューマーを初期化するには、次を実行します。
dsconf <supplier_instance_name> repl-agmt init --suffix="dc=example,dc=com" <supplier_consumer_agreement_name>
# dsconf <supplier_instance_name> repl-agmt init --suffix="dc=example,dc=com" <supplier_consumer_agreement_name>
Copy to Clipboard Copied! Toggle word wrap Toggle overflow 複製するデータ量によっては、初期化に時間がかかる場合があります。
検証
合意のステータスを表示します。
dsconf <supplier_instance_name> repl-agmt init-status --suffix "dc=example,dc=com" <supplier_consumer_agreement_name>
# dsconf <supplier_instance_name> repl-agmt init-status --suffix "dc=example,dc=com" <supplier_consumer_agreement_name> Agreement successfully initialized.
Copy to Clipboard Copied! Toggle word wrap Toggle overflow