Migrate from crmsh to pcs¶
From Ubuntu 23.04 Lunar Lobster onwards, pcs
is the recommended and supported tool for setting up and managing Corosync/Pacemaker clusters in Ubuntu. This is the final Ubuntu release where crmsh
will be supported (but not recommended) so users will have time to migrate away from crmsh
.
The migration from crmsh
to pcs
is not very complex since both have a similar command-line interface (CLI). Here is a direct mapping of some useful commands from crmsh
to pcs
.
Action |
|
|
---|---|---|
Show configuration (raw XML) |
|
|
Show configuration (human-friendly) |
|
|
Show cluster status |
|
|
Put a node in standby mode |
|
|
Remove a node from standby mode |
|
|
Set cluster property |
|
|
List resource agent classes |
|
|
List available resource agents by standard |
|
`pcs resource agents ocf |
List available resource agents by OCF provider |
|
|
List available resource agent parameters |
|
|
Show available fence agent parameters |
|
|
Create a resource |
|
|
Show configuration of all resources |
|
|
Show configuration of one resource |
|
|
Show configuration of fencing resources |
|
|
Start a resource |
|
|
Stop a resource |
|
|
Remove a resource |
|
|
Modify a resource’s instance parameters |
|
|
Delete a resource’s instance parameters |
|
|
List current resource defaults |
|
|
Set resource defaults |
|
|
List current operation defaults |
|
|
Set operation defaults |
|
|
Clear fail counts for a resource |
|
|
Create a colocation constraint |
|
|
Create an ordering constraint |
|
|
Create a location constraint |
|
|
Move a resource to a specific node |
|
|
Move a resource away from its current node |
|
|
Remove any constraints created by moving a resource |
|
|