[DRBD-user] Using 2 Interfaces for the same drbd device ?

via.lej at free.fr via.lej at free.fr
Mon Aug 27 19:19:12 CEST 2007

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


Hello,

	Is it possible to use 2 different interfaces (only by drbd.conf) to synchronise the 2 drbd volumes ? Is it possible to configure drbd as it :

--File drdb.conf--------->
  disk {
     # if the lower level device reports io-error you have the choice of
     #  "pass_on"  ->  Report the io-error to the upper layers.
     #                 Primary   -> report it to the mounted file system.
     #                 Secondary -> ignore it.
     #  "call-local-io-error"
     #             ->  Call the script configured by the name "local-io-error".
     #  "detach"   ->  The node drops its backing storage device, and
     #                 continues in disk less mode.
     #
     on-io-error   call-local-io-error;

     fencing dont-care;

     # In case you only want to use a fraction of the available space
     # you might use the "size" option here.
     #
     # size 10G;
   }

   net {

      timeout       50;    #  5 seconds  (unit = 0.1 seconds)
      connect-int   1;    # 10 seconds  (unit = 1 second)
      ping-int      1;    # 10 seconds  (unit = 1 second)
      ping-timeout   5;    # 500 ms (unit = 0.1 seconds)

     cram-hmac-alg "sha1";
     shared-secret "InetCluster";

     after-sb-0pri discard-younger-primary;

     after-sb-1pri consensus;

     after-sb-2pri disconnect;

    rr-conflict call-pri-lost;
   }

   syncer {
     rate 650M;
     al-extents 257;
   }

   on Inet-Primaire {
     device     /dev/drbd0;
     disk       /dev/sda3;
     address    192.168.0.1:7788;
     address    10.0.254.1:7788;
     flexible-meta-disk  internal;

   }

   on Inet-Secondaire {
     device    /dev/drbd0;
     disk      /dev/sda3;
     address    192.168.0.2:7788;
     address   10.0.254.2:7788;
     meta-disk internal;
   }

   on Inet-Primaire {
     device     /dev/drbd0;
     disk       /dev/sda3;
     address    10.0.254.1:7788;
     flexible-meta-disk  internal;

   }

   on Inet-Secondaire {
     device    /dev/drbd0;
     disk      /dev/sda3;
      address   10.0.254.2:7788;
     meta-disk internal;
   }
}
----------------->



More information about the drbd-user mailing list