linux-lvm.redhat.com archive mirror
 help / color / mirror / Atom feed
* [linux-lvm] pvmove doesn't work the way the man page says
@ 2013-02-13 15:43 Phillip Susi
  2013-02-14  0:45 ` Spelic
  0 siblings, 1 reply; 8+ messages in thread
From: Phillip Susi @ 2013-02-13 15:43 UTC (permalink / raw)
  To: LVM general discussion and development

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

LVM 2.02.66-4ubuntu7 on Ubuntu 12.04 LTS:

The man page for pvmove says it creates many temporary mirror segments
to sync each segment then breaks the mirror and mirrors the next
segment, thus allowing the move to be resumed after a reboot
approximately where it left off.

This does not appear to be the case.  Looking at dmsetup table during
a move of two logical volumes, there is one mirror segment for the
entire logical volume being moved, and a linear for the next logical
volume.  So it appears that logical volumes are copied as a whole unit
and a reboot will restart the copy from the beginning.

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.17 (MingW32)
Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/

iQEcBAEBAgAGBQJRG7SKAAoJEJrBOlT6nu75v9EIANJebrBr5xmUEVV6yp0Kd7pT
rYqmpt3+VTvp433IgNQ+AaFyP637Bi14EZc9j+2KHas7nw9aNCPcqYSry5VvqyXG
1VMu5v3/af8f49KauZnMyFPkfroIBWOpzCe1d3XcyRHrzNCbnosYhLP2V6VsbOh8
Vs7DcJhJjxnCsSKfvQ6SoQZmQeGwe+DHxoUpAB2kXuRf1JTBFlu5VB90ETGmLTyr
WAW5SgFiv0F87w72MDxH8AFdNu80tQSjqXSiKcCNsGgvldncGu/wPbFjWDBTa7R4
/vsbsD10Kg64QZCLobie75uBC2cdLB2a4LFDVei4rwNEd/Ofs3Pt0uSG64IF0ao=
=iRzK
-----END PGP SIGNATURE-----

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

* Re: [linux-lvm] pvmove doesn't work the way the man page says
  2013-02-13 15:43 [linux-lvm] pvmove doesn't work the way the man page says Phillip Susi
@ 2013-02-14  0:45 ` Spelic
  2013-02-14  0:58   ` Alasdair G Kergon
  2013-03-09 18:04   ` Phillip Susi
  0 siblings, 2 replies; 8+ messages in thread
From: Spelic @ 2013-02-14  0:45 UTC (permalink / raw)
  To: LVM general discussion and development

On 02/13/13 16:43, Phillip Susi wrote:
> there is one mirror segment for the
> entire logical volume being moved, and a linear for the next logical
> volume.

 >  2.  Every  logical  volume in the volume group is searched for 
contiguous data that need moving according to the command line arguments.
 >       For each piece of data found, a new segment is added to the end 
of the pvmove LV.  This segment takes the form of a temporary mirror

so it DOES behave according to the manpage

breaking it up in smaller subsegments would probably have been wiser, 
except that you risk to induce fragmentation if other LVM operations 
happen during the move.

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

* Re: [linux-lvm] pvmove doesn't work the way the man page says
  2013-02-14  0:45 ` Spelic
@ 2013-02-14  0:58   ` Alasdair G Kergon
  2013-02-14 13:25     ` Marian Csontos
  2013-02-15  9:22     ` Lars Ellenberg
  2013-03-09 18:04   ` Phillip Susi
  1 sibling, 2 replies; 8+ messages in thread
From: Alasdair G Kergon @ 2013-02-14  0:58 UTC (permalink / raw)
  To: LVM general discussion and development

On Thu, Feb 14, 2013 at 01:45:35AM +0100, Spelic wrote:
> breaking it up in smaller subsegments would probably have been wiser,  

The plan was always for more frequent checkpoints, but it involves more
complicated code and there's simply been no need to do this: given how rarely
pvmove is used, the current approach seems to be good enough and nobody's
written the extra code yet.

Alasdair

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

* Re: [linux-lvm] pvmove doesn't work the way the man page says
  2013-02-14  0:58   ` Alasdair G Kergon
