From: Andrew Perepechko Date: Tue, 31 Aug 2010 13:43:45 +0000 (+0400) Subject: b=22658 clean up the CATALOG when a llog is not found, testcase X-Git-Tag: 2.0.52.0~13 X-Git-Url: https://git.whamcloud.com/?p=fs%2Flustre-release.git;a=commitdiff_plain;h=e26cc217cd438ce75a35dcd6b9864b08cbd9f780 b=22658 clean up the CATALOG when a llog is not found, testcase i=Mikhail Pershin i=Johann Lombardi --- diff --git a/lustre/tests/conf-sanity.sh b/lustre/tests/conf-sanity.sh index a6e690b..7cd3765 100644 --- a/lustre/tests/conf-sanity.sh +++ b/lustre/tests/conf-sanity.sh @@ -2501,6 +2501,28 @@ test_59() { run_test 59 "writeconf mount option" +test_58() { # bug 22658 + [ "$FSTYPE" != "ldiskfs" ] && skip "not supported for $FSTYPE" && return + setup + mkdir -p $DIR/$tdir + createmany -o $DIR/$tdir/$tfile-%d 100 + # make sure that OSTs do not cancel llog cookies before we unmount the MDS +#define OBD_FAIL_OBD_LOG_CANCEL_NET 0x601 + do_facet mds "lctl set_param fail_loc=0x601" + unlinkmany $DIR/$tdir/$tfile-%d 100 + stop mds + local MNTDIR=$(facet_mntpt mds) + # remove all files from the OBJECTS dir + do_facet mds "mount -t ldiskfs $MDSDEV $MNTDIR" + do_facet mds "find $MNTDIR/OBJECTS -type f -delete" + do_facet mds "umount $MNTDIR" + # restart MDS with missing llog files + start_mds + do_facet mds "lctl set_param fail_loc=0" + reformat +} +run_test 58 "missing llog files must not prevent MDT from mounting" + if ! combined_mgs_mds ; then stop mgs fi