From b231e3ae5cf7df6abf1fbd683589f0fcff2de03f Mon Sep 17 00:00:00 2001 From: Jian Yu Date: Thu, 8 Mar 2018 11:08:59 -0800 Subject: [PATCH] LU-10465 lov: decrease default stripe size to 1MB Commit 3f5abc6fa30e7c0256077ccf6a149d1809450465 increased the default stripe size from 1MB to 4MB. However, this caused usability issue in LU-10786 for PFL/DoM files. This patch changes the default stripe size back to 1MB until we have a better method of handling DoM components. Otherwise, it means that DoM files will not be created easily with default settings. Change-Id: Ie6b6fe97596ed65abec771b3f37afd950dc821c8 Signed-off-by: Jian Yu Reviewed-on: https://review.whamcloud.com/31589 Tested-by: Jenkins Reviewed-by: Andreas Dilger Reviewed-by: Mike Pershin Reviewed-by: Fan Yong Tested-by: Maloo --- lustre/doc/lfs-setstripe.1 | 2 +- lustre/include/uapi/linux/lustre/lustre_idl.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lustre/doc/lfs-setstripe.1 b/lustre/doc/lfs-setstripe.1 index cc9f036..12b904b 100644 --- a/lustre/doc/lfs-setstripe.1 +++ b/lustre/doc/lfs-setstripe.1 @@ -130,7 +130,7 @@ over all available OSTs. .TP .B -S\fR, \fB--stripe-size \fR<\fIstripe_size\fR> The number of bytes to store on each OST before moving to the next OST. \fB0\fR -means to use the filesystem-wide default stripe_size (default 4MB). +means to use the filesystem-wide default stripe_size (default 1MB). .TP .B -i\fR, \fB--stripe-index \fR<\fIstart_ost_index\fR> The OST index (starting at 0) on which to start striping for this file. \fB-1\fR diff --git a/lustre/include/uapi/linux/lustre/lustre_idl.h b/lustre/include/uapi/linux/lustre/lustre_idl.h index 5486f12..017931c9 100644 --- a/lustre/include/uapi/linux/lustre/lustre_idl.h +++ b/lustre/include/uapi/linux/lustre/lustre_idl.h @@ -2232,7 +2232,7 @@ enum lfsck_cmd { #define LOV_DESC_MAGIC 0xB0CCDE5C #define LOV_DESC_QOS_MAXAGE_DEFAULT 5 /* Seconds */ -#define LOV_DESC_STRIPE_SIZE_DEFAULT (4 << LNET_MTU_BITS) +#define LOV_DESC_STRIPE_SIZE_DEFAULT (1 << LNET_MTU_BITS) /* LOV settings descriptor (should only contain static info) */ struct lov_desc { -- 1.8.3.1