<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
<META NAME="Generator" CONTENT="MS Exchange Server version 6.5.7036.0">
<TITLE>DRBD Outdated by Pacemaker/Heartbeat</TITLE>
</HEAD>
<BODY>
<!-- Converted from text/rtf format -->
<P ALIGN=LEFT><SPAN LANG="en-gb"><FONT SIZE=2 FACE="Courier New">Hi DRBD-user group,</FONT></SPAN></P>
<BR>
<P ALIGN=LEFT><SPAN LANG="en-gb"><FONT SIZE=2 FACE="Courier New">I am using pacemaker 1.0.9, Heartbeat 3.0.3 and DRBD 8.3.7 .</FONT></SPAN></P>
<P ALIGN=LEFT><SPAN LANG="en-gb"><FONT SIZE=2 FACE="Courier New">Each time I put a node in standby mode (crm node standby) the other node gets in Slave state, instead of staying or getting Master :</FONT></SPAN></P>
<P ALIGN=LEFT><SPAN LANG="en-gb"><FONT SIZE=2 FACE="Courier New">#crm_mon</FONT></SPAN></P>
<P ALIGN=LEFT><SPAN LANG="en-gb"><FONT SIZE=2 FACE="Courier New">============</FONT></SPAN></P>
<P ALIGN=LEFT><SPAN LANG="en-gb"><FONT SIZE=2 FACE="Courier New">Last updated: Thu Aug 26 12:31:11 2010</FONT></SPAN></P>
<P ALIGN=LEFT><SPAN LANG="en-gb"><FONT SIZE=2 FACE="Courier New">Stack: Heartbeat</FONT></SPAN></P>
<P ALIGN=LEFT><SPAN LANG="en-gb"><FONT SIZE=2 FACE="Courier New">Current DC: slave (…) - partition with quorum</FONT></SPAN></P>
<P ALIGN=LEFT><SPAN LANG="en-gb"><FONT SIZE=2 FACE="Courier New">Version: 1.0.9-unknown</FONT></SPAN></P>
<P ALIGN=LEFT><SPAN LANG="en-gb"><FONT SIZE=2 FACE="Courier New">2 Nodes configured, unknown expected votes</FONT></SPAN></P>
<P ALIGN=LEFT><SPAN LANG="en-gb"><FONT SIZE=2 FACE="Courier New">2 Resources configured.</FONT></SPAN></P>
<P ALIGN=LEFT><SPAN LANG="en-gb"><FONT SIZE=2 FACE="Courier New">============</FONT></SPAN></P>
<P ALIGN=LEFT><SPAN LANG="en-gb"><FONT SIZE=2 FACE="Courier New">Node slave (…): standby</FONT></SPAN></P>
<P ALIGN=LEFT><SPAN LANG="en-gb"><FONT SIZE=2 FACE="Courier New">Online: [ master ]</FONT></SPAN></P>
<P ALIGN=LEFT><SPAN LANG="en-gb"><FONT SIZE=2 FACE="Courier New"> Master/Slave Set: ms_drbd_mysql</FONT></SPAN></P>
<P ALIGN=LEFT><SPAN LANG="en-gb"><FONT SIZE=2 FACE="Courier New"> Slaves: [ master ]</FONT></SPAN></P>
<P ALIGN=LEFT><SPAN LANG="en-gb"><FONT SIZE=2 FACE="Courier New"> Stopped: [ drbd_mysql:1 ]</FONT></SPAN></P>
<BR>
<P ALIGN=LEFT><SPAN LANG="en-gb"><FONT SIZE=2 FACE="Courier New">And DRBD is set as Outdated :</FONT></SPAN></P>
<P ALIGN=LEFT><SPAN LANG="en-gb"><FONT SIZE=2 FACE="Courier New"># cat /proc/drbd</FONT></SPAN></P>
<P ALIGN=LEFT><SPAN LANG="en-gb"><FONT SIZE=2 FACE="Courier New">version: 8.3.7 (api:88/proto:86-91)</FONT></SPAN></P>
<P ALIGN=LEFT><SPAN LANG="en-gb"><FONT SIZE=2 FACE="Courier New">built-in</FONT></SPAN></P>
<P ALIGN=LEFT><SPAN LANG="en-gb"><FONT SIZE=2 FACE="Courier New"> 1: cs:WFConnection ro:Secondary/Unknown ds:Outdated/DUnknown C r----</FONT></SPAN></P>
<P ALIGN=LEFT><SPAN LANG="en-gb"><FONT SIZE=2 FACE="Courier New"> ns:424 nr:0 dw:456 dr:10283 al:18 bm:24 lo:0 pe:0 ua:0 ap:0 ep:1 wo:b oos:64</FONT></SPAN></P>
<P ALIGN=LEFT><SPAN LANG="en-gb"><FONT SIZE=2 FACE="Courier New">When a server is offline or in standby mode, I would like the other one to be Primary and make ressources working on it.</FONT></SPAN></P>
<BR>
<P ALIGN=LEFT><SPAN LANG="en-gb"><FONT SIZE=2 FACE="Courier New">When both servers are online, everything is ok :</FONT></SPAN></P>
<P ALIGN=LEFT><SPAN LANG="en-gb"><FONT SIZE=2 FACE="Courier New">#crm_mon</FONT></SPAN></P>
<P ALIGN=LEFT><SPAN LANG="en-gb"><FONT SIZE=2 FACE="Courier New">============</FONT></SPAN></P>
<P ALIGN=LEFT><SPAN LANG="en-gb"><FONT SIZE=2 FACE="Courier New">Last updated: Thu Aug 26 12:38:26 2010</FONT></SPAN></P>
<P ALIGN=LEFT><SPAN LANG="en-gb"><FONT SIZE=2 FACE="Courier New">Stack: Heartbeat</FONT></SPAN></P>
<P ALIGN=LEFT><SPAN LANG="en-gb"><FONT SIZE=2 FACE="Courier New">Current DC: slave (…) - partition with quorum</FONT></SPAN></P>
<P ALIGN=LEFT><SPAN LANG="en-gb"><FONT SIZE=2 FACE="Courier New">Version: 1.0.9-unknown</FONT></SPAN></P>
<P ALIGN=LEFT><SPAN LANG="en-gb"><FONT SIZE=2 FACE="Courier New">2 Nodes configured, unknown expected votes</FONT></SPAN></P>
<P ALIGN=LEFT><SPAN LANG="en-gb"><FONT SIZE=2 FACE="Courier New">2 Resources configured.</FONT></SPAN></P>
<P ALIGN=LEFT><SPAN LANG="en-gb"><FONT SIZE=2 FACE="Courier New">============</FONT></SPAN></P>
<P ALIGN=LEFT><SPAN LANG="en-gb"><FONT SIZE=2 FACE="Courier New">Online: [ slave master ]</FONT></SPAN></P>
<P ALIGN=LEFT><SPAN LANG="en-gb"><FONT SIZE=2 FACE="Courier New"> Master/Slave Set: ms_drbd_mysql</FONT></SPAN></P>
<P ALIGN=LEFT><SPAN LANG="en-gb"><FONT SIZE=2 FACE="Courier New"> Masters: [ master ]</FONT></SPAN></P>
<P ALIGN=LEFT><SPAN LANG="en-gb"><FONT SIZE=2 FACE="Courier New"> Slaves: [ slave ]</FONT></SPAN></P>
<P ALIGN=LEFT><SPAN LANG="en-gb"><FONT SIZE=2 FACE="Courier New"> Resource Group: grp_mysql</FONT></SPAN></P>
<P ALIGN=LEFT><SPAN LANG="en-gb"><FONT SIZE=2 FACE="Courier New"> fs_mysql (ocf::heartbeat:Filesystem): Started master</FONT></SPAN></P>
<P ALIGN=LEFT><SPAN LANG="en-gb"><FONT SIZE=2 FACE="Courier New"> mysqld (lsb:mysql): Started master</FONT></SPAN></P>
<BR>
<P ALIGN=LEFT><SPAN LANG="en-gb"><FONT SIZE=2 FACE="Courier New">master:/# cat /proc/drbd</FONT></SPAN></P>
<P ALIGN=LEFT><SPAN LANG="en-gb"><FONT SIZE=2 FACE="Courier New">version: 8.3.7 (api:88/proto:86-91)</FONT></SPAN></P>
<P ALIGN=LEFT><SPAN LANG="en-gb"><FONT SIZE=2 FACE="Courier New">built-in</FONT></SPAN></P>
<P ALIGN=LEFT><SPAN LANG="en-gb"><FONT SIZE=2 FACE="Courier New"> 1: cs:Connected ro:Primary/Secondary ds:UpToDate/UpToDate C r----</FONT></SPAN></P>
<P ALIGN=LEFT><SPAN LANG="en-gb"><FONT SIZE=2 FACE="Courier New"> ns:560 nr:0 dw:544 dr:13700 al:23 bm:28 lo:0 pe:0 ua:0 ap:0 ep:1 wo:b oos:0</FONT></SPAN></P>
<P ALIGN=LEFT><SPAN LANG="en-gb"><FONT SIZE=2 FACE="Courier New">When I shut down heartbeat (/etc/init.d/heartbeat stop) on both nodes, and then start DRBD (/etc/init.d/drbd start) on both nodes I can stop DRBD on one node (/etc/init.d/drbd stop) and the other stay in Uptdate state, and I can make it Primary (drbdadm primary all)</FONT></SPAN></P>
<BR>
<P ALIGN=LEFT><SPAN LANG="en-gb"><FONT SIZE=2 FACE="Courier New">How can I do to make understand Heartbeat/Pacemaker not to put DRBD in Outdated state and make it putting services/resources on the other node ?</FONT></SPAN></P>
<BR>
<P ALIGN=LEFT><SPAN LANG="fr"><FONT SIZE=2 FACE="Courier New">Thank you,</FONT></SPAN></P>
<P ALIGN=LEFT><SPAN LANG="fr"><FONT SIZE=2 FACE="Courier New">Best regards,</FONT></SPAN></P>
<BR>
<P ALIGN=LEFT><SPAN LANG="fr"><FONT SIZE=2 FACE="Courier New">Raphaël</FONT></SPAN><SPAN LANG="fr"></SPAN></P>
</BODY>
</HTML>