Whamcloud - gitweb
LU-16500 utils: set default ost index for lfs migrate 19/49819/3
authorJian Yu <yujian@whamcloud.com>
Wed, 1 Feb 2023 07:11:56 +0000 (23:11 -0800)
committerOleg Drokin <green@whamcloud.com>
Wed, 8 Feb 2023 06:28:08 +0000 (06:28 +0000)
commit0568f4ca253049d324956e3d89ece0cbd2ff2155
treeaebbf339ad5b5b2c0ee671d56082243f1ccf0cbc
parent9ce04000fba07706c73b8adb3605c959e5b62712
LU-16500 utils: set default ost index for lfs migrate

Running "lfs migrate <file>" without any SETSTRIPE arguments
to balance space usage keeps the PFL file layout, but preserves
the OST selection exactly, which makes the migration virtually
useless for space balancing.

This patch fixes the above issue by clearing the specific
OST indices from the source layout before using the layout to
create the volatile file in lfs_migrate().

Signed-off-by: Jian Yu <yujian@whamcloud.com>
Change-Id: I82e1dc0a11fdda7d555df994cf4e5f6e3dbdcb5c
Reviewed-on: https://review.whamcloud.com/c/fs/lustre-release/+/49819
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
Reviewed-by: Zhenyu Xu <bobijam@hotmail.com>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
lustre/tests/sanity.sh
lustre/tests/test-framework.sh
lustre/utils/lfs.c