diff options
author | Atin Mukherjee <amukherj@redhat.com> | 2017-11-06 13:23:32 +0530 |
---|---|---|
committer | Shyamsundar Ranganathan <srangana@redhat.com> | 2017-11-14 15:32:53 +0000 |
commit | f249555338d0a826d63f01a0c895f53a6cb92e65 (patch) | |
tree | 9d6cfe950b9e0f1a714562fa17b88d3055ca472d /xlators | |
parent | 63b541f29fab77c1e801e1e22642bc959febeec5 (diff) |
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: 1511293
Signed-off-by: Atin Mukherjee <amukherj@redhat.com>
(cherry picked from commit 635c1c3691a102aa658cf1219fa41ca30dd134ba)
Diffstat (limited to 'xlators')
-rw-r--r-- | xlators/mgmt/glusterd/src/glusterd-server-quorum.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/xlators/mgmt/glusterd/src/glusterd-server-quorum.c b/xlators/mgmt/glusterd/src/glusterd-server-quorum.c index e1583c4a881..25fbbd5bc56 100644 --- a/xlators/mgmt/glusterd/src/glusterd-server-quorum.c +++ b/xlators/mgmt/glusterd/src/glusterd-server-quorum.c @@ -343,7 +343,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) { |