Whamcloud - gitweb
LU-15447 tests: sanity-flr/208 reset rotational status 88/46088/15
authorAlex Zhuravlev <bzzz@whamcloud.com>
Thu, 13 Jan 2022 07:27:21 +0000 (10:27 +0300)
committerOleg Drokin <green@whamcloud.com>
Tue, 25 Oct 2022 17:25:11 +0000 (17:25 +0000)
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 <bzzz@whamcloud.com>
Change-Id: Ib5c42da39667227a6cff5d379e30d2cd6c1e2773
Reviewed-on: https://review.whamcloud.com/c/fs/lustre-release/+/46088
Reviewed-by: Colin Faber <cfaber@ddn.com>
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
lustre/tests/sanity-flr.sh

index 805e165..f683334 100644 (file)
@@ -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