<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=us-ascii">
<META NAME="Generator" CONTENT="MS Exchange Server version 6.5.7226.0">
<TITLE>DRBD 8 rejects some state changes that it shouldn't</TITLE>
</HEAD>
<BODY>
<!-- Converted from text/rtf format -->
<P DIR=LTR><SPAN LANG="en-us"><FONT SIZE=2 FACE="Tahoma">In g</FONT></SPAN><SPAN LANG="en-us"><FONT SIZE=2 FACE="Tahoma">eneral, 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</FONT></SPAN><SPAN LANG="en-us"> <FONT SIZE=2 FACE="Tahoma">–</FONT></SPAN><SPAN LANG="en-us"><FONT SIZE=2 FACE="Tahoma"> for example, if the peer tells you that it has gone diskless, it</FONT></SPAN><SPAN LANG="en-us"><FONT SIZE=2 FACE="Tahoma">’</FONT></SPAN><SPAN LANG="en-us"><FONT SIZE=2 FACE="Tahoma">s really not possible to refuse the state change</FONT></SPAN><SPAN LANG="en-us"> <FONT SIZE=2 FACE="Tahoma">–</FONT></SPAN><SPAN LANG="en-us"><FONT SIZE=2 FACE="Tahoma"> here</FONT></SPAN><SPAN LANG="en-us"><FONT SIZE=2 FACE="Tahoma">’</FONT></SPAN><SPAN LANG="en-us"><FONT SIZE=2 FACE="Tahoma">s an example:</FONT></SPAN></P>
<P DIR=LTR><SPAN LANG="en-us"><FONT SIZE=2 FACE="Tahoma">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--- }</FONT></SPAN><SPAN LANG="en-us"></SPAN></P>
<P DIR=LTR><SPAN LANG="en-us"><FONT SIZE=2 FACE="Tahoma">I</FONT></SPAN><SPAN LANG="en-us"><FONT SIZE=2 FACE="Tahoma">’</FONT></SPAN><SPAN LANG="en-us"><FONT SIZE=2 FACE="Tahoma">m not sure how important this is but it definitely results in the local state being incorrect. I</FONT></SPAN><SPAN LANG="en-us"><FONT SIZE=2 FACE="Tahoma">’</FONT></SPAN><SPAN LANG="en-us"><FONT SIZE=2 FACE="Tahoma">m not totally sure but I suspect you should always let the peer state change</FONT></SPAN><SPAN LANG="en-us"><FONT SIZE=2 FACE="Tahoma"> by setting the ChgStateHard flag in the call to drbd_change_state in receive_req_state?</FONT></SPAN></P>
<P DIR=LTR><SPAN LANG="en-us"></SPAN></P>
<P DIR=LTR><SPAN LANG="en-us"><FONT SIZE=2 FACE="Tahoma">Simon</FONT></SPAN><SPAN LANG="en-us"></SPAN></P>
</BODY>
</HTML>