This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision Last revision Both sides next revision | ||
пакет_corosync [2019/11/28 16:38] val [Corosync 3 (Debian 10)] |
пакет_corosync [2022/05/22 06:57] val [Corosync 3 (Debian/Ubuntu)] |
||
---|---|---|---|
Line 12: | Line 12: | ||
===== Настройка ===== | ===== Настройка ===== | ||
- | ==== Corosync 2 (Debian 9) ==== | ||
- | <code> | ||
- | nodeN# cat /etc/corosync/corosync.conf | ||
- | </code><code> | ||
- | ... | ||
- | bindnetaddr: 10.5.N.0 | ||
- | ... | ||
- | mcastaddr: 239.255.1.X | ||
- | ... | ||
- | </code> | ||
- | ==== 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 |
two_node: 1 | two_node: 1 | ||
- | ... | + | } |
nodelist { | nodelist { | ||
node { | node { | ||
- | name: node1.corpX.un | + | name: node1 |
nodeid: 1 | nodeid: 1 | ||
- | ring0_addr: 10.M.N.100+X | + | #ring0_addr: 10.M.N.100+X |
+ | ring0_addr: node1 | ||
} | } | ||
node { | node { | ||
- | name: node2.corpX.un | + | name: node2 |
nodeid: 2 | nodeid: 2 | ||
- | ring0_addr: 10.M.N.200+X | + | #ring0_addr: 10.M.N.200+X |
+ | ring0_addr: node2 | ||
} | } | ||
} | } | ||
Line 51: | Line 50: | ||
==== Перезапуск ==== | ==== Перезапуск ==== | ||
<code> | <code> | ||
+ | nodeN# corosync -t | ||
+ | |||
nodeN# service corosync restart | nodeN# service corosync restart | ||
</code> | </code> | ||
Line 57: | Line 58: | ||
<code> | <code> | ||
+ | nodeN# corosync-cfgtool -s | ||
+ | |||
nodeN# corosync-cmapctl | grep members | nodeN# corosync-cmapctl | grep members | ||
- | nodeN# tail /var/log/syslog | + | nodeN# grep corosync /var/log/syslog |
+ | </code> | ||
+ | |||
+ | ===== Дополнительные материалы ===== | ||
+ | |||
+ | ==== Corosync 2 (Debian 9) ==== | ||
+ | |||
+ | <code> | ||
+ | nodeN# cat /etc/corosync/corosync.conf | ||
+ | </code><code> | ||
+ | ... | ||
+ | bindnetaddr: 10.M.N.0 | ||
+ | ... | ||
+ | mcastaddr: 239.255.1.X | ||
+ | ... | ||
</code> | </code> |