-
Notifications
You must be signed in to change notification settings - Fork 882
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
dropping chunks doesn't release space at disk and Database level #7354
Comments
Any chance you can try this out on one of the more recent versions? 2.8 is quite old at this point. Thanks. |
@antekresic we have another environment with 2.11 version and I see the same, about only 80GB disappeared :-) |
Can you give us more information what you are seeing here? You are saying the issue arises when you have these huge chunks? (over 10GB) How are you dropping the chunks? Using |
Yes, we have each chunk of about 240GB uncompressed and when i drop the older chunks, it doesn't release space on disk.. I dont see any chunks or _timescale* chunk tables after i drop them.. |
Can you check if they exist in the PG catalog tables?
Should be 0 if they were all dropped. |
PG catalog have only the chunks needed, the chunks which we dropped doesn't show up in this.. |
If that is the case, you have leftover orphaned data files that you have to remove by hand. You can use something like vacuumlo utility to get rid of them. |
Thank you, but it looks like it is checking only the postgres tables, its not working on hypertables/chunks unfortunately.. postgres@TimescaleDB-qa2-01:~$ vacuumlo -n mydb |
Hypertables and chunks are postgres tables so it should pick them up. Its hard to help you like this since I have no insight where the space is being kept. Can you locate the relation files of these dropped chunks in the pgdata folder? There should be huge files which have no reference in the pg catalog tables. |
What type of bug is this?
Incorrect result
What subsystems and features are affected?
Platform/OS, User-Defined Action (UDA)
What happened?
I see a wired thing on our cluster where even after dropping the older chunks, space have not been released at the DB level and at OS mount even after running vacuum full.. logs have been attached..
TimescaleDB version affected
2.8.1
PostgreSQL version used
14.1
What operating system did you use?
Ubuntu 20.04.1
What installation method did you use?
Deb/Apt
What platform did you run on?
Amazon Web Services (AWS)
Relevant log output and stack trace
How can we reproduce the bug?
once you have a hypertable with few chunks with each chunk with considerable size (may be 10GB to see the difference), try dropping couple of chunks which may sum upto 50GB or more and check if we see the size of DB and the chunks available are of same size..
The text was updated successfully, but these errors were encountered: