I’m using influx 2.3.0 to store several temperature measurements provided by an OpenHAB instance. I have created a bucket for the values with an retention policy of 90 days.
Today I found out that the data is using a lot more disk space than expected. I reduced the RP to 30 days but the disk space was still the same. Then I took a look into the influx folders:
root@h2880936:/var/lib/influxdb/engine# du -sch */*
My OpenHAB bucket has the ID 783263d9c64b08c5 and its folders are very small. I don’t know to what the 6.6G folder belongs to. Here is the list of buckets configured in influx:
Do you have any idea what this data is and how I can get rid off it?
Thanks in advance,
Update: One day later I moved the folder to /tmp and restarted influx to see what happens. The engine started without any problems and all data is still available. Now, a few days later, the folder wasn’t recreated and for me the problem is solved without knowing what data I deleted
Another update: Today I checked the folder sizes and again I found another huge folder.
sudo du -hs /var/lib/influxdb/engine/data/*
I then deleted the
3457ae9f3bc3f2b5 folder and everything is still working… Is there anybody out there having an idea what this folder is all about?
as I see the same behavior: Do you still have the same problem? Are you removing the folder manually or periodically?
Are you using 2.3 too?
I wonder if this was solved in an update.
I’ve literally never heard of this. You deleted that large file and non of the data was compromised?
I’d try deleting it and hopefully not having to delete this periodically as I’ve never encountered this before.
I’m using InfluxDB v2.7.1 (git: 407fa622e9) build_date: 2023-04-28T13:24:27Z in a docker container.
Till now I don’t miss any data. The deleted directory seems not to be related to any bucket (id is different to any known bucket). But, as soon as I start the container, the ghost-bucket is created again and size is growing. Since last post it grew to a size of 2.8 GB.