Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
<cib crm_feature_set="3.0.14" validate-with="pacemaker-2.10" epoch="13" num_updates="0" admin_epoch="0" cib-last-written="Sat Dec 8 23:22:16 2018" update-origin="drbd0" update-client="cibadmin" update-user="root" have-quorum="1">
<configuration>
<crm_config>
<cluster_property_set id="cib-bootstrap-options">
<nvpair id="cib-bootstrap-options-have-watchdog" name="have-watchdog" value="false"/>
<nvpair id="cib-bootstrap-options-dc-version" name="dc-version" value="1.1.19-8.el7_6.1-c3c624ea3d"/>
<nvpair id="cib-bootstrap-options-cluster-infrastructure" name="cluster-infrastructure" value="corosync"/>
<nvpair id="cib-bootstrap-options-cluster-name" name="cluster-name" value="nfs_cluster"/>
<nvpair id="cib-bootstrap-options-stonith-enabled" name="stonith-enabled" value="false"/>
</cluster_property_set>
</crm_config>
<nodes>
<node id="1" uname="drbd0"/>
<node id="2" uname="drbd1"/>
</nodes>
<resources>
<master id="ms_drbd">
<primitive class="ocf" id="res_drbd" provider="linbit" type="drbd">
<instance_attributes id="res_drbd-instance_attributes">
<nvpair id="res_drbd-instance_attributes-drbd_resource" name="drbd_resource" value="r0"/>
<nvpair id="res_drbd-instance_attributes-drbdconf" name="drbdconf" value="/etc/drbd.conf"/>
</instance_attributes>
<operations>
<op id="res_drbd-demote-interval-0s" interval="0s" name="demote" timeout="90"/>
<op id="res_drbd-monitor-interval-60s" interval="60s" name="monitor"/>
<op id="res_drbd-notify-interval-0s" interval="0s" name="notify" timeout="90"/>
<op id="res_drbd-promote-interval-0s" interval="0s" name="promote" timeout="90"/>
<op id="res_drbd-reload-interval-0s" interval="0s" name="reload" timeout="30"/>
<op id="res_drbd-start-interval-0s" interval="0s" name="start" timeout="240"/>
<op id="res_drbd-stop-interval-0s" interval="0s" name="stop" timeout="100"/>
</operations>
</primitive>
<meta_attributes id="ms_drbd-meta_attributes">
<nvpair id="ms_drbd-meta_attributes-master-node-max" name="master-node-max" value="1"/>
<nvpair id="ms_drbd-meta_attributes-clone-max" name="clone-max" value="2"/>
<nvpair id="ms_drbd-meta_attributes-notify" name="notify" value="true"/>
<nvpair id="ms_drbd-meta_attributes-master-max" name="master-max" value="1"/>
<nvpair id="ms_drbd-meta_attributes-clone-node-max" name="clone-node-max" value="1"/>
</meta_attributes>
</master>
<group id="group-nfs">
<primitive class="ocf" id="elastic_fs" provider="heartbeat" type="Filesystem">
<instance_attributes id="elastic_fs-instance_attributes">
<nvpair id="elastic_fs-instance_attributes-device" name="device" value="/dev/drbd0"/>
<nvpair id="elastic_fs-instance_attributes-directory" name="directory" value="/elasticsearch"/>
<nvpair id="elastic_fs-instance_attributes-fstype" name="fstype" value="xfs"/>
</instance_attributes>
<operations>
<op id="elastic_fs-monitor-interval-20s" interval="20s" name="monitor" timeout="40s"/>
<op id="elastic_fs-notify-interval-0s" interval="0s" name="notify" timeout="60s"/>
<op id="elastic_fs-start-interval-0s" interval="0s" name="start" timeout="60s"/>
<op id="elastic_fs-stop-interval-0s" interval="0s" name="stop" timeout="60s"/>
</operations>
</primitive>
<primitive class="systemd" id="res_nfs" type="nfs-server">
<operations>
<op id="res_nfs-monitor-interval-60s" interval="60s" name="monitor"/>
<op id="res_nfs-start-interval-0s" interval="0s" name="start" timeout="100"/>
<op id="res_nfs-stop-interval-0s" interval="0s" name="stop" timeout="100"/>
</operations>
</primitive>
<primitive class="ocf" id="VIP" provider="heartbeat" type="IPaddr2">
<instance_attributes id="VIP-instance_attributes">
<nvpair id="VIP-instance_attributes-cidr_netmask" name="cidr_netmask" value="24"/>
<nvpair id="VIP-instance_attributes-ip" name="ip" value="192.168.0.130"/>
<nvpair id="VIP-instance_attributes-nic" name="nic" value="ens192"/>
</instance_attributes>
<operations>
<op id="VIP-monitor-interval-30s" interval="30s" name="monitor"/>
<op id="VIP-start-interval-0s" interval="0s" name="start" timeout="20s"/>
<op id="VIP-stop-interval-0s" interval="0s" name="stop" timeout="20s"/>
</operations>
</primitive>
</group>
</resources>
<constraints>
<rsc_colocation id="colocation-ms_drbd-group-nfs-INFINITY" rsc="ms_drbd" rsc-role="Master" score="INFINITY" with-rsc="group-nfs" with-rsc-role="Started"/>
</constraints>
</configuration>
<status/>
</cib>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.