叢集新增Ring 1修改corosync

首先備份conf

cp /etc/pve/corosync.conf /etc/pve/corosync.conf.old

編輯conf(注意亮線處為差異處):

logging {
  debug: off
  to_syslog: yes
}

nodelist {
  node {
    name: r3
    nodeid: 3
    quorum_votes: 1
    ring0_addr: 10.0.5.110
    ring1_addr: 10.0.1.110
  }
  node {
    name: r1
    nodeid: 1
    quorum_votes: 1
    ring0_addr: 10.0.5.114
    ring1_addr: 10.0.1.114
  }
  node {
    name: r2
    nodeid: 2
    quorum_votes: 1
    ring0_addr: 10.0.5.113
    ring1_addr: 10.0.1.113
  }
}

quorum {
  provider: corosync_votequorum
}

totem {
  cluster_name: Cluster
  config_version: 4
  interface {
    bindnetaddr: 10.0.5.114
    ringnumber: 0
  }
  interface {
    bindnetaddr: 10.0.1.114
    ringnumber: 1
  }
  ip_version: ipv4
  rrp_mode: passive
  secauth: on
  version: 2
}

config_version需比原始的還高

最後重啟服務:

systemctl restart corosync.service 
systemctl restart pve-cluster.service
systemctl restart pvedaemon.service
systemctl restart pveproxy.service

網頁即可生效

 

 

 

阅读剩余
THE END