Whamcloud - gitweb
LU-1415 tests: Basic support for ZFS-based servers
[fs/lustre-release.git] / lustre / tests / mmp.sh
index b99b4b6..59fede1 100755 (executable)
@@ -27,8 +27,6 @@ init_logging
 
 remote_mds_nodsh && skip "remote MDS with nodsh" && exit 0
 remote_ost_nodsh && skip "remote OST with nodsh" && exit 0
-[ "$MDSFSTYPE" != "ldiskfs" ] && skip "MDS not running ldiskfs" && exit 0
-[ "$OSTFSTYPE" != "ldiskfs" ] && skip "OST not running ldiskfs" && exit 0
 
 # unmount and cleanup the Lustre filesystem
 MMP_RESTORE_MOUNT=false
@@ -164,7 +162,17 @@ get_mmp_check_interval() {
 
 # Enable the MMP feature on the Lustre server targets.
 mmp_init() {
-    init_vars
+       init_vars
+
+       if [ $(facet_fstype $MMP_MDS) != ldiskfs ]; then
+               skip "Only applicable to ldiskfs-based MDTs"
+               exit
+       fi
+
+       if [ $(facet_fstype $MMP_OSS) != ldiskfs ]; then
+               skip "Only applicable to ldiskfs-based OSTs"
+               exit
+       fi
 
     # The MMP feature is automatically enabled by mkfs.lustre for
     # new file system at format time if failover is being used.