Whamcloud - gitweb
LU-1491 tests: check Lustre version in conf-sanity test 62
[fs/lustre-release.git] / lustre / tests / conf-sanity.sh
index bc3a286..27e3e62 100644 (file)
@@ -2897,18 +2897,21 @@ test_61() { # LU-80
 run_test 61 "large xattr"
 
 test_62() {
-    # MRP-118
-    local mdsdev=$(mdsdevname 1)
-    local ostdev=$(ostdevname 1)
-
-    echo "disable journal for mds"
-    do_facet mds tune2fs -O ^has_journal $mdsdev || error "tune2fs failed"
-    start_mds && error "MDT start should fail"
-    echo "disable journal for ost"
-    do_facet ost1 tune2fs -O ^has_journal $ostdev || error "tune2fs failed"
-    start_ost && error "OST start should fail"
-    cleanup || return $?
-    reformat_and_config
+       # MRP-118
+       local mdsdev=$(mdsdevname 1)
+       local ostdev=$(ostdevname 1)
+
+       [[ $(lustre_version_code $SINGLEMDS) -ge $(version_code 2.2.51) ]] ||
+               { skip "Need MDS version at least 2.2.51"; return 0; }
+
+       echo "disable journal for mds"
+       do_facet mds tune2fs -O ^has_journal $mdsdev || error "tune2fs failed"
+       start_mds && error "MDT start should fail"
+       echo "disable journal for ost"
+       do_facet ost1 tune2fs -O ^has_journal $ostdev || error "tune2fs failed"
+       start_ost && error "OST start should fail"
+       cleanup || return $?
+       reformat_and_config
 }
 run_test 62 "start with disabled journal"