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

Stéphane Rivière stef at genesix.org
Sat Dec 12 10:02:42 CET 2020


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


More information about the drbd-user mailing list