User Tools

Site Tools


пакет_pcs

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
пакет_pcs [2021/10/22 18:07]
val
пакет_pcs [2023/03/18 13:22] (current)
val
Line 2: Line 2:
  
   * Pacemaker Configuration System   * Pacemaker Configuration System
 +  * [[https://​xakep.ru/​2019/​01/​24/​corosync-pacemaker/​|Corosync + Pacemaker. Как правильно развернуть кластер высокой отказоустойчивости]]
 +  * [[https://​www.kost.su/​%D1%83%D1%81%D1%82%D0%B0%D0%BD%D0%BE%D0%B2%D0%BA%D0%B0-%D0%B8-%D0%BD%D0%B0%D1%81%D1%82%D1%80%D0%BE%D0%B9%D0%BA%D0%B0-pacemaker-%D0%BD%D0%B0-centos7/​|Установка и настройка Pacemaker На Centos7]]
   * [[https://​clusterlabs.org/​pacemaker/​doc/​deprecated/​en-US/​Pacemaker/​2.0/​html/​Clusters_from_Scratch/​|Clusters from Scratch]]   * [[https://​clusterlabs.org/​pacemaker/​doc/​deprecated/​en-US/​Pacemaker/​2.0/​html/​Clusters_from_Scratch/​|Clusters from Scratch]]
   * [[https://​www.simplified.guide/​pacemaker/​install-on-ubuntu-debian|How to install Pacemaker, Corosync and pcs on Ubuntu or Debian]]   * [[https://​www.simplified.guide/​pacemaker/​install-on-ubuntu-debian|How to install Pacemaker, Corosync and pcs on Ubuntu or Debian]]
Line 23: Line 25:
 node1# pcs cluster help node1# pcs cluster help
  
 +
 +!! Попробовать добавить ключ --all для прописывания corosync и pacemaker в автозагрузку
 +
 +node1# pcs cluster setup mycluster --start --force node1 node2
 +  или
 node1# pcs cluster setup mycluster --start --force node1 addr=10.5.12.113 node2 addr=10.5.12.213 node1# pcs cluster setup mycluster --start --force node1 addr=10.5.12.113 node2 addr=10.5.12.213
  
Line 33: Line 40:
 node1# pcs property set no-quorum-policy=ignore node1# pcs property set no-quorum-policy=ignore
  
-node1# pcs resource list | grep IPaddr2+node1# pcs resource list | tee res_list.txt
  
 node1# pcs resource create pr_ftp lsb:proftpd node1# pcs resource create pr_ftp lsb:proftpd
  
 node1# pcs resource create pr_ip ocf:​heartbeat:​IPaddr2 ip=192.168.X.10 cidr_netmask=32 nic=eth0 node1# pcs resource create pr_ip ocf:​heartbeat:​IPaddr2 ip=192.168.X.10 cidr_netmask=32 nic=eth0
 +
 +node1# pcs resource delete ...
  
 nodeN# pcs status nodeN# pcs status
Line 46: Line 55:
  
 node1# pcs config node1# pcs config
 +
 +node1# pcs constraint delete cli-prefer-gr_ftp_ip
  
 nodeN# systemctl enable corosync nodeN# systemctl enable corosync
Line 54: Line 65:
 node2# init 6 node2# init 6
  
-nodeN# pcs cluster stop+nodeN# pcs cluster stop # --force
  
 nodeN# pcs cluster start nodeN# pcs cluster start
пакет_pcs.1634915254.txt.gz · Last modified: 2021/10/22 18:07 by val