Hi Jake,<br><br>thanks for reply!<br><br>To create my xml file I used the first configuration and this command:<br><br>cibadmin -Q > Documentos/pacemaker-drbd7-02.xml<br><br>is that right? I mean, the better way.<br><br>
Thanks,<br>Felipe<br><br><div class="gmail_quote">On Fri, Feb 22, 2013 at 3:45 PM, Jake Smith <span dir="ltr"><<a href="mailto:jsmith@argotec.com" target="_blank">jsmith@argotec.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div class="im"><br>
----- Original Message -----<br>
> From: "Felipe Gutierrez" <<a href="mailto:felipe.o.gutierrez@gmail.com">felipe.o.gutierrez@gmail.com</a>><br>
> To: "The Pacemaker cluster resource manager" <<a href="mailto:pacemaker@oss.clusterlabs.org">pacemaker@oss.clusterlabs.org</a>>, <a href="mailto:pacemaker@clusterlabs.org">pacemaker@clusterlabs.org</a><br>
> Sent: Friday, February 22, 2013 1:38:07 PM<br>
> Subject: [Pacemaker] all pacemaker configuration at one time<br>
><br>
><br>
> Hi all<br>
><br>
> I have on configuration that I want to push in the pacemaker at one<br>
> time. How do I do it? Instead to use crm configure command and type<br>
> all configurations?<br>
><br>
<br>
</div>crm configure load [replace|update] mycrmconfigfile<br>
<br>
More here:<br>
crm(live)configure# help load<br>
<br>
Load a part of configuration (or all of it) from a local file or<br>
a network URL. The `replace` method replaces the current<br>
configuration with the one from the source. The `update` tries to<br>
import the contents into the current configuration.<br>
The file may be a CLI file or an XML file.<br>
<br>
Usage:<br>
...............<br>
load [xml] <method> URL<br>
<br>
method :: replace | update<br>
...............<br>
Example:<br>
...............<br>
load xml update myfirstcib.xml<br>
load xml replace <a href="http://storage.big.com/cibs/bigcib.xml" target="_blank">http://storage.big.com/cibs/bigcib.xml</a><br>
...............<br>
<br>
crm(live)configure#<br>
<br>
<br>
HTH<br>
<br>
Jake<br>
<div><div class="h5"><br>
><br>
><br>
> # crm configure property no-quorum-policy=ignore<br>
> # crm configure property stonith-enabled=false<br>
><br>
><br>
> primitive net_conn ocf:pacemaker:ping \<br>
> params pidfile="/var/run/ping.pid" \<br>
> host_list="192.168.188.1" \<br>
> op start interval="0" timeout="60s" \<br>
> op stop interval="0" timeout="20s" \<br>
> op monitor interval="10s" timeout="60s"<br>
><br>
> primitive cluster_ip ocf:heartbeat:IPaddr2 \<br>
> params ip="192.168.188.20" cidr_netmask="32"\<br>
> op monitor interval="10s"<br>
> primitive cluster_mon ocf:pacemaker:ClusterMon \<br>
> params pidfile="/var/run/crm_mon.pid"<br>
> htmlfile="/var/tmp/crm_mon.html"\<br>
> op start interval="0" timeout="20s"\<br>
> op stop interval="0" timeout="20s"\<br>
> op monitor interval="10s" timeout="20s"<br>
><br>
> primitive drbd_r8 ocf:linbit:drbd \<br>
> params drbd_resource="r8"\<br>
> op monitor interval="60s" role="Master"\<br>
> op monitor interval="59s" role="Slave"<br>
><br>
> primitive drbd_r8_fs ocf:heartbeat:Filesystem \<br>
> params device="/dev/drbd8" directory="/mnt/drbd8" fstype="ext3"<br>
><br>
> clone clone_net_conn net_conn \<br>
> meta clone-node-max="1" clone-max="2"<br>
><br>
> ms drbd_r8_ms drbd_r8 \<br>
> meta master-max="1" master-node-max="1" clone-max="2"<br>
> clone-node-max="1" notify="true"<br>
> location ms_drbd_r8-no-conn drbd_r8_ms \<br>
> rule $id="ms_drbd_r8-no-conn-rule" $role="Master" -inf: not_defined<br>
> pingd or pingd number:lte 0<br>
> colocation fs_on_drbd inf: drbd_r8_fs drbd_r8_ms:Master<br>
> order fs_after_drbd inf: drbd_r8_ms:promote drbd_r8_fs:start<br>
><br>
> Thanks in advance!<br>
> Felipe<br>
><br>
> --<br>
> --<br>
> -- Felipe Oliveira Gutierrez<br>
> -- <a href="mailto:Felipe.o.Gutierrez@gmail.com">Felipe.o.Gutierrez@gmail.com</a><br>
> -- <a href="https://sites.google.com/site/lipe82/Home/diaadia" target="_blank">https://sites.google.com/site/lipe82/Home/diaadia</a><br>
</div></div>> _______________________________________________<br>
> Pacemaker mailing list: <a href="mailto:Pacemaker@oss.clusterlabs.org">Pacemaker@oss.clusterlabs.org</a><br>
> <a href="http://oss.clusterlabs.org/mailman/listinfo/pacemaker" target="_blank">http://oss.clusterlabs.org/mailman/listinfo/pacemaker</a><br>
><br>
> Project Home: <a href="http://www.clusterlabs.org" target="_blank">http://www.clusterlabs.org</a><br>
> Getting started:<br>
> <a href="http://www.clusterlabs.org/doc/Cluster_from_Scratch.pdf" target="_blank">http://www.clusterlabs.org/doc/Cluster_from_Scratch.pdf</a><br>
> Bugs: <a href="http://bugs.clusterlabs.org" target="_blank">http://bugs.clusterlabs.org</a><br>
><br>
<br>
_______________________________________________<br>
Pacemaker mailing list: <a href="mailto:Pacemaker@oss.clusterlabs.org">Pacemaker@oss.clusterlabs.org</a><br>
<a href="http://oss.clusterlabs.org/mailman/listinfo/pacemaker" target="_blank">http://oss.clusterlabs.org/mailman/listinfo/pacemaker</a><br>
<br>
Project Home: <a href="http://www.clusterlabs.org" target="_blank">http://www.clusterlabs.org</a><br>
Getting started: <a href="http://www.clusterlabs.org/doc/Cluster_from_Scratch.pdf" target="_blank">http://www.clusterlabs.org/doc/Cluster_from_Scratch.pdf</a><br>
Bugs: <a href="http://bugs.clusterlabs.org" target="_blank">http://bugs.clusterlabs.org</a><br>
</blockquote></div><br><br clear="all"><br>-- <br><b>--<br>-- Felipe Oliveira Gutierrez<br>-- <a href="mailto:Felipe.o.Gutierrez@gmail.com" target="_blank">Felipe.o.Gutierrez@gmail.com</a><br>-- <a href="https://sites.google.com/site/lipe82/Home/diaadia" target="_blank">https://sites.google.com/site/lipe82/Home/diaadia</a></b>