e3c68b
From be925e84edcecd879e953bdb68c10f98825dba53 Mon Sep 17 00:00:00 2001
e3c68b
From: Shwetha K Acharya <sacharya@redhat.com>
e3c68b
Date: Mon, 3 Jun 2019 18:05:24 +0530
e3c68b
Subject: [PATCH 186/192] cli: Remove-brick warning seems unnecessary
e3c68b
e3c68b
As force-migration option is disabled by default,
e3c68b
the warning seems unnessary.
e3c68b
e3c68b
Rephrased the warning to make best sense out of it.
e3c68b
e3c68b
>fixes: bz#1712668
e3c68b
>Change-Id: Ia18c3c5e7b3fec808fce2194ca0504a837708822
e3c68b
>Signed-off-by: Shwetha K Acharya <sacharya@redhat.com>
e3c68b
e3c68b
backport of https://review.gluster.org/#/c/glusterfs/+/22805/
e3c68b
e3c68b
Bug: 1708183
e3c68b
Change-Id: Ia18c3c5e7b3fec808fce2194ca0504a837708822
e3c68b
Signed-off-by: Shwetha K Acharya <sacharya@redhat.com>
e3c68b
Reviewed-on: https://code.engineering.redhat.com/gerrit/173447
e3c68b
Tested-by: RHGS Build Bot <nigelb@redhat.com>
e3c68b
Reviewed-by: Sunil Kumar Heggodu Gopala Acharya <sheggodu@redhat.com>
e3c68b
---
e3c68b
 cli/src/cli-cmd-volume.c | 17 +++++++++--------
e3c68b
 1 file changed, 9 insertions(+), 8 deletions(-)
e3c68b
e3c68b
diff --git a/cli/src/cli-cmd-volume.c b/cli/src/cli-cmd-volume.c
e3c68b
index 564aef7..a42e663 100644
e3c68b
--- a/cli/src/cli-cmd-volume.c
e3c68b
+++ b/cli/src/cli-cmd-volume.c
e3c68b
@@ -2090,14 +2090,15 @@ cli_cmd_volume_remove_brick_cbk(struct cli_state *state,
e3c68b
             " on the volume.\nDo you want to continue?";
e3c68b
     } else if (command == GF_OP_CMD_START) {
e3c68b
         question =
e3c68b
-            "Running remove-brick with cluster.force-migration"
e3c68b
-            " enabled can result in data corruption. It is safer"
e3c68b
-            " to disable this option so that files that receive "
e3c68b
-            "writes during migration are not migrated.\nFiles "
e3c68b
-            "that are not migrated can then be manually copied "
e3c68b
-            "after the remove-brick commit operation.\nDo you "
e3c68b
-            "want to continue with your current "
e3c68b
-            "cluster.force-migration settings?";
e3c68b
+            "It is recommended that remove-brick be run with"
e3c68b
+            " cluster.force-migration option disabled to prevent"
e3c68b
+            " possible data corruption. Doing so will ensure that"
e3c68b
+            " files that receive writes during migration will not"
e3c68b
+            " be migrated and will need to be manually copied"
e3c68b
+            " after the remove-brick commit operation. Please"
e3c68b
+            " check the value of the option and update accordingly."
e3c68b
+            " \nDo you want to continue with your current"
e3c68b
+            " cluster.force-migration settings?";
e3c68b
     }
e3c68b
 
e3c68b
     if (!brick_count) {
e3c68b
-- 
e3c68b
1.8.3.1
e3c68b