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 | ||
пакет_pacemaker [2022/02/04 12:11] val [Управление конфигурацией] |
пакет_pacemaker [2022/02/10 11:02] val [Управление конфигурацией] |
||
---|---|---|---|
Line 31: | Line 31: | ||
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 #Для долго стартующих ресурсов | ||
show | show | ||
Line 57: | Line 59: | ||
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=192.168.X.10 OCF_RESKEY_nic=eth0 OCF_RESKEY_cidr_netmask=255.255.255.0 /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=255.255.255.0 /usr/lib/ocf/resource.d/heartbeat/IPaddr2 stop | ||
node1# crm configure | node1# crm configure | ||
Line 133: | Line 139: | ||
* [[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]] | ||
<code> | <code> | ||
- | # cat /etc/fstab | ||
- | </code><code> | ||
- | ... | ||
- | /dev/drbd0 /disk2 ocfs2 defaults,heartbeat=local 0 0 | ||
- | #/dev/mapper/mpatha /disk3 ocfs2 defaults,heartbeat=local 0 0 | ||
- | </code><code> | ||
# systemctl list-units --type=mount | # systemctl list-units --type=mount | ||
</code><code> | </code><code> |