[Drbd-dev] DRBD Bug Report
Guo, Lei
guol-fnst at cn.fujitsu.com
Tue Oct 25 03:23:42 CEST 2016
Version£º9.0.5/9.0.4
File£ºdrbd_state.c
Two nodes are setup, Node 1 is primary, node 2 is secondary.
On node 2 , command ¡°drbdadm down r0¡± returns error.
[error] Failed to disconnected or detach the r0.
cmd_result=[11], cmd_output=[r0: State change failed: (-10) State change was refused by peer node
additional info from kernel:failed to disconnect
The possible bug is as follows.
static enum outdate_what outdate_on_disconnect(struct drbd_connection *connection)
{
struct drbd_resource *resource = connection->resource;
if (connection->fencing_policy >= FP_RESOURCE &&
resource->role[NOW] != connection->peer_role[NOW]) {
if (resource->role[NOW] == R_PRIMARY)
return OUTDATE_PEER_DISKS;
if (connection->peer_role[NOW] != R_PRIMARY) <--------- should be ¡°if (connection->peer_role[NOW] == R_PRIMARY)¡±
return OUTDATE_DISKS;
}
return OUTDATE_NOTHING;
}
ÒÔÉÏ¡¢¤è¤í¤·¤¯¤ªî¤¤¤·¤Þ¤¹¡£
-------
¹ùÀÚ Guo Lei
Development Dept.III (3-2-3)
Nanjing Fujitsu Nanda Software Tech. Co., Ltd.(FNST)
TEL: +86+25-86630566-9437
E-mail: guol-fnst at cn.fujistu.com<mailto:guol-fnst at cn.fujistu.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.linbit.com/pipermail/drbd-dev/attachments/20161025/2fe7c964/attachment.htm>
More information about the drbd-dev
mailing list