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

check_mk-zpool_status: fixed check crash in case of zfs pools with sp… #475

Closed
wants to merge 1 commit into from

Conversation

phreaker0
Copy link
Contributor

@phreaker0 phreaker0 commented Jun 1, 2022

…ecial devices and errors

General information

the current zpool_status check crashes for the following zpool:

  pool: storage
 state: ONLINE
status: One or more devices has experienced an unrecoverable error.  An
        attempt was made to correct the error.  Applications are unaffected.
action: Determine if the device needs to be replaced, and clear the errors
        using 'zpool clear' or replace the device with 'zpool replace'.
   see: https://openzfs.github.io/openzfs-docs/msg/ZFS-8000-9P
  scan: scrub repaired 0B in 00:54:14 with 0 errors on Mon May 30 22:52:10 2022
config:

        NAME                                                   STATE     READ WRITE CKSUM
        storage                                                ONLINE       0     0     0
          mirror-0                                             ONLINE       0     0     0
            ata-ST2000VM003-1CT164_W1H3SR9H                    ONLINE       0     0     0
            ata-TOSHIBA_DT01ACA200_94RRPEVAS                   ONLINE       0     0     0
        special 
          mirror-2                                             ONLINE       0     0     0
            ata-Samsung_SSD_860_QVO_1TB_S4CZNF0N459001M-part3  ONLINE       0     5     0
            ata-Samsung_SSD_860_QVO_1TB_S4CZNF0N458919M-part3  ONLINE       0     0     0
        logs
          mirror-1                                             ONLINE       0     0     0
            ata-Samsung_SSD_860_QVO_1TB_S4CZNF0N459001M-part1  ONLINE       0     0     0
            ata-Samsung_SSD_860_QVO_1TB_S4CZNF0N458919M-part1  ONLINE       0     0     0
        cache
          ata-Samsung_SSD_860_QVO_1TB_S4CZNF0N459001M-part2    ONLINE       0     0     0
          ata-Samsung_SSD_860_QVO_1TB_S4CZNF0N458919M-part2    ONLINE       0     0     0

errors: No known data errors

OS: Debian GNU/Linux 11 (bullseye)
ZFS: 2.1.4

Crash Report: crash.info.txt

Proposed changes

Add the "special" top level device, which was introduced with zfs 0.8.x (openzfs/zfs#5182), to the parsing logic.

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