path: root/xlators/mgmt/glusterd/src/glusterd-brick-ops.c
diff options
authorGaurav Yadav <>2017-02-16 13:02:20 +0530
committerAtin Mukherjee <>2017-02-17 09:47:34 -0500
commit64637d040d7f63ef6af6588ae17a557ad0229710 (patch)
treea2ecb050399ea040ce2ca50c9a8303638a396b53 /xlators/mgmt/glusterd/src/glusterd-brick-ops.c
parent9c89eaf85c2ce4fba2551f1a08c358161ab99859 (diff)
glusterd : Fix for error message while removing brick
When remove-brick command is issued to a offline brick, glusterd error out the operation with message -: "volume remove-brick start: failed: Found stopped brick <hostname>:". With this fix while removing brick, error message is modified to "volume remove-brick start: failed: Found stopped brick <brick path>. Use force option to remove the brick" Change-Id: Id40a02fc38cdb526c4629de262967fe2383febe4 BUG: 1422624 Signed-off-by: Gaurav Yadav <> Reviewed-on: Smoke: Gluster Build System <> NetBSD-regression: NetBSD Build System <> CentOS-regression: Gluster Build System <> Reviewed-by: Atin Mukherjee <>
Diffstat (limited to 'xlators/mgmt/glusterd/src/glusterd-brick-ops.c')
1 files changed, 2 insertions, 1 deletions
diff --git a/xlators/mgmt/glusterd/src/glusterd-brick-ops.c b/xlators/mgmt/glusterd/src/glusterd-brick-ops.c
index 3e358e9..2efa31b 100644
--- a/xlators/mgmt/glusterd/src/glusterd-brick-ops.c
+++ b/xlators/mgmt/glusterd/src/glusterd-brick-ops.c
@@ -2030,7 +2030,8 @@ glusterd_remove_brick_validate_bricks (gf1_op_commands cmd, int32_t brick_count,
if (brickinfo->status != GF_BRICK_STARTED) {
snprintf (msg, sizeof (msg), "Found stopped "
- "brick %s", brick);
+ "brick %s. Use force option to "
+ "remove the offline brick" , brick);
*errstr = gf_strdup (msg);
ret = -1;
goto out;