<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
</head>
<body>
<p>Hi guys,</p>
<p>sorry to keep bugging you with this. Can anyone give me a sample
working res file for a 3 node setup with crossover links? <br>
</p>
<p>It says here <a moz-do-not-send="true"
href="https://linbit.com/drbd-user-guide/drbd-guide-9_0-en/#s-drbdconf-conns">https://linbit.com/drbd-user-guide/drbd-guide-9_0-en/#s-drbdconf-conns</a>
:<br>
</p>
<p>"If you have got enough network cards in your servers, you can
create direct cross-over links between server pairs. A single
four-port ethernet card allows to have a single management
interface, and to connect 3 other servers, to get a full mesh for
4 cluster nodes."</p>
<p>I do, and each of the three nodes can ping the other two nodes to
which they are connect. But I am confused about how/where their
IPs and ports are defined in the .res file. I have three hosts
connected directly via discrete interfaces on each node.:</p>
<p>01 <----> 02 ---- 10.10.1.0/24<br>
02 <----> 03 ---- 10.10.2.0/24<br>
01 <----> 03 ---- 10.10.3.0/24</p>
<p>back to the page is then says this:<br>
</p>
<p>In this case you can specify a different IP address to use the
direct link:<br>
<br>
resource r0 {<br>
...<br>
connection {<br>
host alice address 10.1.2.1:7010;<br>
host bob address 10.1.2.2:7001;<br>
}<br>
connection {<br>
host alice address 10.1.3.1:7020;<br>
host charlie address 10.1.3.2:7002;<br>
}<br>
connection {<br>
host bob address 10.1.4.1:7021;<br>
host charlie address 10.1.4.2:7012;<br>
}<br>
}<br>
</p>
<p>I assume the ... on line 2 is referring to the previous example
above that, which is:<br>
<br>
</p>
<pre style="box-sizing: border-box; font-family: monospace, monospace; font-size: 16px; white-space: pre; overflow: scroll hidden; color: rgb(0, 0, 0); font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: rgb(255, 255, 255); text-decoration-thickness: initial; text-decoration-style: initial; text-decoration-color: initial;">resource r0 {
device /dev/drbd1;
disk /dev/sda7;
meta-disk internal;
on alice {
address 10.1.1.31:7000;
node-id 0;
}
on bob {
address 10.1.1.32:7000;
node-id 1;
}
on charlie {
address 10.1.1.33:7000;
node-id 2;
}
connection-mesh {
hosts alice bob charlie;
}
}
But I keep getting parsing errors no matter where I put that "connection" stanza. drbdadm complains with:
# drbdadm up webdav
drbd.d/webdav.res:18: Parse error: 'protocol | on | disk | net | syncer | startup | handlers | ignore-on | stacked-on-top-of' expected,
but got 'connection' (TK 282)
I do apologize if I am again asking a question the answer to which is right in front of my face and I'm not seeing it, but where do the three "connection" statements go? Obviously they don't go where I put them.
What would a complete example of a 3 node V9 with a discrete NIC and cable between each node look like?
Please and thanks and sorry to be asking such a newb question. :(
Paul
</pre>
</body>
</html>