<html>
<head>
<style>
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 10pt;
font-family:Verdana
}
</style>
</head>
<body class='hmmessage'>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><SPAN lang=EN-US style="FONT-SIZE: 12pt; mso-fareast-language: ZH-CN"><FONT color=#000000><FONT face="Times New Roman">Hi,</FONT></FONT></SPAN></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><SPAN lang=EN-US style="FONT-SIZE: 12pt; mso-fareast-language: ZH-CN"><FONT face="Times New Roman" color=#000000></FONT></SPAN> </P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><SPAN lang=EN-US style="FONT-SIZE: 12pt; mso-fareast-language: ZH-CN"><FONT face="Times New Roman" color=#000000>There are several items such as below in /etc/drbd.conf.</FONT></SPAN></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><SPAN lang=EN-US style="FONT-SIZE: 12pt; mso-fareast-language: ZH-CN"><FONT face="Times New Roman" color=#000000>You may need to study it.</FONT></SPAN></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><SPAN lang=EN-US style="FONT-SIZE: 12pt; mso-fareast-language: ZH-CN"><FONT face="Times New Roman" color=#000000></FONT></SPAN> </P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><SPAN lang=EN-US style="FONT-SIZE: 12pt; mso-fareast-language: ZH-CN"><FONT face="Times New Roman" color=#000000>My DRBD is 8.3.0.</FONT></SPAN></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><SPAN lang=EN-US style="FONT-SIZE: 12pt; mso-fareast-language: ZH-CN"><FONT face="Times New Roman" color=#000000>It works well.</FONT></SPAN></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><SPAN lang=EN-US style="FONT-SIZE: 12pt; mso-fareast-language: ZH-CN"><FONT face="Times New Roman" color=#000000></FONT></SPAN> </P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><SPAN lang=EN-US style="FONT-SIZE: 12pt; mso-fareast-language: ZH-CN"><FONT face="Times New Roman" color=#000000>edward</FONT></SPAN></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><SPAN lang=EN-US style="FONT-SIZE: 12pt; mso-fareast-language: ZH-CN"><FONT face="Times New Roman" color=#000000></FONT></SPAN> </P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><SPAN lang=EN-US style="FONT-SIZE: 12pt; mso-fareast-language: ZH-CN"><FONT color=#000000><FONT face="Times New Roman">#after-sb-0pri disconnect;<?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" /><o:p></o:p></FONT></FONT></SPAN></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><SPAN lang=EN-US style="FONT-SIZE: 12pt; mso-fareast-language: ZH-CN"><FONT color=#000000><FONT face="Times New Roman">after-sb-0pri "discard-older-primary";<o:p></o:p></FONT></FONT></SPAN></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><SPAN lang=EN-US style="FONT-SIZE: 12pt; mso-fareast-language: ZH-CN"><o:p><FONT face="Times New Roman" color=#000000> </FONT></o:p></SPAN></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><SPAN lang=EN-US style="FONT-SIZE: 12pt; mso-fareast-language: ZH-CN"><FONT color=#000000><FONT face="Times New Roman">#after-sb-1pri disconnect;<o:p></o:p></FONT></FONT></SPAN></P>
<SPAN lang=EN-US style="FONT-SIZE: 12pt; FONT-FAMILY: 'Times New Roman'; mso-fareast-language: ZH-CN; mso-fareast-font-family: ËÎÌå; mso-ansi-language: EN-US; mso-bidi-language: AR-SA"><FONT color=#000000>after-sb-1pri discard-secondary; </FONT></SPAN><BR> <BR>> Date: Tue, 4 Aug 2009 18:58:15 +0200<BR>> From: pierre.lebrech@laposte.net<BR>> To: drbd-user@lists.linbit.com<BR>> Subject: [DRBD-user] split brain detected when switching back to the 2node cluster from the DR node<BR>> <BR>> Hello,<BR>> <BR>> I always get a split brain when I switch the HA services back to the 2node cluster from my DR node.<BR>> <BR>> Here are the steps I follow :<BR>> <BR>> - HA services are on the DR node<BR>> - I stop these HA services<BR>> - I umount the data<BR>> <BR>> The state of DRBD on node3 is as follow :<BR>> <BR>> ------------------------------<BR>> version: 8.3.2 (api:88/proto:86-90)<BR>> GIT-hash: dd7985327f146f33b86d4bff5ca8c94234ce840e build by root@hcns1, 2009-08-04 09:41:09<BR>> <BR>> 1: cs:WFConnection ro:Primary/Unknown ds:UpToDate/DUnknown C r----<BR>> ns:0 nr:34083396 dw:34084032 dr:68168163 al:12 bm:2094 lo:0 pe:0 ua:0 ap:0 ep:1 wo:f oos:208<BR>> ------------------------------<BR>> <BR>> Then, on node1 :<BR>> <BR>> - drbdadm primary r0<BR>> - I start the HA IP<BR>> - drbdadm --stacked up r0-U<BR>> <BR>> At this point, every thing is OK. Here is the output of cat /proc/drbd :<BR>> <BR>> ------------------------------<BR>> version: 8.3.2 (api:88/proto:86-90)<BR>> GIT-hash: dd7985327f146f33b86d4bff5ca8c94234ce840e build by root@hans1, 2009-08-04 09:43:39<BR>> 0: cs:Connected ro:Primary/Secondary ds:UpToDate/UpToDate C r----<BR>> ns:13706 nr:174 dw:15096 dr:102401147 al:30 bm:2170 lo:0 pe:0 ua:0 ap:0 ep:1 wo:f oos:0<BR>> 1: cs:Connected ro:Secondary/Primary ds:UpToDate/UpToDate C r----<BR>> ns:0 nr:244 dw:244 dr:416 al:0 bm:9 lo:0 pe:0 ua:0 ap:0 ep:1 wo:d oos:0<BR>> ------------------------------<BR>> <BR>> Then, I set all things back (reset) :<BR>> <BR>> on node1 :<BR>> <BR>> - drbdadm --stacked down r0-U<BR>> - drbdadm secondary r0<BR>> - I stop the HA IP<BR>> <BR>> The state on node1 is as follow :<BR>> <BR>> ------------------------------<BR>> version: 8.3.2 (api:88/proto:86-90)<BR>> GIT-hash: dd7985327f146f33b86d4bff5ca8c94234ce840e build by root@hans1, 2009-08-04 09:43:39<BR>> 0: cs:Connected ro:Secondary/Secondary ds:UpToDate/UpToDate C r----<BR>> ns:13707 nr:174 dw:15097 dr:102401147 al:30 bm:2186 lo:0 pe:0 ua:0 ap:0 ep:1 wo:f oos:0<BR>> 1: cs:Unconfigured<BR>> ------------------------------<BR>> <BR>> on node3, I type these commands to reset the state :<BR>> <BR>> - drbdadm secondary r0-U<BR>> <BR>> Then, on node1 and node2, I start heartbeat normally.<BR>> <BR>> <BR>> <BR>> Well, each time I follow theses steps, node3 gets a split-brain.<BR>> <BR>> Where is the problem?<BR>> <BR>> <BR>> <BR>> <BR>> context : 3-node cluster, every node connected, HA services on node1, DRBD version 8.3.2 on linux 2.6.30.<BR>> <BR>> _______________________________________________<BR>> drbd-user mailing list<BR>> drbd-user@lists.linbit.com<BR>> http://lists.linbit.com/mailman/listinfo/drbd-user<BR><br /><hr />Share your memories online with anyone you want <a href='http://www.microsoft.com/middleeast/windows/windowslive/products/photos-share.aspx?tab=1' target='_new'>anyone you want.</a></body>
</html>