Dropped (or truncated) Table (or keyspace) and Disk Space is not Reclaimed¶
This troubleshooting guide describes what to do when Scylla keeps using disk space after table or keyspaces are dropped or truncated.
When performing a
TRUNCATE operation on a table or keyspace, disk usage is not seen to be reduced.
Usually this is verified by using an external utility like
du Linux command.
This is caused by the fact that by default, Scylla creates a snapshot of every deleted table. Space won’t be reclaimed until the snapshot is deleted.
/var/lib/scylla/data/<your_keyspace>/<your_table>. Inside that directory you will see a
snapshotssubdirectory with your deleted data. Use the
rmLinux utility to remove the files.
- If you are deleting an entire keyspace, repeat the procedure above for every table inside the keyspace.
- This behavior is controlled by the
/etc/scylla/scylla.yaml, which set to true by default. To stop taking snapshots on deletion, set that flag to false and restart all your scylla nodes.