SUSE Support

Here When You Need Us

How to edit a Pacemaker cluster resource or cluster configuration.

This document (000020286) is provided subject to the disclaimer at the end of this document.

Environment

SUSE Linux Enterprise High Availability Extension 15
SUSE Linux Enterprise High Availability Extension 12

Situation

When a quick parameter or value change is needed to a cluster primitive.  

Resolution

There are two main methods to modify the Pacemaker cluster configuration often referred to as the cib or cib.xml

Cluster GUI / HAWK 
    Web URL https://<localhost>:7630
    UserName:  hacluster
Once logged in as hacluster user,  browse to menu option CONFIGURATION --> EDIT CONFIGURATION
Click on the "EDIT" icon for the cluster resource you want to edit or modify.   
Once done with edits, click "APPLY" which will apply changes to the active cib.  This will trigger a one time probe of the modified resource to pick up any changes that were made to the primitive.

CRM shell / text based
The crm shell provides an "edit" function which will invoke the editor (default VI) with the current cib and allow for modification of any values inside the cib and once saved, will apply to the live cluster configuration.  This will trigger a one time probe of the modified resource to pick up any changes that were made to the primitive.
# crm configure edit
You may choose to edit the entire cib (all objects) or a set of objects.  To bring up a single primitive in the editor, use the following command.  
# crm configure edit <primitive name>
You may also choose to edit the xml version of the cib
# crm configure edit xml
As you save your edits,  crm shell will run a quick syntax check (crm configure verify)  and prompt if it detects any errors and allow you to make edits before committing.  

Additional Information

A quick text backup can be taken of your cluster configuration using the following command. 
# crm configure show > /root/cib_backup.txt
To restore a cib from a backup file previously created. 
# crm configure load replace /root/cib_backup.txt
Reference Doc: Loading Cluster resources from a file

Disclaimer

This Support Knowledgebase provides a valuable tool for SUSE customers and parties interested in our products and solutions to acquire information, ideas and learn from one another. Materials are provided for informational, personal or non-commercial use within your organization and are presented "AS IS" WITHOUT WARRANTY OF ANY KIND.

  • Document ID:000020286
  • Creation Date: 11-Jun-2021
  • Modified Date:16-Jun-2021
    • SUSE Linux Enterprise High Availability Extension

< Back to Support Search

For questions or concerns with the SUSE Knowledgebase please contact: tidfeedback[at]suse.com

tick icon

SUSE Support Forums

Get your questions answered by experienced Sys Ops or interact with other SUSE community experts.

tick icon

Support Resources

Learn how to get the most from the technical support you receive with your SUSE Subscription, Premium Support, Academic Program, or Partner Program.

tick icon

Open an Incident

Open an incident with SUSE Technical Support, manage your subscriptions, download patches, or manage user access.