From ae9d80461a1f95097b7b406d29c020f64c56ffb4 Mon Sep 17 00:00:00 2001 From: Atin Mukherjee Date: Mon, 6 Nov 2017 13:23:32 +0530 Subject: glusterd: restart the brick if qorum status is NOT_APPLICABLE_QUORUM If a volume is not having server quorum enabled and in a trusted storage pool all the glusterd instances from other peers are down, on restarting glusterd the brick start trigger doesn't happen resulting into the brick not coming up. > mainline patch : https://review.gluster.org/#/c/18669/ Change-Id: If1458e03b50a113f1653db553bb2350d11577539 BUG: 1511301 Signed-off-by: Atin Mukherjee (cherry picked from commit 635c1c3691a102aa658cf1219fa41ca30dd134ba) --- xlators/mgmt/glusterd/src/glusterd-server-quorum.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/xlators/mgmt/glusterd/src/glusterd-server-quorum.c b/xlators/mgmt/glusterd/src/glusterd-server-quorum.c index 3084c1eacb9..995a568caa4 100644 --- a/xlators/mgmt/glusterd/src/glusterd-server-quorum.c +++ b/xlators/mgmt/glusterd/src/glusterd-server-quorum.c @@ -341,7 +341,8 @@ glusterd_do_volume_quorum_action (xlator_t *this, glusterd_volinfo_t *volinfo, * the bricks that are down are brought up again. In this process it * also brings up the brick that is purposefully taken down. */ - if (volinfo->quorum_status == quorum_status) + if (quorum_status != NOT_APPLICABLE_QUORUM && + volinfo->quorum_status == quorum_status) goto out; if (quorum_status == MEETS_QUORUM) { -- cgit