OpenContrail 3.2: Create an instant backup of ZooKeeper

OpenContrail 3.2: Create an instant backup of ZooKeeperΒΆ

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:

  1. Verify that you have completed the steps described in OpenContrail 3.2: Create a backup schedule for a ZooKeeper database.

  2. Find out which OpenContrail control node is the ZooKeeper leader.

    salt -C 'I@opencontrail:control' cmd.run 'echo stat | nc localhost 2181 | grep leader'
    
  3. Log in to the OpenContrail control leader node, for example, ntw01.

  4. Run the following script:

    /usr/local/bin/zookeeper-backup-runner.sh
    
  5. Verify that a complete backup has been created on the OpenContrail control leader node:

    ls /var/backups/zookeeper/full
    
  6. 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