[Linux-HA] crm_attribute question
Johan Hoeke
johan.hoeke at uvt.nl
Wed Apr 16 16:13:30 MDT 2008
Hi,
Looking to change the email adresses of my MailTo resource using
crm_attribute. (heartbeat 2.1.3 on RHEL AS 4)
similar to the question posed here:
http://www.gossamer-threads.com/lists/linuxha/users/46939
where the cib looks like this:
[root at abel ~]# crm_resource -x -r R_MailTo
R_MailTo (heartbeat::ocf:MailTo): Started bernoulli.uvt.nl
raw xml:
<primitive class="ocf" type="MailTo" provider="heartbeat" id="R_MailTo">
<instance_attributes id="R_MailTo_instance_attrs">
<attributes>
<nvpair name="target_role" id="R_MailTo_target_role"
value="started"/>
<nvpair id="id_mailto_email" name="email"
value="name1 at mail.not,name2 at mail.not"/>
<nvpair id="id_mailto_subject" name="subject" value="failover
occured on dloacc cluster!"/>
</attributes>
</instance_attributes>
<instance_attributes id="R_MailTo">
<attributes>
<nvpair name="is_managed" id="R_MailTo-is_managed" value="true"/>
</attributes>
</instance_attributes>
</primitive>
if I do:
[root at abel ~]# crm_attribute --attr-id id_mailto_email
--attr-name=email --attr-value name1 at mail.not,mail2 at mail.not,mail3 at mail.not
I get:
Error setting email=name1 at mail.not,mail2 at mail.not,mail3 at mail.not
(section=crm_config, set=cib-bootstrap-options): missing id or
id-collision detected
Error performing operation: missing id or id-collision detected
I tried --set-name too, same errors.
what am I doing wrong?
TIA!
Johan
ps. yes, I know how to do it w/ cibadmin, tnx ;)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 252 bytes
Desc: OpenPGP digital signature
Url : http://lists.community.tummy.com/pipermail/linux-ha/attachments/20080417/30162185/signature.pgp
More information about the Linux-HA
mailing list