d1681e
From 4ea251b0a23ae8fc0740abc2c5d85c09c31e0c70 Mon Sep 17 00:00:00 2001
d1681e
From: Atin Mukherjee <amukherj@redhat.com>
d1681e
Date: Mon, 6 Nov 2017 13:23:32 +0530
d1681e
Subject: [PATCH 42/74] glusterd: restart the brick if qorum status is
d1681e
 NOT_APPLICABLE_QUORUM
d1681e
d1681e
If a volume is not having server quorum enabled and in a trusted storage
d1681e
pool all the glusterd instances from other peers are down, on restarting
d1681e
glusterd the brick start trigger doesn't happen resulting into the
d1681e
brick not coming up.
d1681e
d1681e
> mainline patch : https://review.gluster.org/18669
d1681e
d1681e
Change-Id: If1458e03b50a113f1653db553bb2350d11577539
d1681e
BUG: 1509102
d1681e
Signed-off-by: Atin Mukherjee <amukherj@redhat.com>
d1681e
Reviewed-on: https://code.engineering.redhat.com/gerrit/123055
d1681e
Reviewed-by: Gaurav Yadav <gyadav@redhat.com>
d1681e
---
d1681e
 xlators/mgmt/glusterd/src/glusterd-server-quorum.c | 3 ++-
d1681e
 1 file changed, 2 insertions(+), 1 deletion(-)
d1681e
d1681e
diff --git a/xlators/mgmt/glusterd/src/glusterd-server-quorum.c b/xlators/mgmt/glusterd/src/glusterd-server-quorum.c
d1681e
index 659ff9d..4706403 100644
d1681e
--- a/xlators/mgmt/glusterd/src/glusterd-server-quorum.c
d1681e
+++ b/xlators/mgmt/glusterd/src/glusterd-server-quorum.c
d1681e
@@ -341,7 +341,8 @@ glusterd_do_volume_quorum_action (xlator_t *this, glusterd_volinfo_t *volinfo,
d1681e
          * the bricks that are down are brought up again. In this process it
d1681e
          * also brings up the brick that is purposefully taken down.
d1681e
          */
d1681e
-        if (volinfo->quorum_status == quorum_status)
d1681e
+        if (quorum_status != NOT_APPLICABLE_QUORUM &&
d1681e
+            volinfo->quorum_status == quorum_status)
d1681e
                 goto out;
d1681e
 
d1681e
         if (quorum_status == MEETS_QUORUM) {
d1681e
-- 
d1681e
1.8.3.1
d1681e