"rbd trash purge --threshold" should support data pool
Currently only the base pool is used for calculating usage.
#2 Updated by Jason Dillaman over 1 year ago
Create and fill images that utilize a data pool (i.e. rbd create --size 10G --data-pool=datapool rbd/image). If you move those images to the trash and attempt to delete them using a purge threshold, only the "rbd" pool utilization will be checked instead of the "datapool" pool.
#3 Updated by Rishabh Dave over 1 year ago
Well, what's the difference between the base pool and the data pool? I did couldn't find anything that would tell me the difference between these in docs, source code and web. Is it, somehow, related to tiering?
And, ideally it should check for both of them or either (depending on the user/situation)?
#6 Updated by Jason Dillaman over 1 year ago
@Mahati: I would think it should just be implicit. It could loop through all the trashed images whose deferment end time is in the past and compute a set of (data) pools in-use by the images. For each pool in the set, delete trashed images in that (data) pool until that pool's threshold is met.