====== 56 PCS コマンド ======
===== 状態確認 =====
# pcs status
Cluster name: pcs_cluster
Last updated: Fri Mar 31 13:40:39 2017
Last change: Fri Mar 31 13:40:28 2017 by hacluster via crmd on node01
Stack: corosync
Current DC: dbs5004 - partition with quorum
Version: 1.1.13-6052cd1
2 Nodes configured
5 Resources configured
Online: [ node01 node02 ]
Full list of resources:
Resource Group: gr_db
rs_vip (ocf::heartbeat:IPaddr2): Started node01
Clone Set: rs_ping-clone [rs_ping]
Started: [ node01 node02 ]
Clone Set: rs_mysql-clone [rs_mysql]
Started: [ node01 node02 ]
PCSD Status:
dbs5003: Online
dbs5004: Online
===== スタンバイ =====
standby [] | --all
pcs cluster standby --all
pcs cluster unstandby --all
pcs cluster standby node01
pcs cluster unstandby node01
===== メンテナンスモード =====
maintenance [--all] | [node]
pcs node maintenance --all
pcs node unmaintenance --all
==== 特定リソースメンテナンスモード ====
unmanage ... [resource n]
pcs resource unmanage rs_mysql
pcs resource manage rs_mysql
===== クリーンアップ =====
cleanup []
pcs resource rs_mysql
{{tag>pcsd}}