Whamcloud - gitweb
LU-13090 utils: fix lfs_migrate -p for file with pool 13/37813/2
authorAndreas Dilger <adilger@whamcloud.com>
Thu, 19 Dec 2019 11:51:41 +0000 (04:51 -0700)
committerOleg Drokin <green@whamcloud.com>
Mon, 6 Apr 2020 21:15:07 +0000 (21:15 +0000)
commitc7b3f4dce2ffda3934798946bf14bb2614319919
tree9ee28845e534b7de9a5ca1624132c8a5f47a87ba
parent70ab71892c1ec4d3b624fa157752146fc606426c
LU-13090 utils: fix lfs_migrate -p for file with pool

If "lfs_migrate -p <pool>" is run to migrate a file with an existing
pool, the given pool is overridden by the existing pool from the file
during migration.  Fix this to use the OST pool requested by the user.

Don't print a warning about deprecated -n option if --dry-run is used.

If a pool is specified, use it with "lfs df" to find OST free space.

Change temp filename to work better with new DNE "crush" hash.

Don't return an error if falling back to rsync and no links are found.

Add test for "lfs_migrate -p" and update man page and usage to match.
Clean up debug-level helpers in test-framework.sh.

Lustre-change: https://review.whamcloud.com/37067
Lustre-commit: 128137adfc539dd2dd92040c14a63ff27f969820

Test-Parameters: trivial testlist=ost-pools
Signed-off-by: Andreas Dilger <adilger@whamcloud.com>
Change-Id: Ief69a620fc969aeff24ec0633a3314c3b83ebbe5
Reviewed-by: Emoly Liu <emoly@whamcloud.com>
Reviewed-by: Jian Yu <yujian@whamcloud.com>
Signed-off-by: Minh Diep <mdiep@whamcloud.com>
Reviewed-on: https://review.whamcloud.com/37813
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
lustre/doc/lfs_migrate.1
lustre/scripts/lfs_migrate
lustre/tests/ost-pools.sh
lustre/tests/test-framework.sh