[Pacemaker] How to add new resources to the production cluster
Schmidt, Florian
florian.schmidt at centric.eu
Thu Sep 10 09:44:32 UTC 2009
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:
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 ;)
reload the config into the cluster with cibadmin --cib_replace
--xml-file tmp.xml
Questions:
- tmp.xml contains both the config and the status section. Does this
cause trouble, when replacing the old configuration?
- do I have to increment the admin_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)?
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.
More information about the Pacemaker
mailing list