このページの2つのバージョン間の差分を表示します。
両方とも前のリビジョン前のリビジョン次のリビジョン | 前のリビジョン | ||
01_linux:01_net:56_pcs [2017/03/31 04:51] – matsui | 01_linux:01_net:56_pcs [2017/04/03 09:44] (現在) – matsui | ||
---|---|---|---|
行 1: | 行 1: | ||
+ | ====== 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: | ||
+ | |||
+ | | ||
+ | | ||
+ | Clone Set: rs_ping-clone [rs_ping] | ||
+ | | ||
+ | Clone Set: rs_mysql-clone [rs_mysql] | ||
+ | | ||
+ | |||
+ | PCSD Status: | ||
+ | dbs5003: Online | ||
+ | dbs5004: Online | ||
+ | </ | ||
+ | | ||
+ | ===== スタンバイ ===== | ||
+ | standby [< | ||
+ | |||
+ | < | ||
+ | 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 < | ||
+ | |||
+ | < | ||
+ | pcs resource unmanage rs_mysql | ||
+ | pcs resource manage rs_mysql | ||
+ | </ | ||
+ | |||
+ | ===== クリーンアップ ===== | ||
+ | |||
+ | cleanup [< | ||
+ | |||
+ | < | ||
+ | pcs resource rs_mysql | ||
+ | </ | ||
+ | |||
+ | |||
+ | {{tag> |