Bugzilla will be upgraded to version 5.0 on December 2, 2018. The outage period for the upgrade will start at 0:00 UTC and have a duration of 12 hours
Bug 222158 - RFE: PV defragmentation tool
RFE: PV defragmentation tool
Product: Fedora
Classification: Fedora
Component: lvm2 (Show other bugs)
All Linux
medium Severity medium
: ---
: ---
Assigned To: LVM and device-mapper development team
Corey Marthaler
: FutureFeature
Depends On:
  Show dependency treegraph
Reported: 2007-01-10 13:33 EST by Dave Wysochanski
Modified: 2018-10-26 17:33 EDT (History)
9 users (show)

See Also:
Fixed In Version:
Doc Type: Enhancement
Doc Text:
Story Points: ---
Clone Of:
Last Closed:
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)

  None (edit)
Description Dave Wysochanski 2007-01-10 13:33:55 EST
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. "
Comment 1 Jon Stanley 2008-04-23 16:29:43 EDT
Adding FutureFeature keyword to RFE's.
Comment 2 Matěj Cepl 2009-06-04 14:43:43 EDT
Alternative would be dragging&dropping of logical volumes in system-config-lvm.
Comment 3 Johannes Buchner 2011-09-12 18:35:50 EDT
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.
Comment 4 Dave Wysochanski 2015-07-30 07:38:02 EDT
This bug has been open for 8 years now and there doesn't seem to be much interest.  Can it be closed?
Comment 5 Milan Broz 2015-07-30 08:14:12 EDT
I would like to see that tool even after these 8 years of waiting :-)
Comment 6 Alasdair Kergon 2015-07-30 14:08:32 EDT
I don't think the passage of time has had much effect on this feature: it still needs to be written one day.

Note You need to log in before you can comment on or make changes to this bug.