[Pacemaker] crm_attribute: temporary (lifetime 'reboot') attribute

Jason Harley jharley at redmind.ca
Thu Oct 31 15:50:31 EDT 2013


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  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



More information about the Pacemaker mailing list