lazyinit gets more than 24H on typical OST installation
and produces writes inside read. This influences to benchmark
tests that are usually executed just after cluster installation
is complete. Testing shows, disabling that feature adds ~30 sec
to formating OST drive so that is not a noticeable time during
install.
Explicitly send lazy_itable_init and lazy_journal_init in
conf_sanity 116 to avoid out of disk space.
HPE-bug-id: LUS-3358
Signed-off-by: Artem Blagodarenko <artem.blagodarenko@hpe.com>
Signed-off-by: Alexey Lyashkov <alexey.lyashkov@hpe.com>
Change-Id: I95bfa43d11cd67c890b036aa0b71fae4c1eea37d
Reviewed-on: https://review.whamcloud.com/38534
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
Reviewed-by: Alex Zhuravlev <bzzz@whamcloud.com>
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
MDSSIZE=$old_mdssize
MDSISIZE=$old_mdsisize
MDSSIZE=$old_mdssize
MDSISIZE=$old_mdsisize
- do_facet $SINGLEMDS $MKFS $opts17t $tmpmnt/$mdtimg ||
+
+ do_facet $SINGLEMDS $MKFS \
+ ${opts17t/-E /-E lazy_itable_init,lazy_journal_init,} \
+ $tmpmnt/$mdtimg ||
error "failed to mkfs for $tmpmnt/$mdtimg"
do_facet $SINGLEMDS $TUNE2FS -l $tmpmnt/$mdtimg |
error "failed to mkfs for $tmpmnt/$mdtimg"
do_facet $SINGLEMDS $TUNE2FS -l $tmpmnt/$mdtimg |
}
/* Avoid zeroing out the full journal - speeds up mkfs */
}
/* Avoid zeroing out the full journal - speeds up mkfs */
- if (is_e2fsprogs_feature_supp("-E lazy_journal_init"))
+ if (is_e2fsprogs_feature_supp("-E lazy_journal_init=0")) {
append_unique(start, ext_opts ? "," : " -E ",
append_unique(start, ext_opts ? "," : " -E ",
- "lazy_journal_init", NULL, maxbuflen);
+ "lazy_journal_init=0", NULL, maxbuflen);
+ ext_opts = 1;
+ }
+ if (is_e2fsprogs_feature_supp("-E lazy_itable_init=0")) {
+ append_unique(start, ext_opts ? "," : "-E",
+ "lazy_itable_init=0", NULL, maxbuflen);
+ ext_opts = 1;
+ }
+
/* end handle -E mkfs options */
/* Allow reformat of full devices (as opposed to partitions).
/* end handle -E mkfs options */
/* Allow reformat of full devices (as opposed to partitions).