Snapshots

nodetool clearsnapshot

Removes one or more snapshots. To remove all snapshots, omit the snapshot name.

nodetool <options> clearsnapshot -t <snapshot> --  <keyspace> ...
nodetool snapshot
Requested creating snapshot(s) for [all keyspaces] with snapshot name [1526455922234] and options {skipFlush=false}
Snapshot directory: 1526455922234

nodetool listsnapshots
Snapshot Details:
Snapshot name Keyspace name      Column family name             True size Size on disk
1526455922234 system_distributed parent_repair_history          0 bytes   13 bytes
1526455922234 system_distributed repair_history                 0 bytes   13 bytes
1526455922234 system_distributed view_build_status              0 bytes   13 bytes
1526455922234 keyspace1          standard1                      1.35 GiB  1.35 GiB
1526455922234 keyspace1          counter1                       0 bytes   864 bytes
1526455922234 system_auth        roles                          0 bytes   13 bytes
1526455922234 system_auth        role_members                   0 bytes   13 bytes
1526455922234 system_auth        resource_role_permissons_index 0 bytes   13 bytes
1526455922234 system_auth        role_permissions               0 bytes   13 bytes
1526455922234 system_traces      sessions                       0 bytes   13 bytes
1526455922234 system_traces      events                         0 bytes   13 bytes

Total TrueDiskSpaceUsed: 1.35 GiB
  • Remove all snapshots
nodetool clearsnapshot
Requested clearing snapshot(s) for [all keyspaces]
nodetool listsnapshots
Snapshot Details:
There are no snapshots
nodetool snapshot
Requested creating snapshot(s) for [all keyspaces] with snapshot name [1526456038238] and options {skipFlush=false}
Snapshot directory: 1526456038238

nodetool listsnapshots
Snapshot Details:
Snapshot name Keyspace name      Column family name             True size Size on disk
1526456038238 system_distributed parent_repair_history          0 bytes   13 bytes
1526456038238 system_distributed repair_history                 0 bytes   13 bytes
1526456038238 system_distributed view_build_status              0 bytes   13 bytes
1526456038238 keyspace1          standard1                      1.35 GiB  1.35 GiB
1526456038238 keyspace1          counter1                       0 bytes   864 bytes
1526456038238 system_auth        roles                          0 bytes   13 bytes
1526456038238 system_auth        role_members                   0 bytes   13 bytes
1526456038238 system_auth        resource_role_permissons_index 0 bytes   13 bytes
1526456038238 system_auth        role_permissions               0 bytes   13 bytes
1526456038238 system_traces      sessions                       0 bytes   13 bytes
1526456038238 system_traces      events                         0 bytes   13 bytes

Total TrueDiskSpaceUsed: 1.35 GiB
  • Remove keyspace1 from 1526456038238 snapshot
nodetool clearsnapshot -t 1526456038238 keyspace1
Requested clearing snapshot(s) for [keyspace1] with snapshot name [1526456038238]
nodetool listsnapshots
Snapshot Details:
Snapshot name Keyspace name      Column family name             True size Size on disk
1526456038238 system_distributed parent_repair_history          0 bytes   13 bytes
1526456038238 system_distributed repair_history                 0 bytes   13 bytes
1526456038238 system_distributed view_build_status              0 bytes   13 bytes
1526456038238 system_auth        roles                          0 bytes   13 bytes
1526456038238 system_auth        role_members                   0 bytes   13 bytes
1526456038238 system_auth        resource_role_permissons_index 0 bytes   13 bytes
1526456038238 system_auth        role_permissions               0 bytes   13 bytes
1526456038238 system_traces      sessions                       0 bytes   13 bytes
1526456038238 system_traces      events                         0 bytes   13 bytes

Total TrueDiskSpaceUsed: 0 bytes

results matching ""

    No results matching ""