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

feature request: check all zpools present, rather than selecting one #15

Open
2bjc466 opened this issue Dec 12, 2020 · 4 comments
Open

Comments

@2bjc466
Copy link

2bjc466 commented Dec 12, 2020

are there any plans to support an argument to check any zpools present? the use case i'm concerned about handling is adding a pool to a system, monitoring not being updated immediately, and losing a disk. being able to run check_zfs --allpools means any zpools present will report degradation, even if the pools are brand new, inherited during failover, etc.

thanks for the plugin!

@zlacelle
Copy link
Owner

Hmm, I'll take a look at this. Just merged in a few other things, so hopefully I can update this a bit faster than previously :)

@zlacelle
Copy link
Owner

Can you send me the output of "zpool status" on a system with multiple pools?

@2bjc466
Copy link
Author

2bjc466 commented Dec 13, 2020

Sure, this is from a FreeBSD 12.1 system:

$ zpool status
  pool: data
 state: ONLINE
  scan: scrub canceled on Fri Dec  4 16:23:25 2020
config:

	NAME         STATE     READ WRITE CKSUM
	data         ONLINE       0     0     0
	  mirror-0   ONLINE       0     0     0
	    da0.eli  ONLINE       0     0     0
	    da1.eli  ONLINE       0     0     0
	  mirror-1   ONLINE       0     0     0
	    da2.eli  ONLINE       0     0     0
	    da3.eli  ONLINE       0     0     0

errors: No known data errors

  pool: os
 state: ONLINE
  scan: scrub repaired 0 in 0 days 00:18:17 with 0 errors on Thu Dec 10 23:12:15 2020
config:

	NAME          STATE     READ WRITE CKSUM
	os            ONLINE       0     0     0
	  ada0p3.eli  ONLINE       0     0     0

errors: No known data errors

@HankB
Copy link

HankB commented Nov 29, 2022

Here is the output on a Debian Bullseye system with multiple pools.

hbarta@acorn3:~$ zpool status
  pool: bpool
 state: ONLINE
status: Some supported features are not enabled on the pool. The pool can
        still be used, but some features are unavailable.
action: Enable all features using 'zpool upgrade'. Once this is done,
        the pool may no longer be accessible by software that does not support
        the features. See zpool-features(5) for details.
  scan: scrub repaired 0B in 00:00:02 with 0 errors on Sun Nov 13 00:24:04 2022
config:

        NAME                                                       STATE     READ WRITE CKSUM
        bpool                                                      ONLINE       0     0     0
          ata-WDC_WD10S21X-24R1BT0-SSHD-8GB_WD-WXA1A74CP57R-part3  ONLINE       0     0     0

errors: No known data errors

  pool: pictures
 state: ONLINE
  scan: resilvered 450G in 02:16:53 with 0 errors on Sun Nov 27 22:14:54 2022
config:

        NAME                                           STATE     READ WRITE CKSUM
        pictures                                       ONLINE       0     0     0
          mirror-0                                     ONLINE       0     0     0
            ata-WDC_WD2003FYPS-27Y2B0_WD-WCAVY7294152  ONLINE       0     0     0
            ata-WDC_WD2003FYPS-27Y2B0_WD-WCAVY6142663  ONLINE       0     0     0

errors: No known data errors

  pool: rpool
 state: ONLINE
  scan: scrub repaired 0B in 00:02:18 with 0 errors on Sun Nov 13 00:26:24 2022
config:

        NAME                                                       STATE     READ WRITE CKSUM
        rpool                                                      ONLINE       0     0     0
          ata-WDC_WD10S21X-24R1BT0-SSHD-8GB_WD-WXA1A74CP57R-part4  ONLINE       0     0     0

errors: No known data errors

  pool: tank
 state: ONLINE
  scan: scrub repaired 0B in 02:23:06 with 0 errors on Sun Nov 13 02:47:14 2022
config:

        NAME                                           STATE     READ WRITE CKSUM
        tank                                           ONLINE       0     0     0
          mirror-0                                     ONLINE       0     0     0
            ata-WDC_WD2002FYPS-02W3B0_WD-WCAVY7272361  ONLINE       0     0     0
            ata-WDC_WD2003FYPS-27Y2B0_WD-WCAVY6466521  ONLINE       0     0     0

errors: No known data errors
hbarta@acorn3:~$ zfs --version
zfs-2.0.3-9
zfs-kmod-2.0.3-9
hbarta@acorn3:~$ 

(serial numbers not obfuscated - drives are well out of warranty. ;) )

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

No branches or pull requests

3 participants