[Pacemaker] Dont start LVM or FS on DRBD Standalone
Pierre BLONDEAU
pierre.blondeau at unicaen.fr
Thu May 19 07:25:43 UTC 2011
Hi,
Can i detect the standalone connexion state of drbd with the primitive
ocf:linbit:drbd ?
Regards
Le 17/05/2011 10:49, Pierre BLONDEAU a écrit :
> Hi,
>
> I can't find how to configure pacemaker to don't put drbd on primary
> mode when one of my nodes is standalone.
>
> If i have a standalone drbd server. The second start and became
> standalone. So pacemaker can put the second node primary and start lvm,
> iscsi, etc ... And i have a split-brainwith my data.
>
> My goal isn't to stop the lvm, the iscsi, etc. ... when a node enters
> standalone mode, just don't run in primary mode at startup and so don't
> start the lvm, the iscsi, etc. ...
>
> Thank you in advance for your answers
> Regards
>
> My configuration :
> node leia
> node luke
> primitive drbd_data ocf:linbit:drbd \
> operations $id="drbd_data-operations" \
> op monitor interval="20" role="Slave" timeout="20" \
> op monitor interval="10" role="Master" timeout="20" \
> params drbd_resource="data"
> primitive iscsi_c3po_disk ocf:heartbeat:iSCSILogicalUnit \
> operations $id="iscsi_c3po_disk-operations" \
> op monitor interval="10" timeout="10" \
> params target_iqn="iqn.iscsi:c3po" lun="0" path="/dev/data/c3po-disk"
> scsi_sn="c3po-disk" additional_parameters="type=blockio"
> primitive iscsi_c3po_target ocf:heartbeat:iSCSITarget \
> operations $id="iscsi_c3po_target-operations" \
> op monitor interval="10" timeout="10" \
> params iqn="iqn.iscsi:c3po"
> primitive lvm_data ocf:heartbeat:LVM \
> operations $id="lvm_data-operations" \
> op monitor interval="10" timeout="30" \
> params volgrpname="data"
> primitive ping_xen ocf:pacemaker:pingd \
> operations $id="ping_xen-operations" \
> op monitor interval="10" timeout="60" \
> params host_list="192.168.7.4 192.168.7.5" multiplier="1000"
> attempts="2" timeout="5" dampen="2"
> group iscsi_c3po_group iscsi_c3po_target iscsi_c3po_disk
> ms drbd_data_master drbd_data \
> meta master-max="2" target-role="started" notify="true" interleave="true"
> clone iscsi_c3po_clone iscsi_c3po_group \
> meta interleave="true" target-role="started"
> clone lvm_data_clone lvm_data \
> meta interleave="true" target-role="started"
> clone ping_xen_clone ping_xen \
> meta interleave="true" target-role="started"
> location drbd_data_master-no-ping_xen drbd_data_master \
> rule $id="drbd_data_master-no-ping_xen-rule" $role="Master" -inf:
> not_defined pingd or pingd number:lte 0
> colocation iscsi_c3po_clone-on-lvm_data_clone : lvm_data_clone
> iscsi_c3po_clone
> colocation lvm_data_clone-on-drbd_data_master : drbd_data_master:Master
> lvm_data_clone
> order drbd_data_master-before-lvm_data_clone inf:
> drbd_data_master:promote lvm_data_clone:start
> order lvm_data_clone-before-iscsi_c3po_clone inf: lvm_data_clone:start
> iscsi_c3po_clone:start
> property $id="cib-bootstrap-options" \
> dc-version="1.0.9-74392a28b7f31d7ddc86689598bd23114f58978b" \
> cluster-infrastructure="openais" \
> expected-quorum-votes="2" \
> no-quorum-policy="ignore" \
> stonith-enabled="false" \
> last-lrm-refresh="1305556523"
>
>
>
>
>
> _______________________________________________
> Pacemaker mailing list: Pacemaker at 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
--
----------------------------------------------
Pierre BLONDEAU
Administrateur Systèmes & réseaux
Université de Caen
Laboratoire GREYC, Département d'informatique
tel : 02 31 56 73 38
bureau : Campus 2, Science 3, 406
----------------------------------------------
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 5255 bytes
Desc: S/MIME Cryptographic Signature
URL: <https://lists.clusterlabs.org/pipermail/pacemaker/attachments/20110519/d7c570fe/attachment-0004.p7s>
More information about the Pacemaker
mailing list