-
Notifications
You must be signed in to change notification settings - Fork 1.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Extend import_progress kstat with a notes field #15539
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We should also add some progress notes to spa_activity_check()
since with MMP enabled this can take a significant amount of time when the pool hasn't been cleanly exported.
082ac26
to
c39ecc7
Compare
Updated to address review feedback |
c39ecc7
to
517fb73
Compare
517fb73
to
a43cb21
Compare
a43cb21
to
9f58b84
Compare
Another pass to address Alexander's feedback. |
tests/zfs-tests/tests/functional/cli_root/zpool_import/zpool_import_status.ksh
Outdated
Show resolved
Hide resolved
tests/zfs-tests/tests/functional/cli_root/zpool_import/zpool_import_status.ksh
Outdated
Show resolved
Hide resolved
9f58b84
to
a64bbab
Compare
tests/zfs-tests/tests/functional/cli_root/zpool_import/zpool_import_status.ksh
Outdated
Show resolved
Hide resolved
Detail the import progress of log spacemaps as they can take a very long time. Also grab the spa_note() messages to, as they provide insight into what is happening Sponsored-By: OpenDrives Inc. Sponsored-By: Klara Inc. Co-authored-by: Don Brady <don.brady@klarasystems.com> Signed-off-by: Don Brady <don.brady@klarasystems.com>
a64bbab
to
9189ed9
Compare
Fixed Linux-specific date format |
Detail the import progress of log spacemaps as they can take a very long time. Also grab the spa_note() messages to, as they provide insight into what is happening Sponsored-By: OpenDrives Inc. Sponsored-By: Klara Inc. Reviewed-by: Alexander Motin <mav@FreeBSD.org> Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov> Signed-off-by: Don Brady <don.brady@klarasystems.com> Co-authored-by: Allan Jude <allan@klarasystems.com> Closes openzfs#15539
Detail the import progress of log spacemaps as they can take a very long time. Also grab the spa_note() messages to, as they provide insight into what is happening Sponsored-By: OpenDrives Inc. Sponsored-By: Klara Inc. Reviewed-by: Alexander Motin <mav@FreeBSD.org> Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov> Signed-off-by: Don Brady <don.brady@klarasystems.com> Co-authored-by: Allan Jude <allan@klarasystems.com> Closes #15539
Detail the import progress of log spacemaps as they can take a very long time. Also grab the spa_note() messages to, as they provide insight into what is happening Sponsored-By: OpenDrives Inc. Sponsored-By: Klara Inc. Reviewed-by: Alexander Motin <mav@FreeBSD.org> Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov> Signed-off-by: Don Brady <don.brady@klarasystems.com> Co-authored-by: Allan Jude <allan@klarasystems.com> Closes openzfs#15539
Motivation and Context
As reported and observed in other issues, the time for an unclean pool import can take a long time. It would be nice to be able to observe where the time is being spent for imports that are taking a long time to complete.
Description
This change adds more details to the existing
import_progress
kstat in the form of import progress notes.This information is also logged to the zfs debug messages.
Sponsored-By: OpenDrives Inc.
Sponsored-By: Klara Inc.
Here's an example of output from the zfs debug messages:
How Has This Been Tested?
Added a new ZTS test,
zpool_import_status
, to verify the kstat and zfs dbgmsg outputs.Also ran
ztest
and performed some manual pool import testingTypes of changes
Checklist:
Signed-off-by
.