pvmove on the same PV

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Is it possible to move an extent from one position to another on the
same PV?  It used to be possible under LVM1.  

The reason I ask is that a long time ago I wrote a sort of LVM
defrag/repacker program.  Basically it was a higher level interface to
the pvmove program.  I wrote it because when I would shrink a LV and
enlarge another on a mostly utilized VG the logical extents would end up
highly non-contiguous, especially after a few such re-organizations.  

In any case, I was updating it for LVM2 today and it seems that pvmove
refuses to move an extent from one position on a PV to another position
on the same PV.  I guess I can work around this but it means lots of
wasted moves.  Also, I'd be happy to share this tool if anyone's
remotely interested, once I've updated it for LVM2.


Thanks,
-- 
Aran Cox <acox@ia.primustel.com>

_______________________________________________
linux-lvm mailing list
linux-lvm@redhat.com
https://www.redhat.com/mailman/listinfo/linux-lvm
read the LVM HOW-TO at http://tldp.org/HOWTO/LVM-HOWTO/

[Index of Archives]     [Gluster Users]     [Kernel Development]     [Linux Clusters]     [Device Mapper]     [Security]     [Bugtraq]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]

  Powered by Linux