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