9191 dump vdev tree to zfs_dbgmsg when spa load fails due to missing log devices
illumos/illumos-gate@ccef24b493 Reviewed by: George Wilson <george.wilson@delphix.com> Reviewed by: Prakash Surya <prakash.surya@delphix.com> Reviewed by: Matt Ahrens <matt@delphix.com> Approved by: Robert Mustacchi <rm@joyent.com> Author: Pavel Zakharov <pavel.zakharov@delphix.com>
This commit is contained in:
parent
64f15aa65b
commit
f5b017d914
@ -1814,6 +1814,7 @@ spa_check_for_missing_logs(spa_t *spa)
|
|||||||
|
|
||||||
if (idx > 0) {
|
if (idx > 0) {
|
||||||
spa_load_failed(spa, "some log devices are missing");
|
spa_load_failed(spa, "some log devices are missing");
|
||||||
|
vdev_dbgmsg_print_tree(rvd, 2);
|
||||||
return (SET_ERROR(ENXIO));
|
return (SET_ERROR(ENXIO));
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
@ -1825,6 +1826,7 @@ spa_check_for_missing_logs(spa_t *spa)
|
|||||||
spa_set_log_state(spa, SPA_LOG_CLEAR);
|
spa_set_log_state(spa, SPA_LOG_CLEAR);
|
||||||
spa_load_note(spa, "some log devices are "
|
spa_load_note(spa, "some log devices are "
|
||||||
"missing, ZIL is dropped.");
|
"missing, ZIL is dropped.");
|
||||||
|
vdev_dbgmsg_print_tree(rvd, 2);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user