@ 2013-02-14 13:25     ` Marian Csontos
  2013-02-14 13:41       ` Alasdair G Kergon
  2013-02-15  9:22     ` Lars Ellenberg
  1 sibling, 1 reply; 8+ messages in thread
From: Marian Csontos @ 2013-02-14 13:25 UTC (permalink / raw)
  To: linux-lvm

On 02/14/2013 01:58 AM, Alasdair G Kergon wrote:
> On Thu, Feb 14, 2013 at 01:45:35AM +0100, Spelic wrote:
>> breaking it up in smaller subsegments would probably have been wiser,
>
> The plan was always for more frequent checkpoints, but it involves more
> complicated code and there's simply been no need to do this: given how rarely
> pvmove is used, the current approach seems to be good enough and nobody's
> written the extra code yet.
>
> Alasdair

Should not then the man page be fixed to match actual behavior (and not 
only at this place)? Otherwise it is a wish list.

Bugzilla is IMO more appropriate tracker for RFEs.

-- Marian


>
> _______________________________________________
> 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/

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

* Re: [linux-lvm] pvmove doesn't work the way the man page says
  2013-02-14 13:25     ` Marian Csontos
@ 2013-02-14 13:41       ` Alasdair G Kergon
  2013-02-14 16:54         ` Marian Csontos
  0 siblings, 1 reply; 8+ messages in thread
From: Alasdair G Kergon @ 2013-02-14 13:41 UTC (permalink / raw)
  To: LVM general discussion and development

On Thu, Feb 14, 2013 at 02:25:46PM +0100, Marian Csontos wrote:
> Should not then the man page be fixed to match actual behavior (and not  

As already stated on this thread, the man page does describe what
the code currently does.

Alasdair

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

* Re: [linux-lvm] pvmove doesn't work the way the man page says
  2013-02-14 13:41       ` Alasdair G Kergon
@ 2013-02-14 16:54         ` Marian Csontos
  0 siblings, 0 replies; 8+ messages in thread
From: Marian Csontos @ 2013-02-14 16:54 UTC (permalink / raw)
  To: linux-lvm

On 02/14/2013 02:41 PM, Alasdair G Kergon wrote:
> On Thu, Feb 14, 2013 at 02:25:46PM +0100, Marian Csontos wrote:
>> Should not then the man page be fixed to match actual behavior
>> (and not
>
> As already stated on this thread, the man page does describe what
> the code currently does.

I must apologize! Excuse me for being an ... (donkey?).

I had been reading it just few days ago, and got confused as well and 
would be almost willing to testify...

Rereading it carefully again, knowing what it is supposed to say, it 
really does say so.

-- Marian

>
> Alasdair
>
> _______________________________________________ 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/

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

* Re: [linux-lvm] pvmove doesn't work the way the man page says
  2013-02-14  0:58   ` Alasdair G Kergon
  2013-02-14 13:25     ` Marian Csontos
@ 2013-02-15  9:22     ` Lars Ellenberg
  1 sibling, 0 replies; 8+ messages in thread
From: Lars Ellenberg @ 2013-02-15  9:22 UTC (permalink / raw)
  To: linux-lvm

On Thu, Feb 14, 2013 at 12:58:54AM +0000, Alasdair G Kergon wrote:
> On Thu, Feb 14, 2013 at 01:45:35AM +0100, Spelic wrote:
> > breaking it up in smaller subsegments would probably have been wiser,  
> 
> The plan was always for more frequent checkpoints, but it involves more
> complicated code and there's simply been no need to do this: given how rarely
> pvmove is used, the current approach seems to be good enough and nobody's
> written the extra code yet.

Also, if you want more frequent checkpoints,
you can do that by calling pvmove appropriately:
just don't move the whole thing at once,
but repeatedly call pvmove with an explicit extent range.

	Lars

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

* Re: [linux-lvm] pvmove doesn't work the way the man page says
  2013-02-14  0:45 ` Spelic
  2013-02-14  0:58   ` Alasdair G Kergon
@ 2013-03-09 18:04   ` Phillip Susi
  1 sibling, 0 replies; 8+ messages in thread
From: Phillip Susi @ 2013-03-09 18:04 UTC (permalink / raw)
  To: LVM general discussion and development; +Cc: Spelic

Please use reply-to-all on public mailing lists; I did not see there had 
been any replies until now because I was not Cc'd.

On 02/13/2013 07:45 PM, Spelic wrote:
> breaking it up in smaller subsegments would probably have been wiser,
> except that you risk to induce fragmentation if other LVM operations
> happen during the move.

There's no risk of fragmentation because you still allocate the whole 
thing at once, you just set it up as (linear, mirror, linear) instead of 
one big mirror, and the mirror portion slides over when synced.

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

end of thread, other threads:[~2013-03-09 18:04 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-02-13 15:43 [linux-lvm] pvmove doesn't work the way the man page says Phillip Susi
2013-02-14  0:45 ` Spelic
2013-02-14  0:58   ` Alasdair G Kergon
2013-02-14 13:25     ` Marian Csontos
2013-02-14 13:41       ` Alasdair G Kergon
2013-02-14 16:54         ` Marian Csontos
2013-02-15  9:22     ` Lars Ellenberg
2013-03-09 18:04   ` Phillip Susi

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).