OpenZFS 9191 - dump vdev tree to zfs_dbgmsg when spa load fails due to missing log devices
Add vdev_print_tree() in spa_check_for_missing_logs() when some log devices are missing to ease debugging Authored by: Pavel Zakharov <pavel.zakharov@delphix.com> Reviewed by: George Wilson <george.wilson@delphix.com> Reviewed by: Prakash Surya <prakash.surya@delphix.com> Reviewed by: Matt Ahrens <matt@delphix.com> Reviewed-by: Giuseppe Di Natale <dinatale2@llnl.gov> Reviewed-by: George Melikov <mail@gmelikov.ru> Approved by: Robert Mustacchi <rm@joyent.com> Ported-by: Brian Behlendorf <behlendorf1@llnl.gov> OpenZFS-issue: https://illumos.org/issues/9191 OpenZFS-commit: https://github.com/openzfs/openzfs/commit/c5c02e5 Closes #7531
This commit is contained in:
parent
189bd0b670
commit
db7d07e14b
|
@ -1888,6 +1888,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 {
|
||||
|
@ -1899,6 +1900,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;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue