This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
пакет_corosync [2021/01/22 09:34] val [Отладка] |
пакет_corosync [2023/07/20 12:52] (current) val [Corosync 3 (Debian/Ubuntu)] |
||
---|---|---|---|
Line 14: | Line 14: | ||
- | ==== Corosync 3 (Debian 10) ==== | + | ==== Corosync 3 (Debian/Ubuntu) ==== |
<code> | <code> | ||
nodeN# cat /etc/corosync/corosync.conf | nodeN# cat /etc/corosync/corosync.conf | ||
</code><code> | </code><code> | ||
- | ... | + | totem { |
+ | version: 2 | ||
+ | cluster_name: debian | ||
+ | crypto_cipher: none | ||
+ | crypto_hash: none | ||
+ | } | ||
quorum { | quorum { | ||
provider: corosync_votequorum | provider: corosync_votequorum | ||
Line 29: | Line 35: | ||
name: node1 | name: node1 | ||
nodeid: 1 | nodeid: 1 | ||
- | ring0_addr: 10.M.N.100+X | + | #ring1_addr: 10.M.N.100+X |
+ | ring0_addr: node1 | ||
} | } | ||
node { | node { | ||
name: node2 | name: node2 | ||
nodeid: 2 | nodeid: 2 | ||
- | ring0_addr: 10.M.N.200+X | + | #ring1_addr: 10.M.N.200+X |
+ | ring0_addr: node2 | ||
} | } | ||
} | } | ||
Line 42: | Line 50: | ||
==== Перезапуск ==== | ==== Перезапуск ==== | ||
<code> | <code> | ||
+ | nodeN# corosync -t | ||
+ | |||
nodeN# service corosync restart | nodeN# service corosync restart | ||
</code> | </code> |