From: Lars Ellenberg <lars.ellenberg@linbit.com>
To: drbd-dev@lists.linbit.com
Subject: Re: [Drbd-dev] Failed to reconnect in different volume's size over the 3 nodes
Date: Thu, 11 Aug 2016 15:53:11 +0200 [thread overview]
Message-ID: <20160811135311.GC8765@soda.linbit> (raw)
In-Reply-To: <CALLFrTQW43=D8kJ4Z+rJV=+Dk4BBOA_0hT1rOxFRcqrBAa0K2A@mail.gmail.com>
On Thu, Aug 11, 2016 at 02:48:38PM +0900, 박경민 wrote:
> Hello
>
> After 2 commit below
> 585554e drbd: resize: reduce own sanity checks, trust peer
> c09ce4b drbd: resize loop avoidance band-aid
>
> It can't reconnect just in case different volume's size.
> That was only occurred over the 3 nodes configuration.
>
> The scenario is below
>
> A(100mb) - B(100mb) - C(90mb)
> 1. Success to connect at Inconsistent state
> 2. C node does "Primary --force "
> 3. All nodes agree 90mb size
> 4. C node does down
> 5. A node does down
> 6. A node does up
> 7. A and b agree 100mb size
> 8. C node can't connect because of lower size
>
>
>
> I was looking for the code,and I think it was recalculated forcibly because
> below
>
> in receive_sizes()
> /* Maybe the peer knows something about peers I cannot currently see. */
> if (is_handshake)
> ddsf |= DDSF_FORCED;
>
Maybe. Maybe not.
That "force" may not do what you think it does,
or what the name of the flag seems to imply.
Size handshake, and resize, with DRBD 9 and "flaky connections",
is very erratic still. We will have to eventually fix that properly,
maybe by using some extension of the cluster wide transactions we
already have.
* don't do that, then
* maybe you want to explicitly set a size limit in the config
* please send logs of the connection attempts,
always from all nodes, always time synced.
Thanks,
--
: Lars Ellenberg
: LINBIT | Keeping the Digital World Running
: DRBD -- Heartbeat -- Corosync -- Pacemaker
: R&D, Integration, Ops, Consulting, Support
DRBD® and LINBIT® are registered trademarks of LINBIT
prev parent reply other threads:[~2016-08-11 13:53 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-08-11 5:48 [Drbd-dev] Failed to reconnect in different volume's size over the 3 nodes 박경민
2016-08-11 13:53 ` Lars Ellenberg [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20160811135311.GC8765@soda.linbit \
--to=lars.ellenberg@linbit.com \
--cc=drbd-dev@lists.linbit.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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.