LoginSignup
4
5

More than 5 years have passed since last update.

ノードをMasterにする

Last updated at Posted at 2014-12-15

指定したノードをクラスタのmasterにする

以下3ノードがある。

  • n1
  • n2
  • n3

pcsの場合

n1をMasterにする

pcs cluster standby n2
pcs cluster standby n3
pcs cluster unstandby --all

n2をMasterにする

pcs cluster standby n1
pcs cluster standby n3
pcs cluster unstandby --all

n3をMasterにする

pcs cluster standby n1
pcs cluster standby n2
pcs cluster unstandby --all

もしくは crm_resourceコマンドを使う

crmの場合

# /usr/sbin/crm node standby www-primary.local

cibadmin not available, check your installation

/usr/sbin/cibadminにPATHが通っていない場合上記エラーが出る。

# export PATH=$PATH:/usr/sbin:/sbin
# /usr/sbin/crm node standby www-primary.local

n1をMasterにする

crm node standby n2
crm node standby n3
crm node online n2
crm node online n3
4
5
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
4
5