Red Hat Bugzilla – Bug 222158
RFE: PV defragmentation tool
Last modified: 2018-04-30 18:10:36 EDT
Might be a useful new feature.
"> Any way to "reorganize" the PV, or am I stuck?
Yes and No. What you want is an lvm repacker. Basically a defragmentation
program for PV Extents. This way you can put all the extents that are not
allocated contiguously into contiguous blocks. Currently no such tool
exists. Right now extents can get fragmented with more growing and shrinking
of logical volumes.
You can accomplish this same task manually with a bit of work. All you need
to do is look at the allocated extents on the pv you wish to make smaller and
allocate them elsewhere.
The tools you'll need are lvdisplay -m and pvmove. "
Adding FutureFeature keyword to RFE's.
Alternative would be dragging&dropping of logical volumes in system-config-lvm.
There is some code here that does the job, just needs to be re-written in python, wired with pvmove and integrated into system-config-lvm.
Ideal would probably be a "Optimize" menu item in Tools or something.
This bug has been open for 8 years now and there doesn't seem to be much interest. Can it be closed?
I would like to see that tool even after these 8 years of waiting :-)
I don't think the passage of time has had much effect on this feature: it still needs to be written one day.