From 79e65c81349f539aa2960a1889144ce71d91351e Mon Sep 17 00:00:00 2001 From: Emoly Liu Date: Wed, 12 Mar 2014 07:05:01 +0800 Subject: [PATCH] LU-4748 test: get one single qos_threshold_rr number In sanity.sh test_116b, if there are multiple MDTs on the same MDS, we should get one single qos_threshold_rr number instead of the array, otherwise it will cause resetting qos_threshold_rr failure. Signed-off-by: Emoly Liu Change-Id: Ie779769f7ee35cd118fb6412fe3352a03254b9d3 Reviewed-on: http://review.whamcloud.com/9580 Tested-by: Jenkins Tested-by: Maloo Reviewed-by: Jian Yu Reviewed-by: Bob Glossman Reviewed-by: Andreas Dilger --- lustre/tests/sanity.sh | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/lustre/tests/sanity.sh b/lustre/tests/sanity.sh index a1c5f65..94dd3cd 100644 --- a/lustre/tests/sanity.sh +++ b/lustre/tests/sanity.sh @@ -6944,14 +6944,17 @@ test_116b() { # LU-2093 [ $PARALLEL == "yes" ] && skip "skip parallel run" && return #define OBD_FAIL_MDS_OSC_CREATE_FAIL 0x147 local old_rr - old_rr=$(do_facet $SINGLEMDS lctl get_param -n lov.*mdtlov*.qos_threshold_rr) - do_facet $SINGLEMDS lctl set_param lov.*mdtlov*.qos_threshold_rr 0 + old_rr=$(do_facet $SINGLEMDS lctl get_param -n \ + lo*.$FSNAME-MDT0000-mdtlov.qos_threshold_rr | head -1) + do_facet $SINGLEMDS lctl set_param \ + lo*.$FSNAME-MDT0000-mdtlov.qos_threshold_rr=0 mkdir -p $DIR/$tdir do_facet $SINGLEMDS lctl set_param fail_loc=0x147 createmany -o $DIR/$tdir/f- 20 || error "can't create" do_facet $SINGLEMDS lctl set_param fail_loc=0 rm -rf $DIR/$tdir - do_facet $SINGLEMDS lctl set_param lov.*mdtlov*.qos_threshold_rr $old_rr + do_facet $SINGLEMDS lctl set_param \ + lo*.$FSNAME-MDT0000-mdtlov.qos_threshold_rr=$old_rr } run_test 116b "QoS shouldn't LBUG if not enough OSTs found on the 2nd pass" -- 1.8.3.1