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