* [linux-lvm] pvmove safety
@ 2008-02-12 21:25 Joseph L. Casale
2008-02-15 15:45 ` Jonathan Brassow
0 siblings, 1 reply; 4+ messages in thread
From: Joseph L. Casale @ 2008-02-12 21:25 UTC (permalink / raw)
To: 'linux-lvm@redhat.com'
[-- Attachment #1: Type: text/plain, Size: 382 bytes --]
How safe is pvmove in LVM2 when being operated on live volumes? I understand a backup is always a good policy as nothing can be 100% safe, but is the command known to produce unreliable results when used on a live filesystem? I am reading http://tldp.org/HOWTO/LVM-HOWTO/removeadisk.html and the warning up top is hard to miss, but I wonder if it's a bit outdated?
Thanks!
jlc
[-- Attachment #2: Type: text/html, Size: 2150 bytes --]
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [linux-lvm] pvmove safety
2008-02-12 21:25 [linux-lvm] pvmove safety Joseph L. Casale
@ 2008-02-15 15:45 ` Jonathan Brassow
2008-02-15 19:21 ` Joseph L. Casale
0 siblings, 1 reply; 4+ messages in thread
From: Jonathan Brassow @ 2008-02-15 15:45 UTC (permalink / raw)
To: LVM general discussion and development
[-- Attachment #1: Type: text/plain, Size: 852 bytes --]
pvmove is pretty reliable. However, I would probably make a backup
before doing any sort of operation that would grow/shrink/move a file
system.
brassow
On Feb 12, 2008, at 3:25 PM, Joseph L. Casale wrote:
> How safe is pvmove in LVM2 when being operated on live volumes? I
> understand a backup is always a good policy as nothing can be 100%
> safe, but is the command known to produce unreliable results when
> used on a live filesystem? I am readinghttp://tldp.org/HOWTO/LVM-HOWTO/removeadisk.html
> and the warning up top is hard to miss, but I wonder if it’s a bit
> outdated?
>
> Thanks!
> jlc
> _______________________________________________
> 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/
[-- Attachment #2: Type: text/html, Size: 2730 bytes --]
^ permalink raw reply [flat|nested] 4+ messages in thread
* RE: [linux-lvm] pvmove safety
2008-02-15 15:45 ` Jonathan Brassow
@ 2008-02-15 19:21 ` Joseph L. Casale
2008-02-16 0:48 ` Alasdair G Kergon
0 siblings, 1 reply; 4+ messages in thread
From: Joseph L. Casale @ 2008-02-15 19:21 UTC (permalink / raw)
To: 'LVM general discussion and development'
>pvmove is pretty reliable. However, I would probably make a backup before doing any sort of operation that would grow/shrink/move a file system.
>
>brassow
Brassow,
Thanks for the reply, I was beginning to think it was a silly question <grin>. I couldn't find any reliable info regarding pvmove and the specifics of the actual command. I ended up just trying it and it worked.
I am also a little unsure about how IO to the LV in transit is handled, is it paused at any point?
If the pvmove is stopped at any point and an -abort is given, are all the PE's that *were* reserved automatically freed up? Also, I assume the old PE's aren't freed up until everything is copied over and in sync?>
Thanks!
jlc
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [linux-lvm] pvmove safety
2008-02-15 19:21 ` Joseph L. Casale
@ 2008-02-16 0:48 ` Alasdair G Kergon
0 siblings, 0 replies; 4+ messages in thread
From: Alasdair G Kergon @ 2008-02-16 0:48 UTC (permalink / raw)
To: LVM general discussion and development
On Fri, Feb 15, 2008 at 12:21:12PM -0700, Joseph L. Casale wrote:
> If the pvmove is stopped at any point and an -abort is given, are all the
> PE's that *were* reserved automatically freed up? Also, I assume the old PE's
> aren't freed up until everything is copied over and in sync?
Read the pvmove man page: the operation is done in stages with checkpoints,
and an abort reverts to the last checkpoint. So part might have moved
and part might not have moved.
No old PEs are freed until the whole operation completes (or --abort).
Alasdair
--
agk@redhat.com
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2008-02-16 0:48 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-02-12 21:25 [linux-lvm] pvmove safety Joseph L. Casale
2008-02-15 15:45 ` Jonathan Brassow
2008-02-15 19:21 ` Joseph L. Casale
2008-02-16 0:48 ` 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;
as well as URLs for NNTP newsgroup(s).