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