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-Url: https://git.whamcloud.com/?a=commitdiff_plain;h=a8e876b6f8d4d0cb96c3f15d7758fae42577e4f6;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. Lustre-change: https://review.whamcloud.com/c/fs/lustre-release/+/46088 Lustre-commit: 78dddb423f0dc8571d3c7f8ccd8f77a1c2bc28ae 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/ex/lustre-release/+/48952 Tested-by: jenkins Tested-by: Maloo Reviewed-by: Andreas Dilger --- diff --git a/lustre/tests/sanity-flr.sh b/lustre/tests/sanity-flr.sh index d5cb905..0bb6a34 100644 --- a/lustre/tests/sanity-flr.sh +++ b/lustre/tests/sanity-flr.sh @@ -3859,12 +3859,16 @@ test_208a() { $LFS getstripe $tf log "set OST0000 non-rotational" - do_nodes $(comma_list $(osts_nodes)) \ + 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 $(comma_list $(osts_nodes)) \ + 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 @@ -3895,13 +3899,17 @@ test_208b() { $LFS getstripe $tf | grep -q flags.*stale && error "still stale" log "set OST0000 non-rotational" - do_nodes $(comma_list $(osts_nodes)) \ + 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 $(comma_list $(osts_nodes)) \ + 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