Whamcloud - gitweb
LU-18579 utils: lfs_migrate should inherit OST pool 19/57519/11
authorAndreas Dilger <adilger@whamcloud.com>
Thu, 19 Dec 2024 01:58:18 +0000 (18:58 -0700)
committerOleg Drokin <green@whamcloud.com>
Thu, 6 Feb 2025 01:29:08 +0000 (01:29 +0000)
commite3f98f9ba4a9e8df2cda56f6ed65bee21e2e78f6
tree88fe339a1fef4e1e6463734fd1d08133ce1079c4
parent052d622fa1938204f3cb4a9605f692cad3000587
LU-18579 utils: lfs_migrate should inherit OST pool

Fix the lfs_migrate script so that it inherits the OST pool name
from the source file, if it was specified.

Fix the parsing of the existing file layout so that it can properly
handle various YAML formats.

Test-Parameters: trivial
Fixes: 109b5499d3 ("LU-15565 utils: updated lfs getstripe yaml format")
Signed-off-by: Andreas Dilger <adilger@whamcloud.com>
Change-Id: If06d3a682e3807e3856f1f5d2cbbecf31c7fa361
Reviewed-on: https://review.whamcloud.com/c/fs/lustre-release/+/57519
Reviewed-by: Jian Yu <yujian@whamcloud.com>
Reviewed-by: Sergey Cheremencev <scherementsev@ddn.com>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
lustre/scripts/lfs_migrate
lustre/tests/ost-pools.sh
lustre/tests/sanity.sh