DOKK / manpages / debian 10 / pacemaker-cli-utils / crm_shadow.8.en
PACEMAKER(8) System Administration Utilities PACEMAKER(8)

Pacemaker - Part of the Pacemaker cluster resource manager

crm_shadow (query|command) [modifiers]

crm_shadow - Perform configuration changes in a sandbox before updating the live cluster.

Sets up an environment in which configuration tools (cibadmin, crm_resource, etc) work offline instead of against a live cluster, allowing changes to be previewed and tested for side-effects.

-?, --help
This text
-$, --version
Version information
Increase debug output

Indicate the active shadow copy
Display the contents of the active shadow copy
Edit the contents of the active shadow copy with your favorite $EDITOR
Display the changes in the active shadow copy
Display the location of the active shadow copy file

Create the named shadow copy of the active cluster configuration
Create the named shadow copy with an empty cluster configuration. Optional: --validate-with
Upload the contents of the named shadow copy to the cluster
Delete the contents of the named shadow copy
Recreate the named shadow copy from the active cluster configuration
(Advanced) Switch to the named shadow copy

(Advanced) Force the action to be performed
(Advanced) Don't spawn a new shell
(Advanced) Upload the entire CIB, including status, with --commit
(Advanced) Create an older configuration version

Create a blank shadow configuration:

# crm_shadow --create-empty myShadow

Create a shadow configuration from the running cluster:

# crm_shadow --create myShadow

Display the current shadow configuration:

# crm_shadow --display

Discard the current shadow configuration (named myShadow):

# crm_shadow --delete myShadow --force

Upload the current shadow configuration (named myShadow) to the running cluster:

# crm_shadow --commit myShadow

Written by Andrew Beekhof

Report bugs to users@clusterlabs.org

August 2022 Pacemaker 2.0.1