On Tuesday 18 September 2007, Junko IKEDA wrote:
> Hello,
>
> This is just a quick check;
> If one value which is defined in attributes/nvpair tag is changed with
> cibadmin command,
> The resource related to the value will restart.
> Is it a feature?
I guess it is a must. If not the resource will not work with the new 
parameters.

>
> <instance_attributes id="attr-id">
>  <attributes>
>   <nvpair id = "pair-id" name = "pair-name" value = "Right-Here"/>
>  </attributes>
> </instance_attributes>
>
> is there any way to change that value without restarting of the resource?
This is not tested - but i would think this may work:
1. set the resource to "unmanaged"
crm_resource -r <resource> --meta -p "is_managed" -v "false"
2. change the resource parameters
crm_resource -r <resource> -p "pair-name" -v "Right-Here-Change"
3. set resource to managed again
crm_resource -r <resource> --meta -p "is_managed" -v "true"

Btw this is also the major difference between resource meta-attributes and 
resource parameters:
- change in meta attributes usually do not (but it may - 'target_role' affects 
the start/stop status) stop (or start) the resource.
- change in resource paramater ---> alway stop/restart resource

That's why you should use meta-attribite for parameters which concernt the CRM 
(like is_managed, target_role, resource_stickiness, priority, ...).

Btw. the --meta option was introduced with version 2.1.1. so 2.0.8 and before 
do not have it.

kind regards Max
_______________________________________________
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