* RE: [Drbd-dev] DRBD 8 rejects some state changes that it shouldn't
@ 2006-08-08 17:47 Graham, Simon
2006-08-09 14:28 ` Philipp Reisner
0 siblings, 1 reply; 4+ messages in thread
From: Graham, Simon @ 2006-08-08 17:47 UTC (permalink / raw)
To: Philipp Reisner, drbd-dev
>
> 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.
>
I agree - this seems like the right fix to me.
Simon
^ permalink raw reply [flat|nested] 4+ messages in thread
* [Drbd-dev] DRBD 8 rejects some state changes that it shouldn't
@ 2006-08-07 13:12 Graham, Simon
2006-08-08 15:17 ` Philipp Reisner
0 siblings, 1 reply; 4+ messages in thread
From: Graham, Simon @ 2006-08-07 13:12 UTC (permalink / raw)
To: drbd-dev
[-- Attachment #1: Type: text/plain, Size: 844 bytes --]
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?
Simon
[-- Attachment #2: Type: text/html, Size: 2482 bytes --]
^ permalink raw reply [flat|nested] 4+ messages in thread* Re: [Drbd-dev] DRBD 8 rejects some state changes that it shouldn't
2006-08-07 13:12 Graham, Simon
@ 2006-08-08 15:17 ` Philipp Reisner
0 siblings, 0 replies; 4+ messages in thread
From: Philipp Reisner @ 2006-08-08 15:17 UTC (permalink / raw)
To: drbd-dev
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 :
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2006-08-09 14:28 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-08-08 17:47 [Drbd-dev] DRBD 8 rejects some state changes that it shouldn't Graham, Simon
2006-08-09 14:28 ` Philipp Reisner
-- strict thread matches above, loose matches on Subject: below --
2006-08-07 13:12 Graham, Simon
2006-08-08 15:17 ` Philipp Reisner
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.