This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
пакет_pacemaker [2022/03/17 12:28] val [Создание ресурсов] |
пакет_pacemaker [2024/12/01 09:04] (current) val [Пакет Pacemaker] |
||
---|---|---|---|
Line 2: | Line 2: | ||
* [[https://habrahabr.ru/post/107837/|Linux HA на основе Pacemaker]] | * [[https://habrahabr.ru/post/107837/|Linux HA на основе Pacemaker]] | ||
+ | * [[https://habr.com/ru/companies/postgrespro/articles/359230/|Кластер pacemaker/corosync без валидола Postgres Professional]] | ||
* [[http://wiki.525.su/doku.php?id=pacemaker_theory|Pacemaker, теория]] | * [[http://wiki.525.su/doku.php?id=pacemaker_theory|Pacemaker, теория]] | ||
* [[https://wiki.clusterlabs.org/wiki/Example_configurations|Example configurations]] | * [[https://wiki.clusterlabs.org/wiki/Example_configurations|Example configurations]] | ||
Line 26: | Line 27: | ||
node1# crm configure | node1# crm configure | ||
</code><code> | </code><code> | ||
- | property dc-deadtime=120 | + | property dc-deadtime=120 # Для уменьшения вероятности split-brain (НЕ помогает) |
property no-quorum-policy=ignore | property no-quorum-policy=ignore | ||
Line 32: | Line 33: | ||
clone fencing st-null | clone fencing st-null | ||
- | op timeout=240s #Для долго стартующих ресурсов | + | op timeout=240s # Для долго стартующих ресурсов (перезапуск VM в KVM на резервном узле после падения основного) |
show | show | ||
Line 39: | Line 40: | ||
</code><code> | </code><code> | ||
nodeN# find /var/lib/pacemaker/cib/ | nodeN# find /var/lib/pacemaker/cib/ | ||
+ | |||
+ | nodeN# cat /var/lib/pacemaker/cib/cib.xml | ||
</code> | </code> | ||
Line 68: | Line 71: | ||
crm(live)configure# primitive pr_ip ocf:heartbeat:IPaddr2 params ip=192.168.X.10 cidr_netmask=32 nic=eth0 | crm(live)configure# primitive pr_ip ocf:heartbeat:IPaddr2 params ip=192.168.X.10 cidr_netmask=32 nic=eth0 | ||
crm(live)configure# group gr_ftp_ip pr_ftp pr_ip | crm(live)configure# group gr_ftp_ip pr_ftp pr_ip | ||
+ | |||
+ | node1# export EDITOR=nano | ||
+ | |||
+ | crm(live)configure# edit pr_ip | ||
crm(live)configure# edit gr_ftp_ip | crm(live)configure# edit gr_ftp_ip | ||
Line 139: | Line 146: | ||
* [[https://unix.stackexchange.com/questions/246935/set-systemd-service-to-execute-after-fstab-mount|Set systemd service to execute after fstab mount]] | * [[https://unix.stackexchange.com/questions/246935/set-systemd-service-to-execute-after-fstab-mount|Set systemd service to execute after fstab mount]] | ||
- | + | * Проблема воспроизводилась при сбойных сценариях с ресурсами, использующими [[Сервис OCFS2]] | |
- | * [[Сервис OCFS2]] | + | |
<code> | <code> | ||
Line 146: | Line 152: | ||
</code><code> | </code><code> | ||
... | ... | ||
- | disk2.mount loaded active mounted /disk2 | + | disk3.mount loaded active mounted /disk3 |
... | ... | ||
</code><code> | </code><code> | ||
Line 152: | Line 158: | ||
</code><code> | </code><code> | ||
[Unit] | [Unit] | ||
- | After=disk2.mount | + | After=disk3.mount |
#After=disk2.mount disk3.mount | #After=disk2.mount disk3.mount | ||
</code> | </code> |