master - cmirrord: Prevent secondary checkpoints from corrupting bitmaps
Gitweb: http://git.fedorahosted.org/git/?p=lvm2.git;a=commitdiff;h=f0be9ac9047a30bb2befe6a8d9130f466d37d9fd Commit: f0be9ac9047a30bb2befe6a8d9130f466d37d9fd Parent: 99fd710cfd8beb88eb860e16007209d0acb1c440 Author: Jonathan Brassow <[email protected]> AuthorDate: Tue Aug 20 13:21:09 2013 -0500 Committer: Jonathan Brassow <[email protected]> CommitterDate: Tue Aug 20 13:21:09 2013 -0500
cmirrord: Prevent secondary checkpoints from corrupting bitmaps
The bug addressed by this patch manifested itself during testing by showing a mirror that never became 'in-sync' after creation. The bug is isolated to distributions that do not have support for openAIS checkpointing (i.e. > RHEL6, > F16).
When a node joins a group that is managing a mirror log, the other machines in the group send it a checkpoint representing the current state of the bitmap. More than one machine can send a checkpoint, but only the initial one should be imported. Once the bitmap state has been imported from the initial checkpoint, operations (such as resync, mark, and clear operations) can begin. When subsequent checkpoints are allowed to be imported, it has the effect of erasing all the log operations between the initial checkpoint and the ones that follow.
When cmirrord was updated to handle the absence of openAIS checkpointing (commit 62e38da133d9801cdf36b0f2aaec615ce14b9000), the new import_checkpoint() function failed to honor the 'no_read' parameter. This parameter was designed to avoid reading all but the initial checkpoint. Honoring this parameter has solved the issue of corrupting bitmap data with secondary checkpoints.
--- WHATS_NEW | 1 + daemons/cmirrord/cluster.c | 43 +++++++++++++++++++++++++++++++++++++++++-- 2 files changed, 42 insertions(+), 2 deletions(-)
WHATS_NEW +1 -0
@@ -1,5 +1,6 @@ Version 2.02.101 - =================================== + Prevent cluster mirror logs from being corrupted by redundant checkpoints. Fix ignored lvmetad update on loop device configuration (2.02.99). Use LVM_PATH instead of hardcoded value in lvm2 activation systemd generator. Refresh existing VG before autoactivation (event retrigger/device reappeared).
daemons/cmirrord/cluster.c +41 -2
67 lines not on this page · raw message