Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- node $id="1ab0690c-5aa0-4d9c-ae4e-b662e0ca54e5" node1
- node $id="645e09b4-aee5-4cec-a241-8bd4e03a78c3" node2 \
- attributes standby="off"
- node $id="c4bf25d7-a6b7-4863-984d-aafd937c0da4" quorumnode \
- attributes standby="on"
- primitive p_drbd_mount2 ocf:linbit:drbd \
- params drbd_resource="mount2" \
- op start interval="0" timeout="240" \
- op stop interval="0" timeout="100" \
- op monitor interval="10" role="Master" timeout="20" \
- op monitor interval="20" role="Slave" timeout="20"
- primitive p_drbd_mount1 ocf:linbit:drbd \
- params drbd_resource="mount1" \
- op start interval="0" timeout="240" \
- op stop interval="0" timeout="100" \
- op monitor interval="10" role="Master" timeout="20" \
- op monitor interval="20" role="Slave" timeout="20"
- primitive p_drbd_vmstore ocf:linbit:drbd \
- params drbd_resource="vmstore" \
- op start interval="0" timeout="240" \
- op stop interval="0" timeout="100" \
- op monitor interval="10" role="Master" timeout="20" \
- op monitor interval="20" role="Slave" timeout="20"
- primitive p_fs_vmstore ocf:heartbeat:Filesystem \
- params device="/dev/drbd0" directory="/mnt/storage/vmstore" fstype="ext4" \
- op start interval="0" timeout="60" \
- op stop interval="0" timeout="60" \
- op monitor interval="20" timeout="40"
- primitive p_libvirt-bin upstart:libvirt-bin \
- op monitor interval="30"
- primitive p_ping ocf:pacemaker:ping \
- params name="p_ping" host_list="192.168.3.1 192.168.3.2" multiplier="1000" \
- op monitor interval="20s"
- primitive p_sysadmin_notify ocf:heartbeat:MailTo \
- params email="me@example.com" \
- params subject="Pacemaker Change" \
- op start interval="0" timeout="10" \
- op stop interval="0" timeout="10" \
- op monitor interval="10" timeout="10"
- primitive p_vm ocf:heartbeat:VirtualDomain \
- params config="/mnt/storage/vmstore/config/vm.xml" \
- meta allow-migrate="false" \
- op start interval="0" timeout="180" \
- op stop interval="0" timeout="180" \
- op monitor interval="10" timeout="30"
- primitive stonithnode1 stonith:external/webpowerswitch \
- params wps_ipaddr="192.168.3.100" wps_port="1" wps_username="xxx" wps_password="xxx" hostname_to_stonith="node1"
- primitive stonithnode2 stonith:external/webpowerswitch \
- params wps_ipaddr="192.168.3.100" wps_port="2" wps_username="xxx" wps_password="xxx" hostname_to_stonith="node2"
- group g_vm p_libvirt-bin p_fs_vmstore p_vm
- ms ms_drbd_crm p_drbd_mount2 \
- meta master-max="1" master-node-max="1" clone-max="2" clone-node-max="1" notify="true"
- ms ms_drbd_mount1 p_drbd_mount1 \
- meta master-max="1" master-node-max="1" clone-max="2" clone-node-max="1" notify="true"
- ms ms_drbd_vmstore p_drbd_vmstore \
- meta master-max="1" master-node-max="1" clone-max="2" clone-node-max="1" notify="true"
- clone cl_ping p_ping \
- meta interleave="true"
- clone cl_sysadmin_notify p_sysadmin_notify
- location loc_not_on_quorumnode g_vm -inf: quorumnode
- location loc_run_on_most_connected g_vm \
- rule $id="loc_run_on_most_connected-rule" p_ping: defined p_ping
- location loc_st_node1 stonithnode1 -inf: node1
- location loc_st_node2 stonithnode2 -inf: node2
- colocation c_drbd_libvirt_vm inf: g_vm ms_drbd_vmstore:Master ms_drbd_mount1:Master ms_drbd_crm:Master
- order o_drbd-fs-vm inf: ms_drbd_vmstore:promote ms_drbd_mount1:promote ms_drbd_crm:promote g_vm:start
- property $id="cib-bootstrap-options" \
- dc-version="1.1.6-9971ebba4494012a93c03b40a2c58ec0eb60f50c" \
- cluster-infrastructure="Heartbeat" \
- stonith-enabled="true" \
- last-lrm-refresh="1334029692" \
- no-quorum-policy="freeze"
- rsc_defaults $id="rsc-options" \
- resource-stickiness="50"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement