[DRBD-user] allow-two-primaries (hot migration) and three nodes...

Thomas Keppler winfr34k at gmail.com
Sat Dec 12 13:47:37 CET 2020


Hi Stéphane,

despite its name, this option simply means "allow many primaries" as of DRBD 9.
I’ve got a similar setup with two Diskful and one Diskless nodes. I don’t know why this shouldn’t work with three Diskful nodes.

--
Best regards
Thomas Keppler

> Am 12.12.2020 um 10:02 schrieb Stéphane Rivière <stef at genesix.org>:
> 
> Hi all,
> 
> Apart from the network consumption, is there a way to have a duplication
> on 3 servers with hot migration of an instance on one of the two other
> servers?
> 
> The "allow-two-primaries" parameter seems to indicate the opposite but I
> ask the question...
> 
> Many thanks for your advice...
> 
> 
> #----------------------------------------------------------------------------
> #--- DRBD instance conf - Configuration DRBD pour GENESIX v3 (dom0 Xen)
> #----------------------------------------------------------------------------
> 
> resource i1c1-disk {
> 
>  device /dev/drbd1;
>  disk      /dev/vg-gnx-001/i1c1-disk;
>  meta-disk /dev/vg-gnx-001/i1c1-meta;
> 
>  on n201c1.genesix.org {
>    address  10.0.1.201:63001;
>    node-id  1;
> 
>  }
> 
>  on n202c1.genesix.org {
>    address  10.0.1.202:63001;
>    node-id  2;
> 
>  }
> 
>  on n203c1.genesix.org {
>    address  10.0.1.203:63001;
>    node-id  3;
> 
>  }
> 
>  connection-mesh {
>    hosts n201c1.genesix.org n202c1.genesix.org; n203c1.genesix.org
>  }
> 
>  net {
>    sndbuf-size 4M;
>    allow-two-primaries yes; <<<< IS THIS ALLOWED ?
>  }
> 
> }
> 
> #----------------------------------------------------------------------------
> #--- EOF
> #----------------------------------------------------------------------------
> 
> -- 
> Stéphane Rivière
> Ile d'Oléron - France
> _______________________________________________
> Star us on GITHUB: https://github.com/LINBIT
> drbd-user mailing list
> drbd-user at lists.linbit.com
> https://lists.linbit.com/mailman/listinfo/drbd-user


More information about the drbd-user mailing list