QQ登录

只需一步,快速开始

 找回密码
 注册

QQ登录

只需一步,快速开始

查看: 2190|回复: 1

Manual split brain recovery --DRBD

[复制链接]
发表于 2009-7-17 09:31:42 | 显示全部楼层 |阅读模式
Manual split brain recoveryDRBD detects split brain at the time connectivity becomes      available again and the peer nodes exchange the initial DRBD      protocol handshake. If DRBD detects that both nodes are (or were      at some point, while disconnected) in the primary role, it      immediately tears down the replication connection. The tell-tale      sign of this is a message like the following appearing in the      system log:      
Split-Brain detected, dropping connection!
After split brain has been detected, one node will always      have the resource in a             StandAlone connection state.      The other might either also be in the StandAlone      state (if both nodes detected the split brain simultaneously),      or in                   WFConnection (if the peer tore down the      connection before the other node had a chance to detect split      brain).
At this point, unless you configured DRBD to automatically      recover from split brain, you must manually intervene by      selecting one node whose modifications will be discarded (this      node is referred to as the       split brain victim).      This intervention is made with the following commands:      
drbdadm secondary resource
drbdadm -- --discard-my-data connect resource

       On the other node (the       split brain survivor), if its connection      state is also StandAlone, you would enter:      
drbdadm connect resource

       You may omit this step if the node is already in the      WFConnection state; it will then reconnect      automatically.
If the resource affected by the split brain is a stacked resource, use      drbdadm --stacked instead       of just drbdadm.
Upon connection, your split brain victim immediately changes      its connection state to SyncTarget, and has its      modifications overwritten by the remaining primary node.      
Note
The split brain victim is not subjected to a full device          synchronization. Instead, it has its local modifications          rolled back, and any modifications made on the split brain          survivor propagate to the victim.


After re-synchronization has completed, the split brain is      considered resolved and the two nodes form a fully consistent,      redundant replicated storage system again.
发表于 2009-7-17 10:01:37 | 显示全部楼层
继续 BS 不排版。
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

GMT+8, 2024-12-1 18:41 , Processed in 0.051929 second(s), 15 queries .

© 2021 Powered by Discuz! X3.5.

快速回复 返回顶部 返回列表