[DRBD-user] 'Conflicting use of IP' error

Jeff Orr jeff at attributor.com
Fri Sep 5 20:48:29 CEST 2008

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


Each resource needs its own port? o.0 In that case I will have to adjust
the firewall settings on both machines. No matter, it works now. Is this
mentioned in the DRBD docs, that each resource needs its own port?

Regards,
Jeff Orr
Attributor Corporation


Pascal Charest wrote:
> Hi,
>
> First, your 2 resources should have different name.
> Second, you should use a different port for your second resources the
> first one already being binded by your first resources.
>
> That should take care of your problem.
>
> Pascal
>
> --
> Pascal Charest, Free software consultant {GNU/Linux}
> http://blog.pacharest.com
>
>
>
> On Fri, Sep 5, 2008 at 2:06 PM, Jeff Orr <jeff at attributor.com> wrote:
>   
>> Hello!
>>
>> I have DRBD 8.2.6 up and working on my two CentOS 32-bit servers. Now I
>> am trying to add a second resource on the machines, I am getting this error:
>>
>> /etc/drbd.conf:57: conflicting use of IP 'a.b.c.d:7789' ...
>> /etc/drbd.conf:31: IP 'a.b.c.d:7789' first used here.
>>
>>
>>
>> Here is my (sanitized) config file:
>>
>> resource datavol {
>>  handlers {
>>  pri-on-incon-degr "echo 'DRBD: primary requested but inconsistent!' |
>> wall; /etc/init.d/heartbeat stop";
>>  pri-lost-after-sb "echo 'DRBD: primary requested but lost!' | wall;
>> /etc/init.d/heartbeat stop";
>>  }
>>
>>  on host1 {
>>    device    /dev/drbd1;
>>    disk      /dev/sda5;
>>    address a.b.c.d:7789;
>>    meta-disk internal;
>>  }
>>  on host2 {
>>    device    /dev/drbd1;
>>    disk      /dev/sda5;
>>    address   a.b.c.e:7789;
>>  }
>>
>>  startup {
>>   degr-wfc-timeout 30; #2m timeout
>>  }
>>
>>  disk {
>>   on-io-error detach;
>>  }
>> }
>>
>> resource datavol {
>>  handlers {
>>  pri-on-incon-degr "echo 'DRBD: primary requested but inconsistent!' |
>> wall; /etc/init.d/heartbeat stop";
>>  pri-lost-after-sb "echo 'DRBD: primary requested but lost!' | wall;
>> /etc/init.d/heartbeat stop";
>>  }
>>
>>  on host1 {
>>    device    /dev/drbd5;
>>    disk      /dev/loop1;
>>    address a.b.c.d:7789;
>>    meta-disk internal;
>>  }
>>  on host2 {
>>    device    /dev/drbd5;
>>    disk      /dev/loop1;
>>    address   a.b.c.e:7789;
>>    meta-disk internal;
>>  }
>> }
>>
>>
>> If I leave the 'address' lines off the second resource, I get a 'missing
>> address' error. Any thoughts?
>>
>> Regards,
>> Jeff Orr
>> Attributor Corporation
>> _______________________________________________
>> drbd-user mailing list
>> drbd-user at lists.linbit.com
>> http://lists.linbit.com/mailman/listinfo/drbd-user
>>
>>     




More information about the drbd-user mailing list