[Pacemaker] crm_attribute: temporary (lifetime 'reboot') attribute
Andrew Beekhof
andrew at beekhof.net
Fri Nov 1 02:18:21 UTC 2013
On 1 Nov 2013, at 6:50 am, Jason Harley <jharley at redmind.ca> wrote:
> Hello —
>
> I’ve got Pacemaker 1.1.10 (1.1.10+git20130802-1ubuntu1) and Corosync 2.3.0 (2.3.0-1ubuntu4) running in a cluster managing a simple resource group. I would like to create an (arbitrary) attribute that goes away on cluster shutdown/reboot and from reading the man page for crm_attribute it looks like I should be able to do this at the node level.. however, I can’t seem to get it to work. I have tried:
>
>> root at node01:~# crm_attribute -t crm_config --node node01 --lifetime reboot --name leader --update 1
>> root at node01:~# crm_attribute -t crm_config --node node01 --name leader --query
>> scope=crm_config
^^^ this means the second command is looking in the wrong spot.
try adding '--lifetime reboot' to the query command too.
>> name=leader value=(null)
>> Error performing operation: No such device or address
>
> And:
>
>> root at node01:~# crm_attribute -t nodes --node node01 --lifetime reboot --name leader --update 1
>> root at node01:~# crm_attribute -t nodes --node node01 --name leader --query
>> scope=crm_config name=leader value=(null)
>> Error performing operation: No such device or address
>> root at node01:~# crm_attribute --node node01 --name leader —query
>
> Is this kind of "ephemeral” attribute possibly with Pacemaker?
>
> Thanks,
> ./JRH
> _______________________________________________
> Pacemaker mailing list: Pacemaker at oss.clusterlabs.org
> http://oss.clusterlabs.org/mailman/listinfo/pacemaker
>
> Project Home: http://www.clusterlabs.org
> Getting started: http://www.clusterlabs.org/doc/Cluster_from_Scratch.pdf
> Bugs: http://bugs.clusterlabs.org
More information about the Pacemaker
mailing list