Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: DRBD: Users

syncing on multiple links

 

 

DRBD users RSS feed   Index | Next | Previous | View Threaded


groen692 at grosc

Nov 18, 2009, 2:56 AM

Post #1 of 6 (1066 views)
Permalink
syncing on multiple links

Hello,

I'm wondering if there drbd supports a configuration of two nodes with
each two nic's in two separate lan's.
eg
- node 1 connected to lan x and lan y
- node 2 connected to lan x and lan y

The drbd syncs through both lan-s or fails over from lan x to lan y when
lan x fails.

mfg,

Jeroen.
_______________________________________________
drbd-user mailing list
drbd-user [at] lists
http://lists.linbit.com/mailman/listinfo/drbd-user


m.watts at eris

Nov 18, 2009, 4:07 AM

Post #2 of 6 (1008 views)
Permalink
Re: syncing on multiple links [In reply to]

On Wed, 2009-11-18 at 11:56 +0100, Jeroen Groenewegen van der Weyden
wrote:
> Hello,
>
> I'm wondering if there drbd supports a configuration of two nodes with
> each two nic's in two separate lan's.
> eg
> - node 1 connected to lan x and lan y
> - node 2 connected to lan x and lan y
>
> The drbd syncs through both lan-s or fails over from lan x to lan y when
> lan x fails.
>
> mfg,

When you say "two lans" do you mean two different IP Subnets (eth
192.168.1.0/24 and 172.16.1.0/24) or do you mean two layer-2 switches?

I don't believe DRBD can use to different subnets at the same time,
although there's nothing stopping each node from being on a different
subnet.


What you can do is use the bonding driver to make N physical interfaces
appear to the system as one interface. The assumption here is that each
physical interface on machine A can talk to each interface on machine B.

E.G:

Node A eth0 - Switch 1 - Node B eth0
|| ||
Node A eth1 - Switch 2 - Node B eth1

With two switches, you'd connect the eth0 interfaces to one switch, eth1
to the other and then connect both switches together (with an
etherchannl trunk probably).
You'd then configure eth0/1 on each machine to be in a bonded interface
(bond0) which you then assign the IP address to that you'll use for DRBD
replication.

Hope this helps!

Mark.

--
Mark Watts BSc RHCE MBCS
Senior Systems Engineer, Managed Services Manpower
www.QinetiQ.com
QinetiQ - Delivering customer-focused solutions
GPG Key: http://www.linux-corner.info/mwatts.gpg
Attachments: signature.asc (0.19 KB)


groen692 at grosc

Nov 18, 2009, 4:39 AM

Post #3 of 6 (1008 views)
Permalink
Re: syncing on multiple links [In reply to]

Mark Watts wrote:
> On Wed, 2009-11-18 at 11:56 +0100, Jeroen Groenewegen van der Weyden
> wrote:
>
>> Hello,
>>
>> I'm wondering if there drbd supports a configuration of two nodes with
>> each two nic's in two separate lan's.
>> eg
>> - node 1 connected to lan x and lan y
>> - node 2 connected to lan x and lan y
>>
>> The drbd syncs through both lan-s or fails over from lan x to lan y when
>> lan x fails.
>>
>> mfg,
>>
>
> When you say "two lans" do you mean two different IP Subnets (eth
> 192.168.1.0/24 and 172.16.1.0/24) or do you mean two layer-2 switches?
>
yes, two different subnets.


m.watts at eris

Nov 18, 2009, 4:41 AM

Post #4 of 6 (1003 views)
Permalink
Re: syncing on multiple links [In reply to]

On Wed, 2009-11-18 at 13:39 +0100, Jeroen Groenewegen van der Weyden
wrote:
>
>
> Mark Watts wrote:
> > On Wed, 2009-11-18 at 11:56 +0100, Jeroen Groenewegen van der Weyden
> > wrote:
> >
> > > Hello,
> > >
> > > I'm wondering if there drbd supports a configuration of two nodes with
> > > each two nic's in two separate lan's.
> > > eg
> > > - node 1 connected to lan x and lan y
> > > - node 2 connected to lan x and lan y
> > >
> > > The drbd syncs through both lan-s or fails over from lan x to lan y when
> > > lan x fails.
> > >
> > > mfg,
> > >
> >
> > When you say "two lans" do you mean two different IP Subnets (eth
> > 192.168.1.0/24 and 172.16.1.0/24) or do you mean two layer-2 switches?
> >
> yes, two different subnets.

