../raft/snapshot directory full of .tmp directories
consul snapshot command or Consul snapshot agent to take backups of our Consul cluster.
Consul is doing automatic raft snapshots for additional safety. https://www.consul.io/docs/internals/consensus.html
Consul snapshot agent or command forces the creation of raft snapshot that is packaged into a
When the command or snapshot agent fails for any reason to create a snapshot, a
.tmp temporary directory is possible to be created in the
../raft/snapshot directory and not cleaned up automatically. In the
../raft/snapshot directory are always present two normal directories that are the two latest raft snapshots.
As a result of the problem, you may get your data dir full of those
You can delete these
*.tmp directories , but not all of them. Make sure that the most recent 2 to remain there.
You ought to save your snapshots in a different directory, than your data dir. On the other hand it is very nice option to use the Consul Snapshot agent, where it has a retain function, that keeps a desired count of snapshots so your folders are not filled. It is also a good option to use the s3 storage option and have your snapshots saved at a secure location.