[Pacemaker] How to add new resources to the production cluster

Dejan Muhamedagic dejanmm at fastmail.fm
Fri Sep 11 06:01:46 EDT 2009


Hi,

On Thu, Sep 10, 2009 at 11:44:32AM +0200, Schmidt, Florian wrote:
> Hi list, 
> 
> It's my task to add a new resource (and also the corresponding drbddisk
> and Filesystem resources) to our production cluster.
> 
> Is this the right way to do this on pacemaker 0.6.5-8.2:

You should upgrade to pacemaker 1.0.5, if you can.

> cibadmin -Q > tmp.xml
> 
> edit the tmp.xml
> 	-add one resource group for both the drbddisk and Filesystem-RA,
> just like I did it before
> 	- add one primitive for the main resource
> 	- add the collocation- and ordering constraints
> 	- increase the admin_epoch #
> 
> check the tmp.xml file with crm_verify
> 
> check the config with ptest and try to understand the .dot-graph ;)

Good luck :)

> reload the config into the cluster with cibadmin --cib_replace
> --xml-file tmp.xml

Right.

> Questions:
> - tmp.xml contains both the config and the status section. Does this
> cause trouble, when replacing the old configuration?

Yes, you should remove the status section.

> - do I have to increment the admin_epoch #?

Either that or the epoch attribute. The update must be newer than
the running configuration. admin_epoch overrides epoch.

> - Is there a command to get both the resources-section and the
> constraints-section (which I think are the sections you have to modify
> mostly), without the status-section (something like cibadmin -Q -o
> configuration)?

I'm not sure. I think that you can get e.g. just resources or
just constraints, but not both without the status section.

Thanks,

Dejan

> 
> TIA
> 
> 
> Florian
> Centric altro GmbH
> Mittelbacher Str. 3
> 09224 Chemnitz
> Germany
> 
> Phone  +49 371 8817 015
> Fax    +49 371 8817 460
> Mobile 
> 
> Email  florian.schmidt at centric.eu 
> Web    www.centric-it.de
> 
> Neue E-Mail-Adresse per 1. August 2009: mailto:florian.schmidt at centric.eu
> 
> 
> Special Expertise Partner SAP for Human Capital Management
> 
> 
> Geschaftsfuhrung: Gerard Sanderink ~ Sitz der Gesellschaft: Oberhausen
> Registergericht: Duisburg HRB 17807 ~ Steuer-Nr.: 124/5704/1303 ~ USt.-Id.-Nr.: DE246840541 
> 
> The information included in this message is personal and/or confidential and intended exclusively for the addressees as stated. This message and/or the accompanying documents may contain confidential information and should be handled accordingly. If you are not the intended reader of this message, we urgently request that you notify Centric immediately and that you delete this e-mail and any copies of it from your system and destroy any printouts immediately. It is forbidden to distribute, reproduce, use or disclose the information in this e-mail to third parties without obtaining prior permission from Centric. We expressly point out that there are risks associated with the use of e-mail. Centric and the companies within the group shall not accept any liability whatsoever for damage resulting from the use of e-mail. Legally binding obligations can only arise for Centric by means of a written instrument, signed by an authorized representative of Centric. 
> 
> 
> _______________________________________________
> Pacemaker mailing list
> Pacemaker at oss.clusterlabs.org
> http://oss.clusterlabs.org/mailman/listinfo/pacemaker




More information about the Pacemaker mailing list