As I suggested in my previous email, I don't believe this is supported.

Mark.

--
Mark Watts BSc RHCE MBCS
Senior Systems Engineer, Managed Services Manpower
www.QinetiQ.com
QinetiQ - Delivering customer-focused solutions
GPG Key: http://www.linux-corner.info/mwatts.gpg
Attachments: signature.asc (0.19 KB)


bernd at firmix

Nov 18, 2009, 5:00 AM

Post #5 of 6 (1012 views)
Permalink
Re: syncing on multiple links [In reply to]

On Wed, 2009-11-18 at 12:41 +0000, Mark Watts wrote:
> On Wed, 2009-11-18 at 13:39 +0100, Jeroen Groenewegen van der Weyden
> wrote:
> > Mark Watts wrote:
> > > On Wed, 2009-11-18 at 11:56 +0100, Jeroen Groenewegen van der Weyden
> > > wrote:
[...]
> > > > I'm wondering if there drbd supports a configuration of two nodes with
> > > > each two nic's in two separate lan's.
> > > > eg
> > > > - node 1 connected to lan x and lan y
> > > > - node 2 connected to lan x and lan y
> > > >
> > > > The drbd syncs through both lan-s or fails over from lan x to lan y when
> > > > lan x fails.
[...]
> > > When you say "two lans" do you mean two different IP Subnets (eth
> > > 192.168.1.0/24 and 172.16.1.0/24) or do you mean two layer-2 switches?
> > >
> > yes, two different subnets.
>
> As I suggested in my previous email, I don't believe this is supported.
No need to.
Just use kernel bonding of the 2 interfaces to accomplish a "HA network
connection" and DRBD-sync over that.

Bernd
--
Firmix Software GmbH http://www.firmix.at/
mobil: +43 664 4416156 fax: +43 1 7890849-55
Embedded Linux Development and Services


_______________________________________________
drbd-user mailing list
drbd-user [at] lists
http://lists.linbit.com/mailman/listinfo/drbd-user


igor at 3gnt

Nov 18, 2009, 7:50 AM

Post #6 of 6 (1007 views)
Permalink
Re: syncing on multiple links [In reply to]

On 11/18/2009 01:00 PM, Bernd Petrovitsch wrote:
> On Wed, 2009-11-18 at 12:41 +0000, Mark Watts wrote:
>
>> On Wed, 2009-11-18 at 13:39 +0100, Jeroen Groenewegen van der Weyden
>> wrote:
>>
>>> Mark Watts wrote:
>>>
>>>> On Wed, 2009-11-18 at 11:56 +0100, Jeroen Groenewegen van der Weyden
>>>> wrote:
>>>>
> [...]
>
>>>>> I'm wondering if there drbd supports a configuration of two nodes with
>>>>> each two nic's in two separate lan's.
>>>>> eg
>>>>> - node 1 connected to lan x and lan y
>>>>> - node 2 connected to lan x and lan y
>>>>>
>>>>> The drbd syncs through both lan-s or fails over from lan x to lan y when
>>>>> lan x fails.
>>>>>
> [...]
>
>>>> When you say "two lans" do you mean two different IP Subnets (eth
>>>> 192.168.1.0/24 and 172.16.1.0/24) or do you mean two layer-2 switches?
>>>>
>>>>
>>> yes, two different subnets.
>>>
>> As I suggested in my previous email, I don't believe this is supported.
>>
> No need to.
> Just use kernel bonding of the 2 interfaces to accomplish a "HA network
> connection" and DRBD-sync over that.
>
> Bernd
>


Bonding don't solve what it's asking, the simple answer for this is "No,
you can't do that".

Bonding only works if NIC's on both nodes are physically connected to
the same switch and would be in the same network.

I suggest you get a different approach to solve your problem, you can
use bonding but have to stick with only one network and physically
connected to the same switch. And most probably you will only get HA not
throughput.

Good luck.

--
Igor Neves<igor.neves [at] 3gnt>
3GNTW - Tecnologias de Informação, Lda

SIP: igor [at] 3gnt JID: igor [at] 3gnt
ICQ: 249075444 MSN: igor [at] 3gnt
TLM: 00351914503611 PSTN: 00351252377120


_______________________________________________
drbd-user mailing list
drbd-user [at] lists
http://lists.linbit.com/mailman/listinfo/drbd-user

DRBD users RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact Gossamer Threads
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.