diff options
authorAshish Pandey <>2017-08-10 12:56:32 +0530
committerShyamsundar Ranganathan <>2017-08-12 13:38:51 +0000
commitcdb03a71fe0af131d09046cd673dfc58b4003550 (patch)
parent22ac7241b2f8c1bb3db2678b8b6b9a364f14876c (diff)
mgmt/glusterd: Provide more information in command message
Problem: When more than one bricks are present on the same node, while creating a volume, we get a warning message that the setup is not optimal. We need to add more information in this error/warning. Solution: Add following line in current message. Bricks should be on different nodes to have best fault tolerant configuration. >Change-Id: Ica72bd6e68dff7e41c37617f3b775a981fa40c69 >BUG: 1480099 >Signed-off-by: Ashish Pandey <> >Reviewed-on: >CentOS-regression: Gluster Build System <> >Smoke: Gluster Build System <> >Reviewed-by: Atin Mukherjee <> >Signed-off-by: Ashish Pandey <> Change-Id: Ica72bd6e68dff7e41c37617f3b775a981fa40c69 BUG: 1480448 Signed-off-by: Ashish Pandey <> Reviewed-on: Reviewed-by: Atin Mukherjee <> Smoke: Gluster Build System <> CentOS-regression: Gluster Build System <>
1 files changed, 5 insertions, 3 deletions
diff --git a/xlators/mgmt/glusterd/src/glusterd-volume-ops.c b/xlators/mgmt/glusterd/src/glusterd-volume-ops.c
index b95b8a4..9ce600e 100644
--- a/xlators/mgmt/glusterd/src/glusterd-volume-ops.c
+++ b/xlators/mgmt/glusterd/src/glusterd-volume-ops.c
@@ -100,9 +100,11 @@ glusterd_check_brick_order(dict_t *dict, char *err_str)
" if you want to override this behavior. ";
const char found_string[2048] = "Multiple bricks of a %s "
"volume are present on the same server. This "
- "setup is not optimal. Use 'force' at the "
- "end of the command if you want to override "
- "this behavior. ";
+ "setup is not optimal. Bricks should be on "
+ "different nodes to have best fault tolerant "
+ "configuration. Use 'force' at the end of the "
+ "command if you want to override this "
+ "behavior. ";
this = THIS;