Whamcloud - gitweb
LU-17036 utils: make sure resize option is legit
authorLi Dongyang <dongyangli@ddn.com>
Thu, 17 Aug 2023 13:27:00 +0000 (23:27 +1000)
committerAndreas Dilger <adilger@whamcloud.com>
Mon, 21 Aug 2023 08:43:30 +0000 (08:43 +0000)
commitc8538f82b5e61b0ce9b21e74e47182e694905802
treebcceddb0e78cd3d0c45ae3f9dba74434ee086e2b
parent6467db735ab28748fdc096054b55dcb21f9ed8ef
LU-17036 utils: make sure resize option is legit

To align the metadata on 1MB boundaries we manually
set the resize blocks to 16368G for 4K block size,
however mke2fs expects the resize blocks is bigger
than device size.

For devices between 16368G and 16384G the mke2fs
will fail with:
The resize maximum must be greater than the filesystem size.

Lustre-change: https://review.whamcloud.com/51970
Lustre-commit: TBD (from adcaa9173e1d09573e3a4cbfe1b3a2494ee13ba3)

Change-Id: I4567a79c1405e9527d7f0f9bec4c8a7aae0eba6c
Test-Parameters: trivial
Signed-off-by: Li Dongyang <dongyangli@ddn.com>
Reviewed-on: https://review.whamcloud.com/c/ex/lustre-release/+/51971
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
lustre/utils/libmount_utils_ldiskfs.c