From: Alex Zhuravlev Date: Thu, 13 Jan 2022 07:27:21 +0000 (+0300) Subject: LU-15447 tests: sanity-flr/208 reset rotational status X-Git-Tag: 2.15.53~138 X-Git-Url: https://git.whamcloud.com/?a=commitdiff_plain;h=78dddb423f0dc8571d3c7f8ccd8f77a1c2bc28ae;p=fs%2Flustre-release.git LU-15447 tests: sanity-flr/208 reset rotational status new kernels (e.g. 4.18.0-305.25.1) declares loopback devices in tmpfs as non-rotational one. sanity-flr/208 does wrong assumption that devices are non-rotational by default. thus, sanity-flr/208 started to fail with new kernels. Fixes: 8507472dd37e ("LU-14996 lov: prefer mirrors on non-rotational OSTs") Signed-off-by: Alex Zhuravlev Change-Id: Ib5c42da39667227a6cff5d379e30d2cd6c1e2773 Reviewed-on: https://review.whamcloud.com/c/fs/lustre-release/+/46088 Reviewed-by: Colin Faber Reviewed-by: Andreas Dilger Tested-by: jenkins Tested-by: Maloo --- diff --git a/lustre/tests/sanity-flr.sh b/lustre/tests/sanity-flr.sh index 805e165..f683334 100644 --- a/lustre/tests/sanity-flr.sh +++ b/lustre/tests/sanity-flr.sh @@ -4080,11 +4080,15 @@ test_208a() { log "set OST0000 non-rotational" do_nodes $osts \ + $LCTL set_param osd*.*OST*.nonrotational=0 + do_nodes $osts \ $LCTL set_param osd*.*OST0000*.nonrotational=1 check_ost_used $tf read 0 log "set OST0002 and OST0003 non-rotational, two fast OSTs is better" do_nodes $osts \ + $LCTL set_param osd*.*OST*.nonrotational=0 + do_nodes $osts \ $LCTL set_param osd*.*OST0002*.nonrotational=1 \ osd*.*OST0003*.nonrotational=1 check_ost_used $tf read 2 3 @@ -4119,12 +4123,16 @@ test_208b() { log "set OST0000 non-rotational" do_nodes $osts \ + $LCTL set_param osd*.*OST*.nonrotational=0 + do_nodes $osts \ $LCTL set_param osd*.*OST0000*.nonrotational=1 check_ost_used $tf write 0 $LFS mirror resync $tf || error "can't resync" log "set OST0002 and OST0003 non-rotational, two fast OSTs is better" do_nodes $osts \ + $LCTL set_param osd*.*OST*.nonrotational=0 + do_nodes $osts \ $LCTL set_param osd*.*OST0002*.nonrotational=1 \ osd*.*OST0003*.nonrotational=1 check_ost_used $tf write 2 3