Whamcloud - gitweb
LU-7223 tests: print more information when mmp.sh failed 28/17628/4
authorNiu Yawei <yawei.niu@intel.com>
Wed, 16 Dec 2015 03:17:12 +0000 (22:17 -0500)
committerOleg Drokin <oleg.drokin@intel.com>
Tue, 5 Jan 2016 14:22:35 +0000 (14:22 +0000)
Print more information when mmp feature failed to be enabled
on OST device.

Signed-off-by: Niu Yawei <yawei.niu@intel.com>
Change-Id: Ia049261661202e14fdef838cb8d28b90ce14af84
Reviewed-on: http://review.whamcloud.com/17628
Tested-by: Maloo <hpdd-maloo@intel.com>
Tested-by: Jenkins
Reviewed-by: Emoly Liu <emoly.liu@intel.com>
Reviewed-by: Jian Yu <jian.yu@intel.com>
Reviewed-by: Oleg Drokin <oleg.drokin@intel.com>
lustre/tests/mmp.sh

index 6338f7e..946a414 100755 (executable)
@@ -216,8 +216,15 @@ mmp_init() {
     mmp_is_enabled $MMP_MDS $MMP_MDSDEV || \
         error "MMP was not enabled on $MMP_MDSDEV on $MMP_MDS"
 
-    mmp_is_enabled $MMP_OSS $MMP_OSTDEV || \
-        error "MMP was not enabled on $MMP_OSTDEV on $MMP_OSS"
+       mmp_is_enabled $MMP_OSS $MMP_OSTDEV || \
+       {
+               do_facet $MMP_OSS "$DUMPE2FS -h $MMP_OSTDEV"
+               log "Try to enable again:"
+               enable_mmp $MMP_OSS $MMP_OSTDEV
+               log "Verify again:"
+               do_facet $MMP_OSS "$DUMPE2FS -h $MMP_OSTDEV"
+               error "MMP was not enabled on $MMP_OSTDEV on $MMP_OSS"
+       }
 }
 
 # Disable the MMP feature on the Lustre server targets