zpool status interpretation

brownj

Cadet
Joined
Nov 2, 2019
Messages
7
In the status listing below , what is:
4162934543819156499 UNAVAIL 0 0 0 was /dev/sde
can i "zpool detach data-pool 4162934543819156499". what is this exactly ???. it resulted from changing a drive out

I have tried detaching ( all error out with cant detach a root lovel vdev) , can;t replace it , what to do ?

Code:
zpool status data-pool -P
  pool: data-pool
 state: DEGRADED
status: One or more devices could not be used because the label is missing or
        invalid.  Sufficient replicas exist for the pool to continue
        functioning in a degraded state.
action: Replace the device using 'zpool replace'.
   see: https://openzfs.github.io/openzfs-docs/msg/ZFS-8000-4J
  scan: scrub repaired 0B in 02:22:57 with 0 errors on Fri Oct  7 14:17:43 2022
config:

        NAME                                                              STATE     READ WRITE CKSUM
        data-pool                                                         DEGRADED     0     0     0
          raidz1-0                                                        DEGRADED     0     0     0
            spare-0                                                       DEGRADED     0     0     0
              /dev/disk/by-partuuid/c67c4bdc-91dc-4c14-8f34-15504a4c0f57  ONLINE       0     0     0
              4162934543819156499                                         UNAVAIL      0     0     0  was /dev/sde
            /dev/disk/by-partuuid/71800691-a44f-41e2-b5db-a04c6b3eb0c4    ONLINE       0     0     0
            /dev/disk/by-partuuid/1ea5da57-9e44-11eb-bf24-2cf05da31333    ONLINE       0     0     0
        spares
          /dev/sde                                                        FAULTED   corrupted data
 

Ericloewe

Server Wrangler
Moderator
Joined
Feb 15, 2014
Messages
20,194
It looks like the spare was brought in after the original disk (4162934543819156499) disappeared. As for the reason, you might have more info. Now, you would probably have to replace the original disk with a new replacement - definitely check the documentation for details and confirmation.

More importantly, your setup is pretty bizarre. Why would you have a RAIDZ1 plus a spare instead of just a RAIDZ2?
 
Top