Performing a Cassandra Disaster Recovery Restore Operation

You can recover your Cassandra data and commit log in the case of a disaster.

Perform a recovery in the following scenarios:

  • When the Cassandra data files or sstables are corrupted or lost

  • When you can rebuild a Cassandra source node, but the data is lost or corrupted

If you cannot rebuild the Cassandra node, then you need to replace the node.

For more information, see Replacing a Cassandra Dead Node.

Before You Begin

  1. Shut down the Cassandra process on the Cassandra client where you perform the restore.

  2. Edit the Cassandra configuration file, such as cassandra.yaml file, and then set the auto_bootstrap parameter to false.

    Do not modify any other Cassandra configuration file.

  3. Delete the commit logs, and the files that are under the saved_caches directory.

  4. If the data is corrupted, clean up the data directory.

  5. To the Cassandra client where you perform the restore, add the additional settings as shown in the following table.

    For instructions on how to add additional settings from the CommCell Console, see Adding or Modifying Additional Settings from the CommCell Console.

    Additional Setting

    Category

    Type

    Value

    nDRRecovery

    Cassandra

    Integer

    1

    nCassandraSleepTime

    Cassandra

    Integer

    The number of seconds to wait for the Cassandra process to start.

Procedure

  1. Determine the data to browse:

    Option

    Steps

    Set a source node to a unique To browse data for all data centers and keyspaces:

    1. From the CommCell Browser, expand Client Computers > client > Distributed Apps.

    2. Right-click the instance, and then click Browse and Restore.

      The Browse and Restore Options dialog box appears.

    To browse data for a particular data center, or Simple Strategy keyspace

    1. From the CommCell Browser, expand Client Computers > client > Distributed Apps > instance.

    2. Right-click the subclient, and then click Browse and Restore.

      The Browse and Restore Options dialog box appears

  2. On the Browse and Restore Options dialog box, select the restore options.

    • To restore the latest backup, select Latest Backup.

    • To restore to a point-in-time, select Time Range, and then type the date and time in the Start and End boxes.

  3. Click View Content.

    The Browse page appears.

  4. Determine the data to restore.

    The Browse page displays all the cluster nodes in the left pane.

    1. Expand the nodes, and the select the complete node that you want to recover from a disaster.

    2. Click Recover All Selected.

      The Restore Options dialog box appears.

  5. On the General tab, select the restore options:

    1. Clear the Use SSTableLoader Tool check box.

    2. Select Recover.

    3. In the Number of Streams box, type the number of streams the software uses for the restore operation.

  6. Click OK.

Result

The software restores the data, and then refreshes the Cassandra instance.

×

Loading...