全部博文(163)
分类: LINUX
2009-12-14 14:16:12
drbd 主机列表和预备分区 | IP 地址 | 主机名 |
主机1(primary)|/dev/sda4 | eth0:172.16.0.178 eth1:192.168.0.1 |
drbd_test_1 |
主机2(secondary)|/dev/hdb2 | eth0:172.16.0.179 eth1:192.168.0.2 |
drbd_test_2 |
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.
--stacked
instead
of just drbdadm.
输出文件上面最开始是drbd的版本信息,然后就是数据同步的一些状态信息:
cs — connection state
o Unconfigured:设备在等待配置。
o Unconnected:连接模块时的过渡状态。
o WFConnection:设备等待另一测的配置。
o WFReportParams:过渡状态,等待新TCP 连接的第一个数据包时。.
o SyncingAll:正将主节点的所有模块复制到次级节点上。.
o SyncingQuick:通过复制已被更新的模块(因为现在次级节点已经离开了集群)来更新次级节点。
o Connected:一切正常。
o Timeout:过渡状态。
st — node state (local/remote)
ld — local data consistency
ds — data consistency
ns — network send
nr — network receive
dw — disk write
dr — disk read
pe — pending (waiting for ack)
ua — unack’d (still need to send ack)
al — access log write count