User Tools

Site Tools



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
пакет_pacemaker [2022/02/08 12:09]
val [Создание ресурсов]
пакет_pacemaker [2022/10/25 14:07] (current)
val [Создание ресурсов]
Line 26: Line 26:
 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
 primitive st-null stonith:​null params hostlist="​node1 node2" primitive st-null stonith:​null params hostlist="​node1 node2"
 clone fencing st-null clone fencing st-null
 +op timeout=240s ​            # Для долго стартующих ресурсов (перезапуск VM в KVM на резервном узле после падения основного)
 show show
Line 37: Line 39:
 </​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 58: Line 62:
 node1# less /​usr/​lib/​ocf/​resource.d/​heartbeat/​IPaddr2 node1# less /​usr/​lib/​ocf/​resource.d/​heartbeat/​IPaddr2
-node1# OCF_ROOT=/​usr/​lib/​ocf OCF_RESKEY_ip= OCF_RESKEY_nic=eth0 OCF_RESKEY_cidr_netmask= ​/​usr/​lib/​ocf/​resource.d/​heartbeat/​IPaddr2 start+node1# OCF_ROOT=/​usr/​lib/​ocf OCF_RESKEY_ip=192.168.X.10 OCF_RESKEY_nic=eth0 OCF_RESKEY_cidr_netmask=24 /​usr/​lib/​ocf/​resource.d/​heartbeat/​IPaddr2 start
-node1# OCF_ROOT=/​usr/​lib/​ocf OCF_RESKEY_ip= OCF_RESKEY_nic=eth0 OCF_RESKEY_cidr_netmask= ​/​usr/​lib/​ocf/​resource.d/​heartbeat/​IPaddr2 stop+node1# OCF_ROOT=/​usr/​lib/​ocf OCF_RESKEY_ip=192.168.X.10 OCF_RESKEY_nic=eth0 OCF_RESKEY_cidr_netmask=24 /​usr/​lib/​ocf/​resource.d/​heartbeat/​IPaddr2 stop
 node1# crm configure ​ node1# crm configure ​
Line 66: Line 70:
 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 137: Line 145:
   * [[https://​​questions/​246935/​set-systemd-service-to-execute-after-fstab-mount|Set systemd service to execute after fstab mount]]   * [[https://​​questions/​246935/​set-systemd-service-to-execute-after-fstab-mount|Set systemd service to execute after fstab mount]]
- +  ​Проблема воспроизводилась при сбойных сценариях с ресурсами,​ использующими ​[[Сервис OCFS2]] ​
-  ​* [[Сервис OCFS2]]+
 <​code>​ <​code>​
Line 144: Line 151:
 </​code><​code>​ </​code><​code>​
 ... ...
-  ​disk2.mount ​                  ​loaded active mounted /disk2+  ​disk3.mount ​                  ​loaded active mounted /disk3
 ... ...
 </​code><​code>​ </​code><​code>​
Line 150: Line 157:
 </​code><​code>​ </​code><​code>​
 [Unit] [Unit]
 #​After=disk2.mount disk3.mount #​After=disk2.mount disk3.mount
 </​code>​ </​code>​
пакет_pacemaker.1644311346.txt.gz · Last modified: 2022/02/08 12:09 by val