[DRBD-user] V9 res file syntax

Paul D. O'Rorke paul at tracker-software.com
Wed Oct 6 00:13:53 CEST 2021


Hi guys,

sorry to keep bugging you with this.  Can anyone give me a sample 
working res file for a 3 node setup with crossover links?

It says here 
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> :

"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."

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.:

01 <----> 02 ---- 10.10.1.0/24
02 <----> 03 ---- 10.10.2.0/24
01 <----> 03 ---- 10.10.3.0/24

back to the page is then says this:

In this case you can specify a different IP address to use the direct link:

resource r0 {
   ...
   connection {
     host alice   address 10.1.2.1:7010;
     host bob     address 10.1.2.2:7001;
   }
   connection {
     host alice   address 10.1.3.1:7020;
     host charlie address 10.1.3.2:7002;
   }
   connection {
     host bob     address 10.1.4.1:7021;
     host charlie address 10.1.4.2:7012;
   }
}

I assume the ... on line 2 is referring to the previous example above 
that, which is:

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



-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.linbit.com/pipermail/drbd-user/attachments/20211005/14bc13e9/attachment.htm>


More information about the drbd-user mailing list