Whamcloud - gitweb
LU-16500 utils: set default ost index for lfs migrate
authorJian Yu <yujian@whamcloud.com>
Wed, 1 Feb 2023 18:33:59 +0000 (10:33 -0800)
committerAndreas Dilger <adilger@whamcloud.com>
Wed, 8 Feb 2023 05:47:03 +0000 (05:47 +0000)
commit35c1fc850f78e62404bb2d177d9db9f98e9982a4
treeb46ba8b0b5ff9a1a5b7ed576d0c68c19bcbf5e38
parent15b1a9e8567a8899cc3cec9cec63d2d83985879c
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().

Lustre-change: https://review.whamcloud.com/49819
Lustre-commit: TBD (from 58ce6f2c8276df8b1a3b38db016fc301334d589c)

Signed-off-by: Jian Yu <yujian@whamcloud.com>
Change-Id: I82e1dc0a11fdda7d555df994cf4e5f6e3dbdcb5c
Reviewed-on: https://review.whamcloud.com/c/ex/lustre-release/+/49865
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
lustre/tests/sanity.sh
lustre/tests/test-framework.sh
lustre/utils/lfs.c