From aa90d9a8c96a9683d033456666e00f5065c0aaeb Mon Sep 17 00:00:00 2001 From: Lai Siyao Date: Fri, 15 Jul 2022 04:30:32 -0400 Subject: [PATCH 1/1] LU-16036 test: make sanity-lfsck 15d more robust Now migrating directory LFSCK is not fully supported, thus accessing such directory may fail. To make sanity-lfsck 15d more robust, reformat servers after test. Test-Parameters: trivial mdscount=2 mdtcount=4 testlist=sanity-lfsck env=ONLY=15d,ONLY_REPEAT=100 Fixes: 54a2d4662b58 ("LU-15868 lfsck: don't crash upon dir migration failure") Signed-off-by: Lai Siyao Change-Id: Ie613737ab3e8d294e1f9e5709ceb35baa75790ad Reviewed-on: https://review.whamcloud.com/48048 Tested-by: jenkins Reviewed-by: Andreas Dilger Reviewed-by: Arshad Hussain Tested-by: Maloo Reviewed-by: Oleg Drokin --- lustre/tests/sanity-lfsck.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lustre/tests/sanity-lfsck.sh b/lustre/tests/sanity-lfsck.sh index 29e7e82..960b4d3 100644 --- a/lustre/tests/sanity-lfsck.sh +++ b/lustre/tests/sanity-lfsck.sh @@ -2030,7 +2030,8 @@ test_15d() { # rm $tdir to avoid cleanup failure in the end rm -rf $DIR/$tdir/* $LFS rm_entry $DIR/$tdir/* - rm -rf $DIR/$tdir || error "rm $tdir failed" + rm -rf $DIR/$tdir + REFORMAT="yes" cleanup_and_setup_lustre } run_test 15d "LFSCK don't crash upon dir migration failure" -- 1.8.3.1