<div dir="ltr">Any ideas? :-(</div><div class="gmail_extra"><br><br><div class="gmail_quote">2013/6/25 Саша Александров <span dir="ltr"><<a href="mailto:shurrman@gmail.com" target="_blank">shurrman@gmail.com</a>></span><br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Hi all!<div><br></div><div>I am setting up a new cluster on OracleLinux 6.4 (well, it is CentOS 6.4).</div>
<div>I went through <a href="http://clusterlabs.org/quickstart-redhat.html" target="_blank">http://clusterlabs.org/quickstart-redhat.html</a><br>
Then I installed DRBD 8.4.2 from elrepo.</div><div>This setup is unusable :-( with DRBD 8.4.2.</div><div>I created three DRBD resources:</div><div><br></div><div><div>cat /proc/drbd</div><div>version: 8.4.2 (api:1/proto:86-101)</div>
<div>GIT-hash: 7ad5f850d711223713d6dcadc3dd48860321070c build by root@flashfon1, 2013-06-24 22:08:41</div><div> 0: cs:Connected ro:Primary/Secondary ds:UpToDate/UpToDate C r-----</div><div> ns:97659171 nr:0 dw:36 dr:97660193 al:1 bm:5961 lo:0 pe:0 ua:0 ap:0 ep:1 wo:f oos:0</div>
<div> 1: cs:Connected ro:Primary/Secondary ds:UpToDate/UpToDate C r-----</div><div> ns:292421653 nr:16 dw:16 dr:292422318 al:0 bm:17848 lo:0 pe:0 ua:0 ap:0 ep:1 wo:f oos:0</div><div> 2: cs:Connected ro:Primary/Secondary ds:UpToDate/UpToDate C r-----</div>
<div> ns:292421600 nr:8 dw:8 dr:292422265 al:0 bm:17848 lo:0 pe:0 ua:0 ap:0 ep:1 wo:f oos:0</div><div><br></div><div>It appeared that drbd resource-agent script did not work. Debugging showed that check_crm_feature_set() function always returned zeroes. Ok, just added 'exit' as its first line for now.</div>
<div><br></div><div>Next, I created three drbd resources in pacemaker, three master-slave sets, three filesystem resources (and ip resources, but they are no problem):</div><div><br></div><div><div>
pcs status</div><div>Last updated: Tue Jun 25 21:20:17 2013</div><div>Last change: Tue Jun 25 02:46:25 2013 via crm_resource on flashfon1</div><div>Stack: cman</div><div>Current DC: flashfon1 - partition with quorum</div>
<div>Version: 1.1.8-7.el6-394e906</div><div>2 Nodes configured, unknown expected votes</div><div>11 Resources configured.</div><div><br></div><div><br></div><div>Online: [ flashfon1 flashfon2 ]</div><div><br></div><div>Full list of resources:</div>
<div><br></div><div> Master/Slave Set: ms_wsoft [drbd_wsoft]</div><div> Masters: [ flashfon1 ]</div><div> Slaves: [ flashfon2 ]</div><div> Master/Slave Set: ms_oradata [drbd_oradata]</div><div> Slaves: [ flashfon1 flashfon2 ]</div>
<div> Master/Slave Set: ms_flash [drbd_flash]</div><div> Slaves: [ flashfon1 flashfon2 ]</div><div> Resource Group: WcsGroup</div><div> wcs_vip_local (ocf::heartbeat:IPaddr2): Started flashfon1</div><div>
wcs_fs (ocf::heartbeat:Filesystem): Started flashfon1</div><div> Resource Group: OraGroup</div><div> ora_vip_local (ocf::heartbeat:IPaddr2): Started flashfon1</div><div> oradata_fs (ocf::heartbeat:Filesystem): Stopped</div>
<div> oraflash_fs (ocf::heartbeat:Filesystem): Stopped</div><div><br></div><div>See, only one master-slave set is recognizing DRBD state!</div><div><br></div><div>Resources are configured identically in CIB (except for drbd resource name parameter):</div>
<div><br></div><div><div> <master id="ms_wsoft"></div><div> <primitive class="ocf" id="drbd_wsoft" provider="linbit" type="drbd"></div>
<div> <instance_attributes id="drbd_wsoft-instance_attributes"></div><div> <nvpair id="drbd_wsoft-instance_attributes-drbd_resource" name="drbd_resource" value="wsoft"/></div>
<div> </instance_attributes></div><div> <operations></div><div> <op id="drbd_wsoft-interval-60s" interval="60s" name="monitor"/></div><div> </operations></div>
<div> </primitive></div><div> <meta_attributes id="ms_wsoft-meta_attributes"></div><div> <nvpair id="ms_wsoft-meta_attributes-master-max" name="master-max" value="1"/></div>
<div> <nvpair id="ms_wsoft-meta_attributes-master-node-max" name="master-node-max" value="1"/></div><div> <nvpair id="ms_wsoft-meta_attributes-clone-max" name="clone-max" value="2"/></div>
<div> <nvpair id="ms_wsoft-meta_attributes-clone-node-max" name="clone-node-max" value="1"/></div><div> <nvpair id="ms_wsoft-meta_attributes-notify" name="notify" value="true"/></div>
<div> </meta_attributes></div><div> </master></div><div> <master id="ms_oradata"></div><div> <primitive class="ocf" id="drbd_oradata" provider="linbit" type="drbd"></div>
<div> <instance_attributes id="drbd_oradata-instance_attributes"></div><div> <nvpair id="drbd_oradata-instance_attributes-drbd_resource" name="drbd_resource" value="oradata"/></div>
<div> </instance_attributes></div><div> <operations></div><div> <op id="drbd_oradata-interval-60s" interval="60s" name="monitor"/></div><div> </operations></div>
<div> </primitive></div><div> <meta_attributes id="ms_oradata-meta_attributes"></div><div> <nvpair id="ms_oradata-meta_attributes-master-max" name="master-max" value="1"/></div>
<div> <nvpair id="ms_oradata-meta_attributes-master-node-max" name="master-node-max" value="1"/></div><div> <nvpair id="ms_oradata-meta_attributes-clone-max" name="clone-max" value="2"/></div>
<div> <nvpair id="ms_oradata-meta_attributes-clone-node-max" name="clone-node-max" value="1"/></div><div> <nvpair id="ms_oradata-meta_attributes-notify" name="notify" value="true"/></div>
<div> </meta_attributes></div><div> </master></div><div><br>I am stuck. :-((((</div><div><br></div><div>Best regards,</div><div>Alexandr A. Alexandrov</div></div></div></div>
</div>
</blockquote></div><br><br clear="all"><div><br></div>-- <br>С уважением, ААА.
</div>