Skip to content
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

zfsbootmenu: log errors for unimportable pools #461

Merged
merged 1 commit into from
Sep 16, 2023
Merged

Conversation

zdykstra
Copy link
Member

@zdykstra zdykstra commented Aug 9, 2023

Before landing at the emergency_shell in the main import loop, log the output of a failed zpool import for every pool that's marked UNAVAIL .

In the emergency_shell function, write any log messages at the 'err' level directly to the active console.

https://asciinema.org/a/5QLE1dKHyeMDdmGQNmjM29yU0

@zdykstra zdykstra force-pushed the state-and-madison branch 2 times, most recently from 459942c to 21c9afc Compare September 14, 2023 02:45
Before landing at the emergency_shell in the main import loop, log the
output of a failed zpool import for every pool that's marked UNAVAIL .

In the emergency_shell function, write any log messages at the 'err'
level directly to the active console.

The 'print_kmsg_logs' helper has been added that accepts a
comma-separated list of log levels (as understood by util-linux dmesg).
If the feature flags supplied to dmesg fail, fall back to 'dmesg -r'
which is understood by both Busybox and util-linux dmesg. Manually
convert err,info,... log levels to a numeric code and grep for that at
the start of each line.
@zdykstra zdykstra merged commit bd1319f into master Sep 16, 2023
2 checks passed
@classabbyamp classabbyamp deleted the state-and-madison branch September 16, 2023 15:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants