Whamcloud - gitweb
LU-4825 utils: improve lfs_migrate usage message 61/25661/5
authorAndreas Dilger <andreas.dilger@intel.com>
Tue, 28 Feb 2017 04:06:56 +0000 (21:06 -0700)
committerOleg Drokin <oleg.drokin@intel.com>
Tue, 13 Jun 2017 16:54:28 +0000 (16:54 +0000)
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 <andreas.dilger@intel.com>
Change-Id: I114006afb93d8c8d78923a874f3b914202500c1e
Reviewed-on: https://review.whamcloud.com/25661
Tested-by: Jenkins
Tested-by: Maloo <hpdd-maloo@intel.com>
Reviewed-by: Steve Guminski <stephenx.guminski@intel.com>
Reviewed-by: Oleg Drokin <oleg.drokin@intel.com>
lustre/scripts/lfs_migrate

index f9cf91c..6bc0797 100755 (executable)
@@ -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 "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.<fsname>-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
        echo -n "Continue? (y/n) "
        read CHECK
        [ "$CHECK" != "y" -a "$CHECK" != "yes" ] && exit 1