[Pacemaker] all pacemaker configuration at one time
Felipe Gutierrez
felipe.o.gutierrez at gmail.com
Fri Feb 22 18:38:07 UTC 2013
Hi all
I have on configuration that I want to push in the pacemaker at one time.
How do I do it? Instead to use crm configure command and type all
configurations?
# crm configure property no-quorum-policy=ignore
# crm configure property stonith-enabled=false
primitive net_conn ocf:pacemaker:ping \
params pidfile="/var/run/ping.pid" \
host_list="192.168.188.1" \
op start interval="0" timeout="60s" \
op stop interval="0" timeout="20s" \
op monitor interval="10s" timeout="60s"
primitive cluster_ip ocf:heartbeat:IPaddr2 \
params ip="192.168.188.20" cidr_netmask="32"\
op monitor interval="10s"
primitive cluster_mon ocf:pacemaker:ClusterMon \
params pidfile="/var/run/crm_mon.pid" htmlfile="/var/tmp/crm_mon.html"\
op start interval="0" timeout="20s"\
op stop interval="0" timeout="20s"\
op monitor interval="10s" timeout="20s"
primitive drbd_r8 ocf:linbit:drbd \
params drbd_resource="r8"\
op monitor interval="60s" role="Master"\
op monitor interval="59s" role="Slave"
primitive drbd_r8_fs ocf:heartbeat:Filesystem \
params device="/dev/drbd8" directory="/mnt/drbd8" fstype="ext3"
clone clone_net_conn net_conn \
meta clone-node-max="1" clone-max="2"
ms drbd_r8_ms drbd_r8 \
meta master-max="1" master-node-max="1" clone-max="2" clone-node-max="1"
notify="true"
location ms_drbd_r8-no-conn drbd_r8_ms \
rule $id="ms_drbd_r8-no-conn-rule" $role="Master" -inf: not_defined pingd
or pingd number:lte 0
colocation fs_on_drbd inf: drbd_r8_fs drbd_r8_ms:Master
order fs_after_drbd inf: drbd_r8_ms:promote drbd_r8_fs:start
Thanks in advance!
Felipe
--
*--
-- Felipe Oliveira Gutierrez
-- Felipe.o.Gutierrez at gmail.com
-- https://sites.google.com/site/lipe82/Home/diaadia*
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.clusterlabs.org/pipermail/pacemaker/attachments/20130222/f3a98f67/attachment-0007.html>
More information about the Pacemaker
mailing list