From da3ed4dbc862a47b791a027f2be63236bc69ebae Mon Sep 17 00:00:00 2001 From: Yu Jian Date: Mon, 1 Aug 2011 15:29:11 +0800 Subject: [PATCH] LU-544 reduce the journal size for conf-sanity test 56 1) reduce the journal size from 16MB to 8MB for reformatting the MDT device which has a small size (40MB) 2) speed up filesystem initialization by passing "-E lazy_itable_init" to mke2fs Signed-off-by: Yu Jian Change-Id: I43eeaa1edf43420adeb101ae96b1d9faa36fcbbb Reviewed-on: http://review.whamcloud.com/1171 Tested-by: Hudson Reviewed-by: Andreas Dilger Reviewed-by: Johann Lombardi --- lustre/tests/conf-sanity.sh | 15 +++++++++++---- 1 file changed, 11 insertions(+), 4 deletions(-) diff --git a/lustre/tests/conf-sanity.sh b/lustre/tests/conf-sanity.sh index 51c9b0d..e2704ee 100644 --- a/lustre/tests/conf-sanity.sh +++ b/lustre/tests/conf-sanity.sh @@ -2279,15 +2279,22 @@ not $file_size" run_test 55 "check lov_objid size" test_56() { - add mds $MDS_MKFS_OPTS --mkfsoptions='\"-J size=16\"' --reformat $MDSDEV - add ost1 $OST_MKFS_OPTS --index=1000 --reformat `ostdevname 1` - add ost2 $OST_MKFS_OPTS --index=10000 --reformat `ostdevname 2` + add mds $MDS_MKFS_OPTS \ + --mkfsoptions='\"-J size=8 -E lazy_itable_init\"' \ + --reformat $MDSDEV || error "failed to reformat mds" + add ost1 $OST_MKFS_OPTS --mkfsoptions='\"-E lazy_itable_init\"' \ + --index=1000 --reformat $(ostdevname 1) || \ + error "failed to reformat ost1" + add ost2 $OST_MKFS_OPTS --mkfsoptions='\"-E lazy_itable_init\"' \ + --index=10000 --reformat $(ostdevname 2) || \ + error "failed to reformat ost2" start_mds start_ost start_ost2 || error "Unable to start second ost" mount_client $MOUNT || error "Unable to mount client" - [ -n "$ENABLE_QUOTA" ] && { $LFS quotacheck -ug $MOUNT || error "quotacheck has failed" ; } + [ -n "$ENABLE_QUOTA" ] && \ + { $LFS quotacheck -ug $MOUNT || error "quotacheck has failed"; } stopall reformat -- 1.8.3.1