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:
Verify that you have completed the steps described in OpenContrail 4.x: Create a backup schedule for a Cassandra database.
Log in to the Salt Master node.
Run the following state:
salt-call state.sls reclass
Log in to the OpenContrail control node that holds the Cassandra backup
client role, for example, ntw01
.
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.
Verify that a complete backup has been created on the Cassandra backup client node:
ls /var/backups/cassandra/full
Log in to the Cassandra
backup server node.
Verify that the complete backup was rsynced to this node:
ls /srv/volumes/backup/cassandra/full