From ed8a63c9b83ce9f64df19a15ec362e1edb04a6f4 Mon Sep 17 00:00:00 2001 From: Andreas Dilger Date: Mon, 27 Feb 2017 21:06:56 -0700 Subject: [PATCH] LU-4825 utils: improve lfs_migrate usage message Improve the warning message printed by lfs_migrate to make it match the OST device names used in Lustre 2.x instead of 1.x device names. Also reference the new max_create_count parameter instead of the old deactivate command, which prevented OST objects from being deleted. Test-Parameters: trivial Signed-off-by: Andreas Dilger Change-Id: I114006afb93d8c8d78923a874f3b914202500c1e Reviewed-on: https://review.whamcloud.com/25661 Tested-by: Jenkins Tested-by: Maloo Reviewed-by: Steve Guminski Reviewed-by: Oleg Drokin --- lustre/scripts/lfs_migrate | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/lustre/scripts/lfs_migrate b/lustre/scripts/lfs_migrate index f9cf91c..6bc0797 100755 --- a/lustre/scripts/lfs_migrate +++ b/lustre/scripts/lfs_migrate @@ -76,10 +76,10 @@ if [ -z "$OPT_YES" ]; then echo "lfs_migrate is currently NOT SAFE for moving in-use files." 1>&2 echo "Use it only when you are sure migrated files are unused." 1>&2 echo "" 1>&2 - echo "If emptying OST(s) that are not disabled on the MDS, new" 1>&2 - echo "files may use them. To prevent MDS allocating any files on" 1>&2 - echo "OSTNNNN run 'lctl --device %{fsname}-OSTNNNN-osc deactivate'" 1>&2 - echo "on the MDS." 1>&2 + echo "If emptying an OST that is active on the MDS, new files may" 1>&2 + echo "use it. To stop allocating any new objects on OSTNNNN run:" 1>&2 + echo " lctl set_param osp.-OSTNNNN*.max_create_count=0'" 1>&2 + echo "on each MDS using the OST(s) being emptied." 1>&2 echo -n "Continue? (y/n) " read CHECK [ "$CHECK" != "y" -a "$CHECK" != "yes" ] && exit 1 -- 1.8.3.1