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>
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