Add initial meta-stx to support StarlingX build
[pti/rtp.git] / meta-stx / recipes-support / puppet / files / puppet-drbd / 0009-drbd-slow-before-swact.patch
1 From 2628193e8aef471caab27ada848fa8d7de6d93ec Mon Sep 17 00:00:00 2001
2 From: Daniel Badea <daniel.badea@windriver.com>
3 Date: Wed, 13 Jun 2018 14:16:53 +0000
4 Subject: [PATCH] drbd slow before swact
5
6 ---
7  manifests/resource/up.pp | 2 +-
8  1 file changed, 1 insertion(+), 1 deletion(-)
9
10 diff --git a/manifests/resource/up.pp b/manifests/resource/up.pp
11 index c3557e1..11cf7ee 100644
12 --- a/manifests/resource/up.pp
13 +++ b/manifests/resource/up.pp
14 @@ -23,7 +23,7 @@ define drbd::resource::up (
15    # drbd is very tenacious about asking for aproval if there is data on the
16    # volume already.
17    exec { "initialize DRBD metadata for ${name}":
18 -    command => "yes yes | drbdadm create-md ${name}",
19 +    command => "yes yes | drbdadm create-md ${name} -W--peer-max-bio-size=128k",
20      onlyif  => "test -e ${disk}",
21      unless  => "drbdadm dump-md ${name} || (drbdadm cstate ${name} | egrep -q '^(PausedSync|Sync|Connected|WFConnection|StandAlone|Verify)') || (drbdadm show-gi ${name} | grep 'meta-data: need apply-al')",
22      before  => Service['drbd'],
23 -- 
24 1.8.3.1
25