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