After you create a backup schedule as described in OpenContrail 3.2: Create a backup schedule for a ZooKeeper database, you may also need to create an instant backup of a ZooKeeper database on an OpenContrail 3.2 cluster.
To create an instant backup of a ZooKeeper database:
Verify that you have completed the steps described in OpenContrail 3.2: Create a backup schedule for a ZooKeeper database.
Find out which OpenContrail control node is the ZooKeeper leader.
salt -C 'I@opencontrail:control' cmd.run 'echo stat | nc localhost 2181 | grep leader'
Log in to the OpenContrail control leader node, for example, ntw01
.
Run the following script:
/usr/local/bin/zookeeper-backup-runner.sh
Verify that a complete backup has been created on the OpenContrail control leader node:
ls /var/backups/zookeeper/full
Log in to the zookeeper
server node and verify that the complete backup
was rsynced to this node by executing the following command:
ls /var/backups/zookeeper/full