<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40"><head><meta http-equiv=Content-Type content="text/html; charset=us-ascii"><meta name=Generator content="Microsoft Word 12 (filtered medium)"><style><!--
/* Font Definitions */
@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri","sans-serif";}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
span.EmailStyle17
        {mso-style-type:personal-compose;
        font-family:"Calibri","sans-serif";
        color:windowtext;}
.MsoChpDefault
        {mso-style-type:export-only;}
@page WordSection1
        {size:612.0pt 792.0pt;
        margin:72.0pt 72.0pt 72.0pt 72.0pt;}
div.WordSection1
        {page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]--></head><body lang=EN-CA link=blue vlink=purple><div class=WordSection1><p class=MsoNormal>Hi –<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>I’m working on a two node cluster on CentOS 6.2, using iscsi shared storage, and I’m having difficulty detecting a lost connection to the storage.<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>Maybe this is a n00b issue, but I understand that monitor depth="20" in ocf:heartbeat:Filesystem is supposed to create a test file and check whether it can write to that file, and declare the resource failed if the filesystem goes read-only. The test file does not get created, and I can’t see where any errors might be being logged to. <o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>I’ve tested this configuration by disabling a switch port. The second node picks up the services correctly, but the first node keeps on running them too, and does not notice that it no longer has a writeable filesystem. If the port is reconnected, they both have the same ext3 filesystem mounted at once, which makes a fine mess.<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>Here’s my current configuration. Have I missed some vital detail? Should I be brining the iscsi connection into pacemaker too?<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>node dba<o:p></o:p></p><p class=MsoNormal>node dbb<o:p></o:p></p><p class=MsoNormal>primitive ClusterIP ocf:heartbeat:IPaddr2 \<o:p></o:p></p><p class=MsoNormal> params ip="10.232.169.130" cidr_netmask="24" \<o:p></o:p></p><p class=MsoNormal> op monitor interval="30s" nic="eth0" \<o:p></o:p></p><p class=MsoNormal> meta target-role="Started"<o:p></o:p></p><p class=MsoNormal>primitive p_fs_mysql ocf:heartbeat:Filesystem \<o:p></o:p></p><p class=MsoNormal> params device="/dev/sdb1" directory="/mnt/mysql" fstype="ext3" options="noatime,nodiratime,noexec" \<o:p></o:p></p><p class=MsoNormal> op start interval="0" timeout="60" \<o:p></o:p></p><p class=MsoNormal> op stop interval="0" timeout="240" \<o:p></o:p></p><p class=MsoNormal> op monitor interval="30s" depth="20" \<o:p></o:p></p><p class=MsoNormal> meta target-role="Started"<o:p></o:p></p><p class=MsoNormal>primitive p_mysql lsb:mysql \<o:p></o:p></p><p class=MsoNormal> op start interval="0" timeout="60s" \<o:p></o:p></p><p class=MsoNormal> op stop interval="0" timeout="60s" \<o:p></o:p></p><p class=MsoNormal> op monitor interval="15s" \<o:p></o:p></p><p class=MsoNormal> meta target-role="Started"<o:p></o:p></p><p class=MsoNormal>group g_mysql p_fs_mysql ClusterIP p_mysql \<o:p></o:p></p><p class=MsoNormal> meta target-role="Started"<o:p></o:p></p><p class=MsoNormal>property $id="cib-bootstrap-options" \<o:p></o:p></p><p class=MsoNormal> dc-version="1.1.6-3.el6-a02c0f19a00c1eb2527ad38f146ebc0834814558" \<o:p></o:p></p><p class=MsoNormal> cluster-infrastructure="openais" \<o:p></o:p></p><p class=MsoNormal> expected-quorum-votes="2" \<o:p></o:p></p><p class=MsoNormal> stonith-enabled="false" \<o:p></o:p></p><p class=MsoNormal> no-quorum-policy="ignore"<o:p></o:p></p><p class=MsoNormal>rsc_defaults $id="rsc-options" \<o:p></o:p></p><p class=MsoNormal> resource-stickiness="200"<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>corosync (1.4.1-4.el6_2.1) <o:p></o:p></p><p class=MsoNormal>pacemaker (1.1.6-3.el6) <o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>Any suggestions are appreciated.<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>Terry.<o:p></o:p></p></div><br clear="both">
Follow us on Twitter:<BR>
http://www.twitter.com/Scribendi_Inc<BR>
</body></html>