On 07/02/2011 03:37 PM, Lars Ellenberg wrote:
On Fri, Jul 01, 2011 at 11:00:32PM +0200, Lionel Sausin wrote:
Hi,
My understanding is that "verify" has a source and a target - and then
when you resync, blocks will flow from the source to the target, so if
the source is corrupt you'll replicate that corruption.
Anyone please correct me if I'm wrong.

Nope.

The direction of the resync, once it happens,
has nothing to do with the "direction" of the verify.

The "diretion" of the verify is mostly an internal detail only,
of not much practical relevance.

Verify just compares checksums of blocks,
and marks blocks as being "different": out-of-sync.

Resync bases the decision on the direction on the UUIDs,
so if you have a "classic" Primary/Secondary setup,
with disk state "UpToDate" on the Primary,
then the resync direction caused by disconnect/reconnect
is always from Primary to Secondary.

Thanks a lot for this explanation. Makes sense. I couldn't find this information on the net, might be worth documenting.

Regards
Dominik
_______________________________________________
drbd-user mailing list
[email protected]
http://lists.linbit.com/mailman/listinfo/drbd-user

Reply via email to