Whamcloud - gitweb
LU-544 reduce the journal size for conf-sanity test 56
authorYu Jian <yujian@whamcloud.com>
Mon, 1 Aug 2011 07:29:11 +0000 (15:29 +0800)
committerJohann Lombardi <johann@whamcloud.com>
Tue, 9 Aug 2011 22:20:00 +0000 (18:20 -0400)
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 <yujian@whamcloud.com>
Change-Id: I43eeaa1edf43420adeb101ae96b1d9faa36fcbbb
Reviewed-on: http://review.whamcloud.com/1171
Tested-by: Hudson
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
Reviewed-by: Johann Lombardi <johann@whamcloud.com>
lustre/tests/conf-sanity.sh

index 51c9b0d..e2704ee 100644 (file)
@@ -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