[Pacemaker] all pacemaker configuration at one time
Jake Smith
jsmith at argotec.com
Fri Feb 22 18:45:41 UTC 2013
----- Original Message -----
> From: "Felipe Gutierrez" <felipe.o.gutierrez at gmail.com>
> To: "The Pacemaker cluster resource manager" <pacemaker at oss.clusterlabs.org>, pacemaker at clusterlabs.org
> Sent: Friday, February 22, 2013 1:38:07 PM
> Subject: [Pacemaker] all pacemaker configuration at one time
>
>
> 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 load [replace|update] mycrmconfigfile
More here:
crm(live)configure# help load
Load a part of configuration (or all of it) from a local file or
a network URL. The `replace` method replaces the current
configuration with the one from the source. The `update` tries to
import the contents into the current configuration.
The file may be a CLI file or an XML file.
Usage:
...............
load [xml] <method> URL
method :: replace | update
...............
Example:
...............
load xml update myfirstcib.xml
load xml replace http://storage.big.com/cibs/bigcib.xml
...............
crm(live)configure#
HTH
Jake
>
>
> # 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
> _______________________________________________
> 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://bugs.clusterlabs.org
>
More information about the Pacemaker
mailing list