[DRBD-user] Questions and discussions about load-balance-paths

Mr.R 2697166484 at qq.com
Mon Jan 29 08:06:00 CET 2024


Hi all,

From the introduction of load-balance-Paths, I think it realizes the fault tolerance and load balancing of drbd network.

Below is my configuration file:
















/etc/drbd.d/drbd1.res:


resource drbd1 {
 connection {
        path {
                host ha-155  address  192.168.122.65:7789;
                host ha-156  address  192.168.122.66:7789;
        }
        path {
                host ha-155  address  192.168.122.155:7789;
                host ha-156  address  192.168.122.156:7789;
        }
   }
   on ha-155 {
                device /dev/drbd1;
                disk   /dev/sdb;
                meta-disk internal;
                node-id 1;
   }
   on ha-156 {
                device /dev/drbd1;
                disk   /dev/sdb;
                meta-disk internal;
                node-id 2;
   }
}



/etc/drbd.d/global_common.conf


net {
                load-balance-paths yes;
        }



After two network paths are created, run the drbdsetup events2 --now command to find that the two paths are connected.




After the second network is disconnected, run the drbdsetup events2 --now command to find that the two paths are still connected.




After the first network is disconnected, run the drbdsetup events2 --now command to find that both paths are disconnected.




According to my understanding, disconnect one of the networks and keep the other one connected, but the result is not so. 




What's my problem? Do you have any suggestions?




Thanks!
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.linbit.com/pipermail/drbd-user/attachments/20240129/e6b30414/attachment.htm>


More information about the drbd-user mailing list