[DRBD-user] Host with multiple ip addresses

Igor Cicimov igorc at encompasscorporation.com
Tue Apr 4 14:12:16 CEST 2017

Note: "permalinks" may not be as permanent as we would like,
direct links of old sources may well be a few messages off.


On Tue, Apr 4, 2017 at 9:42 PM, Roberto Resoli <roberto at resolutions.it>
wrote:

> Il 04/04/2017 13:08, Frank Rust ha scritto:
> > Hi folks,
> >
> > I am wondering if it would be possible to create a drbdmanage cluster
> where the hostname don’t match the ip address of the network interface to
> use.
> >
> > In detail:
> > I have a three node configuration with the ip visible to the outside:
> > node1 IP: 192.168.1.1  hostname fs1
> > node2 IP: 192.168.1.2  hostname fs2
> > node3 IP: 192.168.1.3  hostname fs3
> >
> > Each of the nodes has a second network adapter which shall be used for
> the storage distribution (and is not visible to the outside).
> >   node1 10.10.10.1
> >   node2 10.10.10.2
> >   node3 10.10.10.3
> >
> > if I do
> >   drbdmanage init 10.10.10.1
> >   drbdmanage add-node fs2 10.10.10.2
> >   drbdmanage add-node fs3 10.10.10.3
> >
> > It will not work because the IP-address of "fs1" is 192.168.1.1 and not
> 10.10.10.1 and so on.
> > I hope it’s possible to understand my description...
> >
> > I can not change the hostnames according to the storage network because
> it would break other services for the outside.
> >
> > So my question: how would I configure it to get the second network
> adapter used.
>
> My cluster is very similar to your; here my /etc/hosts, actualized with
> your IPs (and hostname, replace "yourdomain.com" with your own); maybe
> pvelocalhost is redundant in your case:
>
> 127.0.0.1 localhost.localdomain localhost
> 192.168.1.1 fs1.yourdomain.com fs1 pvelocalhost
> 10.10.10.1 fs1.yourdomain.com  fs1
> 192.168.1.2 fs2.yourdomain.com fs2
> 10.10.10.2 fs2.yourdomain.con fs2
> 192.168.1.3 fs3.yourdomain.com fs3
> 10.10.10.3 fs3.yourdomain.com fs3
>
> I have initialized DRBD9 without problems ...
>
> rob
>
> Or simply use different host names for the other network like:

192.168.1.1  fs1
192.168.1.2  fs2
192.168.1.3  fs3
10.10.10.1   sfs1
10.10.10.2   sfs2
10.10.10.3   sfs3

and set the cluster using those names:

drbdmanage init 10.10.10.1
drbdmanage add-node sfs2 10.10.10.2
drbdmanage add-node sfs3 10.10.10.3

That's what I usually do it also helps to differentiate which network are
we talking about from the host name perspective. Except if keeping the
original names is a must for some reason ...
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.linbit.com/pipermail/drbd-user/attachments/20170404/ce21411a/attachment.htm>


More information about the drbd-user mailing list