Hi all (already posted to linux-ha, but this seems a better place), I am building a 2-nodes iSCSI target, using the following: - Fedora 12 x86_64 - drbd 8.3.8.1 (RPM built from source) - pacemaker 1.0.9.1 (clusterlabs RPM) - corosync 1.2.7 (clusterlabs RPM) - scst/iscsi-scst rev 2071 (compiled from source)
I have built a custom RA (attached) that handles device/target/lun configuration. My pacemaker CIB defines a drbd MS resource, as well as a group containing my iSCSI target resource and a floating IP. Everything is configured x2 for load sharing between the two nodes (see my pacemaker CIB attached). I have defined simple drbd:promote->group:start order constraints as explained is the many howtos. I can successfully migrate/unmigrate my group, and in that case I see group:stop->drbd:demote in the right order. However, if I issue a "node standby", then both actions happen at the same time, and in most cases, my group:stop fails because the underlying (drbd) device has been removed already. Andrew mentions in this thread (http://www.mail-archive.com/pacemaker@oss.clusterlabs.org/msg05629.html ) that this is the normal behavior, because pacemaker hasn't been told to behave differently. Question is: How to tell pacemaker how resources should be stopped/demoted during a node standby ? I have tried these 2 order constraints, with no luck: order ord_grp_iscsi_a_before_drbd0_1 inf: grp_iscsi_a:stop ms_drbd0:demote order ord_grp_iscsi_a_before_drbd0_2 inf: grp_iscsi_a:stop ms_drbd0:stop Any help appreciated. Thanks a ton, cheers. - Patrick - ************************************************************************************** This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error please notify the system manager. postmas...@navixia.com **************************************************************************************
node tstore-a.test.local \ attributes standby="off" node tstore-b.test.local \ attributes standby="off" primitive res_drbd0 ocf:linbit:drbd \ params drbd_resource="drbd0" \ op monitor interval="9s" role="Master" timeout="20s" \ op monitor interval="10s" role="Slave" timeout="20s" \ op start interval="0" timeout="240s" \ op stop interval="0" timeout="100s" primitive res_drbd1 ocf:linbit:drbd \ params drbd_resource="drbd1" \ op monitor interval="9s" role="Master" timeout="20s" \ op monitor interval="10s" role="Slave" timeout="20s" \ op start interval="0" timeout="240s" \ op stop interval="0" timeout="100s" primitive res_ip_a ocf:heartbeat:IPaddr2 \ params ip="10.0.0.241" \ op monitor interval="10s" primitive res_ip_b ocf:heartbeat:IPaddr2 \ params ip="10.0.0.242" \ op monitor interval="10s" primitive res_scst_a ocf:test:scst \ params iqn="iqn.2004-04.com.test:ta" path="/dev/drbd0" allowed_portals="10.0.0.241" chap_username="iscsi" chap_password="************" \ op monitor interval="10s" \ op stop interval="0" timeout="60s" primitive res_scst_b ocf:test:scst \ params iqn="iqn.2004-04.com.test:tb" path="/dev/drbd1" allowed_portals="10.0.0.242" chap_username="iscsi" chap_password="************" \ op monitor interval="10s" \ op stop interval="0" timeout="60s" group grp_iscsi_a res_scst_a res_ip_a \ meta target-role="Started" is-managed="true" group grp_iscsi_b res_scst_b res_ip_b \ meta target-role="Started" is-managed="true" ms ms_drbd0 res_drbd0 \ meta clone-max="2" notify="true" ms ms_drbd1 res_drbd1 \ meta clone-max="2" notify="true" location loc_drbd0-master ms_drbd0 \ rule $id="loc_drbd0-master-rule" $role="master" 1000: #uname eq tstore-a.test.local location loc_drbd1-master ms_drbd1 \ rule $id="loc_drbd1-master-rule" $role="master" 1000: #uname eq tstore-b.test.local colocation col_grp_iscsi_a_on_drbd0_master inf: grp_iscsi_a ms_drbd0:Master colocation col_grp_iscsi_b_on_drbd1_master inf: grp_iscsi_b ms_drbd1:Master order ord_drbd0_before_grp_iscsi_a inf: ms_drbd0:promote grp_iscsi_a:start order ord_drbd1_before_grp_iscsi_b inf: ms_drbd1:promote grp_iscsi_b:start property $id="cib-bootstrap-options" \ dc-version="1.0.9-89bd754939df5150de7cd76835f98fe90851b677" \ cluster-infrastructure="openais" \ expected-quorum-votes="2" \ stonith-enabled="false" \ no-quorum-policy="ignore" \ last-lrm-refresh="1284105358"
scst.pacemaker
Description: scst.pacemaker
_______________________________________________ Pacemaker mailing list: Pacemaker@oss.clusterlabs.org http://oss.clusterlabs.org/mailman/listinfo/pacemaker Project Home: http://www.clusterlabs.org Getting started: http://www.clusterlabs.org/doc/Cluster_from_Scratch.pdf Bugs: http://developerbugs.linux-foundation.org/enter_bug.cgi?product=Pacemaker