Return to Level1Techs.com

[Solved] Need help decoding zpool status?

Checking in on the health of my array, I noticed my hot spare is now listed as “in use”. My pool consists of six drives, arranged as two z1 vdevs of three drives each.

The status readout shows seven drives in use in the pool. I’m thinking a drive timed out or something, which caused the spare to take over, but then the failed drive started working again?

Here’s the output from zpool status. I need advice on what it means, and how to remove the “extra” drive and get it back to being a hot spare.

[[email protected] ~]# zpool status tank
  pool: tank
 state: ONLINE
  scan: scrub repaired 0B in 05:14:25 with 0 errors on Sun Jan  3 04:00:13 2021
config:

        NAME                                    STATE     READ WRITE CKSUM
        tank                                    ONLINE       0     0     0
          raidz1-0                              ONLINE       0     0     0
            wwn-0x500003993bc802d4              ONLINE       0     0     0
            wwn-0x500003993bc802d1              ONLINE       0     0     0
            wwn-0x5000c500b0151f73              ONLINE       0     0     0
          raidz1-1                              ONLINE       0     0     0
            wwn-0x500003990bc80e3d              ONLINE       0     0     0
            wwn-0x500003999bf81328              ONLINE       0     0     0
            spare-2                             ONLINE       0     0     0
              wwn-0x5000c500b01753e6            ONLINE       0     0     0
              wwn-0x500003990bc00f5a            ONLINE       0     0     0
        logs
          e4fe1707-fd56-cb45-9786-535298eb0d3c  ONLINE       0     0     0
        cache
          35f18f5c-ce06-4048-9b1f-c561dc11ded1  ONLINE       0     0     0
        spares
          wwn-0x500003990bc00f5a                INUSE     currently in use

Looks like it was as easy as running the detach command…

[[email protected] ~]# zpool detach tank wwn-0x500003990bc00f5a
[[email protected] ~]# zpool status tank
  pool: tank
 state: ONLINE
  scan: scrub repaired 0B in 05:14:25 with 0 errors on Sun Jan  3 04:00:13 2021
config:

        NAME                                    STATE     READ WRITE CKSUM
        tank                                    ONLINE       0     0     0
          raidz1-0                              ONLINE       0     0     0
            wwn-0x500003993bc802d4              ONLINE       0     0     0
            wwn-0x500003993bc802d1              ONLINE       0     0     0
            wwn-0x5000c500b0151f73              ONLINE       0     0     0
          raidz1-1                              ONLINE       0     0     0
            wwn-0x500003990bc80e3d              ONLINE       0     0     0
            wwn-0x500003999bf81328              ONLINE       0     0     0
            wwn-0x5000c500b01753e6              ONLINE       0     0     0
        logs
          e4fe1707-fd56-cb45-9786-535298eb0d3c  ONLINE       0     0     0
        cache
          35f18f5c-ce06-4048-9b1f-c561dc11ded1  ONLINE       0     0     0
        spares
          wwn-0x500003990bc00f5a                AVAIL

errors: No known data errors
3 Likes