Linux LVM users
 help / color / mirror / Atom feed
* [linux-lvm] pvmove on the same PV
@ 2004-12-07  2:37 Aran Cox
  2004-12-07  3:16 ` Eric M. Hopper
  2004-12-07 14:17 ` Alasdair G Kergon
  0 siblings, 2 replies; 3+ messages in thread
From: Aran Cox @ 2004-12-07  2:37 UTC (permalink / raw)
  To: LVM general discussion and development

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>

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [linux-lvm] pvmove on the same PV
  2004-12-07  2:37 [linux-lvm] pvmove on the same PV Aran Cox
@ 2004-12-07  3:16 ` Eric M. Hopper
  2004-12-07 14:17 ` Alasdair G Kergon
  1 sibling, 0 replies; 3+ messages in thread
From: Eric M. Hopper @ 2004-12-07  3:16 UTC (permalink / raw)
  To: LVM general discussion and development

[-- Attachment #1: Type: text/plain, Size: 695 bytes --]

On Mon, 2004-12-06 at 20:37 -0600, Aran Cox wrote:
> 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.

I've been thinking of writing something similar for awhile.  It would be
a nice thing to have.

-- 
The best we can hope for concerning the people at large is that they
be properly armed.  -- Alexander Hamilton
-- Eric Hopper (hopper@omnifarious.org  http://www.omnifarious.org/~hopper) --

[-- Attachment #2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 185 bytes --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [linux-lvm] pvmove on the same PV
  2004-12-07  2:37 [linux-lvm] pvmove on the same PV Aran Cox
  2004-12-07  3:16 ` Eric M. Hopper
@ 2004-12-07 14:17 ` Alasdair G Kergon
  1 sibling, 0 replies; 3+ messages in thread
From: Alasdair G Kergon @ 2004-12-07 14:17 UTC (permalink / raw)
  To: LVM general discussion and development

On Mon, Dec 06, 2004 at 08:37:13PM -0600, Aran Cox wrote:
> Is it possible to move an extent from one position to another on the
> same PV?  It used to be possible under LVM1.  
 
pvmove --alloc anywhere

tells overrides normal common-sense restrictions.

Alasdair
-- 
agk@redhat.com

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2004-12-07 14:17 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-12-07  2:37 [linux-lvm] pvmove on the same PV Aran Cox
2004-12-07  3:16 ` Eric M. Hopper
2004-12-07 14:17 ` Alasdair G Kergon

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox