vinfra service backup geo-replication slave promote-to-master
Promote the secondary cluster to primary in the geo-replication configuration:
usage: vinfra service backup geo-replication slave promote-to-master
Example:
# vinfra service backup geo-replication slave promote-to-master +---------+--------------------------------------+ | Field | Value | +---------+--------------------------------------+ | task_id | 083a7d6e-3be8-490f-b468-a3f84abb3487 | +---------+--------------------------------------+
This command creates a task to promote the secondary cluster to primary in the geo-replication configuration.
Task outcome:
# vinfra task show 083a7d6e-3be8-490f-b468-a3f84abb3487 +---------+----------------------------------------------------+ | Field | Value | +---------+----------------------------------------------------+ | details | | | name | backend.tasks.message_dispatcher.CommandDispatcher | | result | | | state | success | | task_id | 083a7d6e-3be8-490f-b468-a3f84abb3487 | +---------+----------------------------------------------------+