* [linux-lvm] Continue an interrupted mirror sync?
@ 2013-09-27 9:26 Justin Lee
2013-09-27 15:42 ` Stuart Gathman
0 siblings, 1 reply; 3+ messages in thread
From: Justin Lee @ 2013-09-27 9:26 UTC (permalink / raw)
To: linux-lvm
Hello,
I would like to know If a mirror sync process is interrupted by some
uncontrollable reason, is it possible to continue the sync process
near the point where it was interrupted?
Volume mirroring may take a long time to be done, if the connection of
the storage device is over an unreliable channel (such as SAN, iSCSI
or Fibre Channel) it is possible that ongoing sync will be interrupted
over and over again due to frequent connection loss so that the sync
will never complete...
Has LVM existing solutions for the issue? Or any suggestion? Thank you!
Justin
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [linux-lvm] Continue an interrupted mirror sync?
2013-09-27 9:26 [linux-lvm] Continue an interrupted mirror sync? Justin Lee
@ 2013-09-27 15:42 ` Stuart Gathman
2013-09-28 4:58 ` Justin Lee
0 siblings, 1 reply; 3+ messages in thread
From: Stuart Gathman @ 2013-09-27 15:42 UTC (permalink / raw)
To: linux-lvm
On 09/27/2013 05:26 AM, Justin Lee wrote:
> Hello,
>
> I would like to know If a mirror sync process is interrupted by some
> uncontrollable reason, is it possible to continue the sync process
> near the point where it was interrupted?
>
> Volume mirroring may take a long time to be done, if the connection of
> the storage device is over an unreliable channel (such as SAN, iSCSI
> or Fibre Channel) it is possible that ongoing sync will be interrupted
> over and over again due to frequent connection loss so that the sync
> will never complete...
>
> Has LVM existing solutions for the issue? Or any suggestion? Thank you!
Pretty much the entire purpose of the mirror log is to accomplish this
(track which blocks are in sync). Is this a real problem you've
encountered (mirror log is broken), or a theoretical one? If you
created a mirror without a log, then yes, it pretty much has to start
over each time. A compromise might be to keep the log in memory. This
would handle SAN storage going up and down, but would have to start over
after a reboot.
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [linux-lvm] Continue an interrupted mirror sync?
2013-09-27 15:42 ` Stuart Gathman
@ 2013-09-28 4:58 ` Justin Lee
0 siblings, 0 replies; 3+ messages in thread
From: Justin Lee @ 2013-09-28 4:58 UTC (permalink / raw)
To: LVM general discussion and development
2013/9/27 Stuart Gathman <stuart@gathman.org>:
> On 09/27/2013 05:26 AM, Justin Lee wrote:
>>
>> Hello,
>>
>> I would like to know If a mirror sync process is interrupted by some
>> uncontrollable reason, is it possible to continue the sync process
>> near the point where it was interrupted?
>>
>> Volume mirroring may take a long time to be done, if the connection of
>> the storage device is over an unreliable channel (such as SAN, iSCSI
>> or Fibre Channel) it is possible that ongoing sync will be interrupted
>> over and over again due to frequent connection loss so that the sync
>> will never complete...
>>
>> Has LVM existing solutions for the issue? Or any suggestion? Thank you!
>
> Pretty much the entire purpose of the mirror log is to accomplish this
> (track which blocks are in sync). Is this a real problem you've encountered
Yes, it is a real problem from a new project assigned to me recently
(and I'm also new to LVM). If I remember/understand correctly, they
have tried to solve the problem by hacking the code in kernel space.
They seem to find something like checkpoint mechanism in the code and
tried to reduce the granularity of the checkpoint therefore the sync
progress interrupted by connection loss may be restored as much as
possible. Unfortunately, it didn't work and result in kernel panic.
> (mirror log is broken),
I'm not sure in what circumstances will mirror log be broken, and when
will a sync begin/end exactly. If LVM's persistent mirror log were
meant to keep sync progress, the log should not be broken or corrupted
in situations like sudden power loss or broken storage connection when
system is up again, I guess... (do we have some commands to verify
mirror log status?
> or a theoretical one? If you created a mirror
> without a log, then yes, it pretty much has to start over each time. A
...so if I run command like:
lvcreate --nosync ...
will it turn off the mirror log completely...? Or mirror log is forced
to be created whenever a logical volume is created...? (maybe ...
there is no way to turn it off?)
> compromise might be to keep the log in memory. This would handle SAN
> storage going up and down, but would have to start over after a reboot.
>
> _______________________________________________
> 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] 3+ messages in thread
end of thread, other threads:[~2013-09-28 4:58 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-09-27 9:26 [linux-lvm] Continue an interrupted mirror sync? Justin Lee
2013-09-27 15:42 ` Stuart Gathman
2013-09-28 4:58 ` Justin Lee
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).