This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision Next revision Both sides next revision | ||
пакет_pcs [2021/07/01 08:29] admin |
пакет_pcs [2022/06/27 11:44] val |
||
---|---|---|---|
Line 1: | Line 1: | ||
====== Пакет PCS ====== | ====== Пакет PCS ====== | ||
- | <code> | + | * Pacemaker Configuration System |
- | https://clusterlabs.org/pacemaker/doc/deprecated/en-US/Pacemaker/2.0/html/Clusters_from_Scratch/ | + | * [[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://www.simplified.guide/pacemaker/install-on-ubuntu-debian|How to install Pacemaker, Corosync and pcs on Ubuntu or Debian]] | ||
+ | * [[https://www.simplified.guide/pacemaker/create-cluster|How to create a Pacemaker cluster]] | ||
- | https://www.simplified.guide/pacemaker/install-on-ubuntu-debian | + | * [[https://bugzilla.redhat.com/show_bug.cgi?id=1728890|Bug 1728890 - RFE - Mention syntax changes in man / error output]] |
- | + | ||
- | https://www.simplified.guide/pacemaker/create-cluster | + | |
- | + | ||
- | https://bugzilla.redhat.com/show_bug.cgi?id=1728890 | + | |
+ | <code> | ||
nodeN# apt install pcs | nodeN# apt install pcs | ||
Line 21: | Line 21: | ||
node1: Authorized | node1: Authorized | ||
node2: Authorized | node2: Authorized | ||
+ | |||
+ | node1# pcs cluster help | ||
node1# pcs cluster setup mycluster --start --force node1 node2 | 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 | ||
nodeN# pcs cluster status | nodeN# pcs cluster status | ||
Line 37: | Line 41: | ||
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 45: | Line 51: | ||
node1# pcs config | node1# pcs config | ||
+ | |||
+ | node1# pcs constraint delete cli-prefer-gr_ftp_ip | ||
+ | |||
+ | nodeN# systemctl enable corosync | ||
+ | nodeN# systemctl enable pacemaker | ||
node1# crm_mon | node1# crm_mon | ||
Line 50: | Line 61: | ||
node2# init 6 | node2# init 6 | ||
- | node2# pcs cluster start | + | nodeN# pcs cluster stop # --force |
- | nodeN# systemctl enable corosync | + | nodeN# pcs cluster start |
- | nodeN# systemctl enable pacemaker | + | |
nodeN# pcs cluster destroy | nodeN# pcs cluster destroy | ||
Удаляет на узле ВСЕ конфигурации и убирает сервисы из автозагрузки | Удаляет на узле ВСЕ конфигурации и убирает сервисы из автозагрузки | ||
- | nodeN# apt purge pcs | ||
+ | nodeN# systemctl stop pcsd | ||
+ | nodeN# systemctl disable pcsd | ||
</code> | </code> |