OpenContrail 4.x: Create an instant backup of a Cassandra database

OpenContrail 4.x: Create an instant backup of a Cassandra databaseΒΆ

After you create a backup schedule as described in OpenContrail 4.x: Create a backup schedule for a Cassandra database, you may also need to create an instant backup of a Cassandra database on your OpenContrail 4.x cluster.

To create an instant backup of a Cassandra database:

  1. Verify that you have completed the steps described in OpenContrail 4.x: Create a backup schedule for a Cassandra database.

  2. Log in to the Salt Master node.

  3. Run the following state:

    salt-call state.sls reclass
    
  4. Log in to the OpenContrail control node that holds the Cassandra backup client role, for example, ntw01.

  5. Run the following script:

    /usr/local/bin/cassandra-backup-runner-call.sh
    

    Note

    The output for some keyspaces can return an Error statement if it does not contain any .db file. If it is not for all keyspaces, then such behaviour is normal.

  6. Verify that a complete backup has been created on the Cassandra backup client node:

    ls /var/backups/cassandra/full
    
  7. Log in to the Cassandra backup server node.

  8. Verify that the complete backup was rsynced to this node:

    ls /srv/volumes/backup/cassandra/full