From f5b017d9140d4df1b5928cb505b081f7b383c314 Mon Sep 17 00:00:00 2001 From: Alexander Motin Date: Wed, 28 Mar 2018 22:08:57 +0000 Subject: [PATCH] 9191 dump vdev tree to zfs_dbgmsg when spa load fails due to missing log devices illumos/illumos-gate@ccef24b493bcbd146fcd6d8946666cae081470b6 Reviewed by: George Wilson Reviewed by: Prakash Surya Reviewed by: Matt Ahrens Approved by: Robert Mustacchi Author: Pavel Zakharov --- uts/common/fs/zfs/spa.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/uts/common/fs/zfs/spa.c b/uts/common/fs/zfs/spa.c index ccee26fba26e..1a07e3a25f4c 100644 --- a/uts/common/fs/zfs/spa.c +++ b/uts/common/fs/zfs/spa.c @@ -1814,6 +1814,7 @@ spa_check_for_missing_logs(spa_t *spa) if (idx > 0) { spa_load_failed(spa, "some log devices are missing"); + vdev_dbgmsg_print_tree(rvd, 2); return (SET_ERROR(ENXIO)); } } else { @@ -1825,6 +1826,7 @@ spa_check_for_missing_logs(spa_t *spa) spa_set_log_state(spa, SPA_LOG_CLEAR); spa_load_note(spa, "some log devices are " "missing, ZIL is dropped."); + vdev_dbgmsg_print_tree(rvd, 2); break; } }