All of lore.kernel.org
 help / color / mirror / Atom feed
* [Drbd-dev] DRBD Bug Report
@ 2016-10-25  1:23 Guo, Lei
  2016-10-31 10:58 ` Lars Ellenberg
  0 siblings, 1 reply; 4+ messages in thread
From: Guo, Lei @ 2016-10-25  1:23 UTC (permalink / raw)
  To: drbd-dev@lists.linbit.com

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain; charset="gb2312", Size: 1357 bytes --]

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@cn.fujistu.com<mailto:guol-fnst@cn.fujistu.com>




[-- Attachment #2: Type: text/html, Size: 7538 bytes --]

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2018-04-04 10:42 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-10-25  1:23 [Drbd-dev] DRBD Bug Report Guo, Lei
2016-10-31 10:58 ` Lars Ellenberg
2018-04-04  7:04   ` [Drbd-dev] DRBD Bug Report : DRBD 9.0 after-resync-target not being called after resync / reconnect Farhan Khan
2018-04-04 10:37     ` Lars Ellenberg

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.