Whamcloud - gitweb
LU-16938 utils: setstripe overstripe multiple OST count 92/54192/13
authorRajeev Mishra <rajeevm@hpe.com>
Fri, 9 Feb 2024 16:49:45 +0000 (16:49 +0000)
committerOleg Drokin <green@whamcloud.com>
Wed, 29 May 2024 04:41:53 +0000 (04:41 +0000)
commit1a6ef725c285dd5c25c976956ba754dc470f6c1c
tree7dfd3fa030ab237e21c85b714e165b442d98cb9d
parent7ee0d88278a1bc0d484ebe6c37c23c8ac07133ef
LU-16938 utils: setstripe overstripe multiple OST count

Add an option to "lfs setstripe -C" to specify stripe counts
that are a multiple of the number of OSTs in the filesystem.
Using "-C -1" will create one stripe on all (available) OSTs,
as with "-c -1", to avoid too many stripes.  Using "-C -2"
will create two stripes on each OST, etc.

The maximum multiplier is currently "-C -32", which will
create 32 stripes per OST. It is still possible to specify
a large positive stripe count directly to  "-C" for testing
purposes and to maintain compatibility with current usage.

HPE-bug-id:LUS-11793
Signed-off-by: Rajeev Mishra <rajeevm@hpe.com>
Change-Id: Ib0462d7a9b71853419ea7c30741bb35d576f0d71
Reviewed-on: https://review.whamcloud.com/c/fs/lustre-release/+/54192
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
Reviewed-by: Patrick Farrell <patrick.farrell@oracle.com>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
13 files changed:
lustre/doc/lfs-setstripe.1
lustre/include/lu_object.h
lustre/include/lustre/lustreapi.h
lustre/include/uapi/linux/lustre/lustre_idl.h
lustre/include/uapi/linux/lustre/lustre_user.h
lustre/lod/lod_object.c
lustre/lod/lod_qos.c
lustre/tests/llapi_layout_test.c
lustre/tests/sanity-flr.sh
lustre/tests/sanity.sh
lustre/utils/lfs.c
lustre/utils/liblustreapi_layout.c
lustre/utils/lustreapi_internal.h