Node restart method
If restoring a single node, you must first shutdown the node. If restoring an entire cluster, you must shut down all nodes, restore the snapshot data, and then start all nodes again.
- Shut down the node.
Clear all files in the commitlog directory.
- Packaged installs: /var/lib/cassandra/commitlog
- Tarball installs: install_location/data/commitlog
Delete all *.db files in the directory:
data_directory_location/keyspace_name/table_name-UUID/snapshots/snapshot_namewhere data_directory_location is
- Packaged installs: /var/lib/cassandra/data
- Tarball installs: install_location/data/data
DO NOT delete the /snapshots and /backups subdirectories.
Locate the most recent snapshot folder in this directory:
Copy its contents into this directory:
If using incremental backups, copy all contents of this directory:
Paste it into this directory:
Restart the node.
Restarting causes a temporary burst of I/O activity and consumes a large amount of CPU resources.
- Run nodetool repair.