Commit f38478b2 authored by Iustin Pop's avatar Iustin Pop
Browse files

Allow DRBD8 to sync after sb1-pri with no changes

Currently the way we shutdown or startup disks seems to make DRBD8
unhappy. Until we rewrite the sequence of (de)activation, allow DRBD to
connect after a sb1-pri condition with no changes to the data.

Reviewed-by: imsnah
parent b352ab5b
......@@ -1806,8 +1806,10 @@ class DRBD8(BaseDRBD):
"""
lhost, lport, rhost, rport = net_info
args = ["drbdsetup", cls._DevPath(minor), "net",
"%s:%s" % (lhost, lport), "%s:%s" % (rhost, rport),
protocol]
"%s:%s" % (lhost, lport), "%s:%s" % (rhost, rport), protocol,
"-A", "discard-zero-changes",
"-B", "consensus",
]
if dual_pri:
args.append("-m")
if hmac and secret:
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment