_snapshot data takes up disk space

Hello. We're observing strange behavior.

Elasticsearch appears to be storing some snapshot data directly in it's data directory. And there's quiet a lot of space occupied by this data

~> find /var/lib/elasticsearch/nodes/0/indices/ -name "_snapshot" |head -n 10

~> find /var/lib/elasticsearch/nodes/0/indices/ -name "_snapshot" -type d -exec du {} \; | awk '{ SUM += $1} END { print SUM }'               
253066032  #241 GB

This data are not included in data_store and we're running out of space because of it.
I'm failing to find any information about it.

We're running self-hosted Elasticsearch 6.8, with free X-Pack license and no plugins.

This appears to be a reason https://github.com/elastic/elasticsearch/issues/50231


You're correct. Currently the best workaround I can suggest is to not use source only, but rather use normal snapshots and remove those directories manually.

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.