After a new management IP is configured or updated on the witness node, it must be synchronized with the other nodes in the cluster.
Procedure
Run the following command on the witness node to synchronize the management IP with other nodes. Here, witness_mgt_ip is the management IP of the witness node.
zbs-cluster sync_witness_mgt_ip <witness_mgt_ip>
Output example
$ zbs-cluster sync_witness_mgt_ip 192.168.31.69
2023-11-20 18:44:05,613 sync_cluster.py 21 [27711] [INFO] no changes, cluster ips up-to-date
2023-11-20 18:44:05,622 ansible_manager.py 160 [27711] [INFO] Exec cmd with ansible: ansible -i /etc/zbs/inventory all -m raw -a 'echo 192.168.31.69 > /etc/zbs/witness_mgt_ip' --ssh-common-args='-o StrictHostKeyChecking=no'
2023-11-20 18:44:05,622 cmdline.py 119 [27711] [INFO] run cmd: ansible -i /etc/zbs/inventory all -m raw -a 'echo 192.168.31.69 > /etc/zbs/witness_mgt_ip' --ssh-common-args='-o StrictHostKeyChecking=no'
2023-11-20 18:44:10,722 cluster.py 582 [27711] [INFO] Sync witness mgt ip 192.168.31.69 to all nodes successfullyOutput note
The synchronization process is displayed. Sync witness mgt ip xx.xx.xx.xx to all nodes successfully indicates the IP has been successfully synchronized.