Hi everybody,
I've got a question probably very easy for someone I cant' find a proper answer
in the official doc.
In details, if I refer to the official pacemaker documentation related to the
command "crm configure primitive" I find what follows:
usage: primitive <rsc> [<class>:[<provider>:]]<type>
[params <param>=<value> [<param>=<value>...]]
[meta <attribute>=<value> [<attribute>=<value>...]]
[utilization <attribute>=<value> [<attribute>=<value>...]]
[operations id_spec
[op op_type [<attribute>=<value>...] ...]]
If I launch the following command by CLI:
crm configure primitive resource_vrt_ip ocf:heartbeat:IPaddr2 params
ip="192.168.15.73" nic="bond0" meta target-role="Stopped"
multiple-active="stop_start" migration-treshold="3" failure-timeout="0"
operations XXXXXXXXX op name="monitor" interval="180" timeout="60"
I get the following answer: "ERROR: operations: only single $id or $id-ref
attribute is allowed"
Now, I can't get the meaning of the parameter "id_spec" mentioned in the usage
output. Could someone help me, or tell me what shell I write instead of
XXXXXXXX in order to get the following output in the cib??
<primitive class="ocf" id="resource_vrt_ip" provider="heartbeat" type="IPaddr2">
<instance_attributes id="resource_vrt_ip-instance_attributes">
<nvpair id="resource_vrt_ip-instance_attributes-ip" name="ip"
value="192.168.15.73"/>
<nvpair id="resource_vrt_ip-instance_attributes-nic" name="nic"
value="bond0"/>
</instance_attributes>
<meta_attributes id="resource_vrt_ip-meta_attributes">
<nvpair id="resource_vrt_ip-meta_attributes-target-role"
name="target-role" value="Stopped"/>
<nvpair id="resource_vrt_ip-meta_attributes-multiple-active"
name="multiple-active" value="stop_start"/>
<nvpair id="resource_vrt_ip-meta_attributes-migration-threshold"
name="migration-threshold" value="3"/>
<nvpair id="resource_vrt_ip-meta_attributes-failure-timeout"
name="failure-timeout" value="0"/>
</meta_attributes>
<operations>
<op id="resource_vrt_ip-startup" interval="180" name="monitor"
timeout="60s"/>
</operations>
</primitive>
P.S. I'd prefer not to load a XML file, I already tried it and it works but it
is not the purpose of my help request
Thanks in advance
Guglielmo Abbruzzese
Project Leader
RESI Informatica S.p.A.
Via Pontina Km 44,044
04011 Aprilia (LT) - Italy
Tel: +39 0692710 369
Fax: +39 0692710 208
Email: [email protected]
Web: www.resi.it
_______________________________________________
Linux-HA mailing list
[email protected]
http://lists.linux-ha.org/mailman/listinfo/linux-ha
See also: http://linux-ha.org/ReportingProblems