Pcs Command Reference
Pcs Command Reference
Pcs Command Reference
pcs is a command line tool to manage pacemaker/cman based High availability clus
ter, here are some of mostly being used commands
cluster management
Display the configuration in xml style
# pcs cluster cib
Display the current status
# pcs status
Display the current cluster status
# pcs cluster status
Create a cluster
pcs cluster setup [--start] [--local] --name cluster_ name node1 [node2] [...]
Start the cluster
# pcs cluster start [--all] [node] [...]
Stop the cluster
# pcs cluster stop [--all] [node] [...]
Forcebly stop cluster service on a node
# pcs cluster kill
Enable cluster service on node[s]
# pcs cluster enable [--all] [node] [...]
Disable cluster service on node[s]
# pcs cluster disable [--all] [node] [...]
Put node in standby
# pcs cluster standby pcmk-1
Remove node from standby
# pcs cluster unstandby pcmk-1
Set cluster property
# pcs property set stonith-enabled=false
Destroy/remove cluster configuration on a node
# pcs cluster destroy [--all]
Cluster node authentication
# pcs cluster auth [node] [...]
Add a node to cluster
# pcs cluster node add [node]
Remove a node to cluster
# pcs cluster node remove [node]
Resource manipulation
List Resource Agent (RA) classes
# pcs resource standards
ocf
lsb
service
stonith
To UNmanage a resource
pcs resource unmanage RA
STONITH
List available resource agents
#pcs stonith list
Add a filter to List available resource agents
#pcs stonith list <string>
Setup properties for STONITH
# pcs property set no-quorum-policy=ignore
# pcs property set stonith-action=poweroff
Create a fencing device
# default is reboot