On Wed, Apr 25, 2007 at 02:04:42PM -0400, Doug Knight wrote:
> Can someone provide an example of xml to be used with cibadmin to add an
> op tag to an existing master/slave resource? Here's my master/slave
> definition:
> 
>  <master_slave notify="true" id="ms_drbd_7788">
>    <instance_attributes id="ms_drbd_7788_instance_attrs">
>      <attributes>
>        <nvpair id="ms_drbd_7788_clone_max" name="clone_max" value="2"/>
>        <nvpair id="ms_drbd_7788_clone_node_max" name="clone_node_max"
> value="1"/>
>        <nvpair id="ms_drbd_7788_master_max" name="master_max"
> value="1"/>
>        <nvpair id="ms_drbd_7788_master_node_max" name="master_node_max"
> value="1"/>
>        <nvpair name="target_role" id="ms_drbd_7788_target_role"
> value="stopped"/>
>      </attributes>
>    </instance_attributes>
>    <primitive class="ocf" type="drbd" provider="heartbeat"
> id="rsc_drbd_7788">
>      <instance_attributes id="rsc_drbd_7788_instance_attrs">
>        <attributes>
>          <nvpair id="fdb586b1-d439-4dfb-867c-3eefbe5d585f"
> name="drbd_resource" value="pgsql"/>
>          <nvpair name="target_role" id="rsc_drbd_7788:0_target_role"
> value="stopped"/>
>        </attributes>
>      </instance_attributes>
>    </primitive>
>  </master_slave>
> 
> And for example, I'd like to add:
> 
> <op id="drbd_mon_sl"  name="monitor" timeout="60" role="Slave"
> interval="30"/>
> 
> So that I can do:
> 
> cibadmin -U -x add_mon_ssl.xml

I don't think that this is the proper usage. Perhaps you should
check the cibadmin(8) man page. And please let us know if the
examples from it work (they really should) :)

> I've been trying to add it from the command line, and some of my
> attempts are core dumping with the following:
> 
> crm_abort: crm_str_eq: Triggered fatal assert at utils.c:686 : a != b

Well, this may or may not be a problem. An error was caught and
core dumped, as the program running didn't think it could continue
in a meaningful way. Perhaps you could show the backtrace from the
core.

> 
> Thanks,
> Doug
> 
> _______________________________________________
> Linux-HA mailing list
> [email protected]
> http://lists.linux-ha.org/mailman/listinfo/linux-ha
> See also: http://linux-ha.org/ReportingProblems

-- 
Dejan
_______________________________________________
Linux-HA mailing list
[email protected]
http://lists.linux-ha.org/mailman/listinfo/linux-ha
See also: http://linux-ha.org/ReportingProblems

Reply via email to