Red Hat Bugzilla – Bug 1306717
LVM Thin: Integrate 'thin_ls' features into LVM
Last modified: 2017-08-17 14:30:58 EDT
'thin_ls' has the ability to tell how much space would be freed by a particular thinsnap removal and more. Is there a suitable way to add this to LVM?
*** Bug 1301623 has been marked as a duplicate of this bug. ***
The problematic part here is that we need to get this information from thin_ls which is an external tool and which may take a long time to execute or it may run out of memory/swap. When doing any reporting, we're under a VG lock. So we'd need to find a way how to minimize the time that we spend under this VG lock. The per-LV lock would be much better here, but we don't have that in LVM at the moment.
So needs some thought on how should we handle this properly...