[DRBD-user] Host with multiple ip addresses

Robert Altnoeder robert.altnoeder at linbit.com
Wed Apr 5 10:31:30 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 04/05/2017 12:35 AM, Igor Cicimov wrote:
>
>
> On 4 Apr 2017 11:08 pm, "Robert Altnoeder"
> <robert.altnoeder at linbit.com <mailto:robert.altnoeder at linbit.com>> wrote:
>
>
>     For drbdmanage to work, the name of each registered node must be the
>     node name of that node, and the IP address must be an address that
>     enables reaching the other registered nodes (e.g., all nodes must
>     be on
>     the same network/subnetwork or routed appropriately).
>     The hostnames are irrelevant too.
>
>
> Well the OP reported this is not the case. At least for him. We have
> to assume networking issue then?
Possible, all I can say is that this is the way it is supposed to be set up.

For example, with:
eth1 192.168.133.0/24
eth2 192.168.144.0/24

it can be configured to use eth1:

criminy:~ # drbdmanage nodes --show IP
╭────────────────────────────────────────────────────────────────────────────────────────────────────╮
┊ Name    ┊ Pool Size ┊ Pool Free ┊             IP
┊                                         ┊ State ┊
╞┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄╡
┊ criminy ┊       508 ┊       448 ┊ 192.168.133.25
┊                                         ┊    ok ┊
┊ grimes  ┊       508 ┊       448 ┊ 192.168.133.27
┊                                         ┊    ok ┊
┊ lilith  ┊       508 ┊       448 ┊ 192.168.133.26
┊                                         ┊    ok ┊
╰────────────────────────────────────────────────────────────────────────────────────────────────────╯
criminy:~ # drbdmanage list-assignments
╭────────────────────────────────────────────────────────────────────────────────────────────────────╮
┊ Node    ┊ Resource ┊ Vol ID
┊                                                              ┊ State ┊
╞┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄╡
┊ criminy ┊ sample   ┊      *
┊                                                              ┊    ok ┊
┊ grimes  ┊ sample   ┊      *
┊                                                              ┊    ok ┊
┊ lilith  ┊ sample   ┊      *
┊                                                              ┊    ok ┊
╰────────────────────────────────────────────────────────────────────────────────────────────────────╯
criminy:~ #

or to use eth2:

criminy:~ # drbdmanage nodes --show IP
╭────────────────────────────────────────────────────────────────────────────────────────────────────╮
┊ Name    ┊ Pool Size ┊ Pool Free ┊             IP
┊                                         ┊ State ┊
╞┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄╡
┊ criminy ┊       508 ┊       448 ┊ 192.168.144.25
┊                                         ┊    ok ┊
┊ grimes  ┊       508 ┊       448 ┊ 192.168.144.27
┊                                         ┊    ok ┊
┊ lilith  ┊       508 ┊       448 ┊ 192.168.144.26
┊                                         ┊    ok ┊
╰────────────────────────────────────────────────────────────────────────────────────────────────────╯
criminy:~ # drbdmanage list-assignments
╭────────────────────────────────────────────────────────────────────────────────────────────────────╮
┊ Node    ┊ Resource ┊ Vol ID
┊                                                              ┊ State ┊
╞┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄╡
┊ criminy ┊ sample   ┊      *
┊                                                              ┊    ok ┊
┊ grimes  ┊ sample   ┊      *
┊                                                              ┊    ok ┊
┊ lilith  ┊ sample   ┊      *
┊                                                              ┊    ok ┊
╰────────────────────────────────────────────────────────────────────────────────────────────────────╯
criminy:~ #

Resources will use the addresses that the node entries show. Multiple
addresses are not supported by drbdmanage (although the DRBD backend
would support them).

br,
-- 
Robert Altnoeder
+43 1 817 82 92 0
robert.altnoeder at linbit.com

LINBIT | Keeping The Digital World Running
DRBD - Corosync - Pacemaker
f /  t /  in /  g+

DRBD® and LINBIT® are registered trademarks of LINBIT, Austria.



More information about the drbd-user mailing list