<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html><head><title>Re: [Sysadmins] linux cluster GATEWAY #part 2 - corosync</title>
<META http-equiv=Content-Type content="text/html; charset=windows-1251">
<meta http-equiv="Content-Style-Type" content="text/css">
<style type="text/css"><!--
body {
margin: 5px 5px 5px 5px;
background-color: #ffffff;
}
/* ========== Text Styles ========== */
hr { color: #000000}
body, table /* Normal text */
{
font-size: 9pt;
font-family: 'Courier New';
font-style: normal;
font-weight: normal;
color: #000000;
text-decoration: none;
}
span.rvts1 /* Heading */
{
font-size: 10pt;
font-family: 'Arial';
font-weight: bold;
color: #0000ff;
}
span.rvts2 /* Subheading */
{
font-size: 10pt;
font-family: 'Arial';
font-weight: bold;
color: #000080;
}
span.rvts3 /* Keywords */
{
font-size: 10pt;
font-family: 'Arial';
font-style: italic;
color: #800000;
}
a.rvts4, span.rvts4 /* Jump 1 */
{
font-size: 10pt;
font-family: 'Arial';
color: #008000;
text-decoration: underline;
}
a.rvts5, span.rvts5 /* Jump 2 */
{
font-size: 10pt;
font-family: 'Arial';
color: #008000;
text-decoration: underline;
}
span.rvts6
{
font-size: 8pt;
font-family: 'arial';
font-style: italic;
color: #c0c0c0;
}
a.rvts7, span.rvts7
{
font-size: 8pt;
font-family: 'arial';
color: #0000ff;
text-decoration: underline;
}
span.rvts8
{
font-weight: bold;
}
/* ========== Para Styles ========== */
p,ul,ol /* Paragraph Style */
{
text-align: left;
text-indent: 0px;
padding: 0px 0px 0px 0px;
margin: 0px 0px 0px 0px;
}
.rvps1 /* Centered */
{
text-align: center;
}
--></style>
</head>
<body>
<p>Help</p>
<p>пытаюсь настроить corosync - не стартует, логов своих не пишет.</p>
<p>в логах мессайджах и службах или пусто, или вразумительного ничего нет...</p>
<p>гугл вразумительного ответа не принес.</p>
<p><br></p>
<p>/etc/init.d/corosync start</p>
<p>Starting corosync daemon: corosynccorosync [MAIN ] Corosync Cluster Engine ('1.2.1'): started and ready to provide service.</p>
<p>corosync [MAIN ] Corosync built-in features: nss</p>
<p>corosync [MAIN ] service: Can't add subsection different then service</p>
<p>corosync [MAIN ] Corosync Cluster Engine exiting with status -9 at main.c:1374.</p>
<p> failed!</p>
<p><br></p>
<p>подскажите на что он хоть ругается?</p>
<p><br></p>
<p><br></p>
<p><span class=rvts8>corosync.conf - практически дефолтный, в принципе пытался запустить и с дефолтным - не помогло... </span></p>
<p># Please read the openais.conf.5 manual page</p>
<p><br></p>
<p>totem {</p>
<p> version: 2</p>
<p><br></p>
<p> # How long before declaring a token lost (ms)</p>
<p> token: 3000</p>
<p><br></p>
<p> # How many token retransmits before forming a new configuration</p>
<p> token_retransmits_before_loss_const: 10</p>
<p><br></p>
<p> # How long to wait for join messages in the membership protocol (ms)</p>
<p> join: 60</p>
<p><br></p>
<p> # How long to wait for consensus to be achieved before starting a new round of membership configuration (ms)</p>
<p> consensus: 3600</p>
<p><br></p>
<p> # Turn off the virtual synchrony filter</p>
<p> vsftype: none</p>
<p><br></p>
<p> # Number of messages that may be sent by one processor on receipt of the token</p>
<p> max_messages: 20</p>
<p><br></p>
<p> # Limit generated nodeids to 31-bits (positive signed integers)</p>
<p> clear_node_high_bit: yes</p>
<p><br></p>
<p> # Disable encryption</p>
<p> secauth: off</p>
<p><br></p>
<p> # How many threads to use for encryption/decryption</p>
<p> threads: 0</p>
<p><br></p>
<p> # Optionally assign a fixed node id (integer)</p>
<p> # nodeid: 1234</p>
<p><br></p>
<p> # This specifies the mode of redundant ring, which may be none, active, or passive.</p>
<p> rrp_mode: none</p>
<p><br></p>
<p> interface {</p>
<p> # The following values need to be set based on your environment</p>
<p> ringnumber: 0</p>
<p> # bindnetaddr: 127.0.0.1</p>
<p> bindnetaddr: 10.0.0.0 /подсеть с сетевухой 10.0.0.2</p>
<p> mcastaddr: 226.94.1.1</p>
<p> mcastport: 5405</p>
<p> }</p>
<p>}</p>
<p><br></p>
<p>amf {</p>
<p> mode: disabled</p>
<p>}</p>
<p><br></p>
<p>service {</p>
<p> # Load the Pacemaker Cluster Resource Manager</p>
<p> ver: 0</p>
<p> name: pacemaker</p>
<p>}</p>
<p><br></p>
<p>aisexec {</p>
<p> user: root</p>
<p> group: root</p>
<p>}</p>
<p><br></p>
<p>logging {</p>
<p> fileline: off</p>
<p> to_stderr: yes</p>
<p> to_logfile: yes</p>
<p> logfile: /var/log/corosync.log</p>
<p> to_syslog: yes</p>
<p> syslog_facility: daemon</p>
<p> debug: off</p>
<p> timestamp: on</p>
<p> logger_subsys {</p>
<p> subsys: AMF</p>
<p> debug: off</p>
<p> tags: enter|leave|trace1|trace2|trace3|trace4|trace6</p>
<p> }</p>
<p>}</p>
<p><br></p>
</body></html>