Linux LVM users
 help / color / mirror / Atom feed
* [linux-lvm] pvmove abort
@ 2008-09-11 14:20 Sebastian Walter
  2008-09-11 14:28 ` Alasdair G Kergon
  0 siblings, 1 reply; 3+ messages in thread
From: Sebastian Walter @ 2008-09-11 14:20 UTC (permalink / raw)
  To: LVM general discussion and development

Dear list,

I have a problem recovering from an aborted pvmove process. I have a
volume group called storage consisting of 2 partitions (PV's) with 2 TB
each (let's call them A and B). I added a third partition (let's call it
C) using vgextend. Now I did a pvmove A to move A's content to C but
recognized that it would take a long time so I canceled the pvmove
pressing ctrl-c.

After that I saw that some data was already written on the formerly
empty PV C. I tried to pvmove this new pv out of the volume group, but
pvmove refuses to work with the following error:

Skipping locked LV storage
Skipping mirror LV pvmove0
No data to move for storage

There is an additional LV on the VG now called pvmove0. I dont
understand what pvmove does, but this LV seems to be a mirror. Does this
mean that everything is still on the old PV and I can delete the LV
pvmove0? The VG in total seems to be ok.

How can I unlock the volume and free the pv? Any help is greatly
appreciated.

Best regards,
Sebastian

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

* Re: [linux-lvm] pvmove abort
  2008-09-11 14:20 [linux-lvm] pvmove abort Sebastian Walter
@ 2008-09-11 14:28 ` Alasdair G Kergon
  2008-09-11 14:31   ` Sebastian Walter
  0 siblings, 1 reply; 3+ messages in thread
From: Alasdair G Kergon @ 2008-09-11 14:28 UTC (permalink / raw)
  To: LVM general discussion and development

pvmove --abort is the correct way to stop a pvmove.
Then see how much got moved and decide if you want to pvmove it back.

The man page explains how it works, but the data moving happens in
the kernel - in the background if you like - and after the move begins,
the 'pvmove' process just monitors progress and tidies up when the
kernel has finished what it's been asked to do.

Alasdair
-- 
agk@redhat.com

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

* Re: [linux-lvm] pvmove abort
  2008-09-11 14:28 ` Alasdair G Kergon
@ 2008-09-11 14:31   ` Sebastian Walter
  0 siblings, 0 replies; 3+ messages in thread
From: Sebastian Walter @ 2008-09-11 14:31 UTC (permalink / raw)
  To: LVM general discussion and development

"pvmove --abort" solved the problem. It cleaned the mirrored LV and
everything looks sane now. Thank you very much!


Alasdair G Kergon wrote:
> pvmove --abort is the correct way to stop a pvmove.
> Then see how much got moved and decide if you want to pvmove it back.
>
> The man page explains how it works, but the data moving happens in
> the kernel - in the background if you like - and after the move begins,
> the 'pvmove' process just monitors progress and tidies up when the
> kernel has finished what it's been asked to do.
>
> Alasdair
>   

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

end of thread, other threads:[~2008-09-11 14:32 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-09-11 14:20 [linux-lvm] pvmove abort Sebastian Walter
2008-09-11 14:28 ` Alasdair G Kergon
2008-09-11 14:31   ` Sebastian Walter

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