From: Philipp Reisner <philipp.reisner@linbit.com>
To: drbd-dev@lists.linbit.com
Subject: Re: [Drbd-dev] DRBD 8 rejects some state changes that it shouldn't
Date: Tue, 8 Aug 2006 17:17:01 +0200 [thread overview]
Message-ID: <200608081717.02142.philipp.reisner@linbit.com> (raw)
In-Reply-To: <342BAC0A5467384983B586A6B0B37671034711CD@EXNA.corp.stratus.com>
Am Montag, 7. August 2006 15:12 schrieb Graham, Simon:
> In general, the state change code does the right thing in refusing
> invalid state changes, however there are some cases where it rejects a
> change that cannot really be rejected - for example, if the peer tells
> you that it has gone diskless, it's really not possible to refuse the
> state change - here's an example:
>
> drbd15: State change failed: Refusing to be inconsistent on both
> nodesdrbd15: state = { cs:SyncTarget st:Secondary/Primary
> ds:Inconsistent/UpToDate r--- }drbd15: wanted = { cs:SyncTarget
> st:Secondary/Primary ds:Inconsistent/Diskless r--- }
> I'm not sure how important this is but it definitely results in the
> local state being incorrect. I'm not totally sure but I suspect you
> should always let the peer state change by setting the ChgStateHard flag
> in the call to drbd_change_state in receive_req_state?
The idea is to know the correct state of the peer.
In case the peer's disk failes, it (should) origin in
drbd_io_error() -> drbd_send_state() ===network==>>
receive_state() /* Hmm, here is ChgStateHard missing!!! */
If the user at the peer node wants to detach, it should go
through _drbd_request_state() -> drbd_send_state_req()
==network==>> receive_req_state() ...
if the state change failes there, it should fail the
state change on the peer node as well...
I think you the bug you mean is the missing ChgStateHard in
receive_state(). But before patching it in there, I wait for your
reply.
-Philipp
--
: Dipl-Ing Philipp Reisner Tel +43-1-8178292-50 :
: LINBIT Information Technologies GmbH Fax +43-1-8178292-82 :
: Schönbrunnerstr 244, 1120 Vienna, Austria http://www.linbit.com :
next prev parent reply other threads:[~2006-08-08 15:17 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-08-07 13:12 [Drbd-dev] DRBD 8 rejects some state changes that it shouldn't Graham, Simon
2006-08-08 15:17 ` Philipp Reisner [this message]
-- strict thread matches above, loose matches on Subject: below --
2006-08-08 17:47 Graham, Simon
2006-08-09 14:28 ` Philipp Reisner
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=200608081717.02142.philipp.reisner@linbit.com \
--to=philipp.reisner@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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox