Revision d30fa488

b/lib/block/drbd_cmdgen.py
306 306

  
307 307
  def GenInitMetaCmd(self, minor, meta_dev):
308 308
    return ["drbdmeta", "--force", self._DevPath(minor),
309
            "v08", meta_dev, "0", "create-md"]
309
            "v08", meta_dev, "flex-external", "create-md"]
310 310

  
311 311
  def GenLocalInitCmds(self, minor, data_dev, meta_dev, size_mb, params):
312 312
    cmds = []
......
317 317
    # We need to apply the activity log before attaching the disk else drbdsetup
318 318
    # will fail.
319 319
    cmds.append(["drbdmeta", self._DevPath(minor),
320
                 "v08", meta_dev, "0", "apply-al"])
320
                 "v08", meta_dev, "flex-external", "apply-al"])
321 321

  
322
    attach_cmd = ["drbdsetup", "attach", minor, data_dev, meta_dev, "0",
322
    attach_cmd = ["drbdsetup", "attach", minor, data_dev, meta_dev, "flexible",
323 323
                  "--on-io-error=detach"]
324 324
    if size_mb:
325 325
      attach_cmd.extend(["--size", "%sm" % size_mb])

Also available in: Unified diff