[PVE-User] ZFS failed drive and spare

Mike O'Connor mike at oeg.com.au
Thu May 2 00:22:07 CEST 2019


Hi Guys

How do I remove the FAILED/OFFLINE drive from ZFS. Nothing I've tried works

Its been replaced by the spare but it did not auto remove it self an
offline command and a replace do not work.

Any ideas ?

root at pve:~# zpool status
  pool: rbd
 state: DEGRADED
status: One or more devices has been taken offline by the administrator.
    Sufficient replicas exist for the pool to continue functioning in a
    degraded state.
action: Online the device using 'zpool online' or replace the device with
    'zpool replace'.
  scan: scrub in progress since Wed May  1 22:58:14 2019
    13.5T scanned out of 14.4T at 444M/s, 0h34m to go
    0B repaired, 93.96% done
config:

    NAME                                               STATE     READ
WRITE CKSUM
    rbd                                                DEGRADED    
0     0     0
      raidz2-0                                         DEGRADED    
0     0     0
        ata-ST2000VN004-2E4164_Z52379Y6                ONLINE      
0     0     0
        ata-WDC_WD20EFRX-68EUZN0_WD-WCC4M2NVFF1K       ONLINE      
0     0     0
        ata-ST2000VN004-2E4164_Z5237AWN                ONLINE      
0     0     0
        ata-WDC_WD20EFRX-68EUZN0_WD-WCC4M2NVFT9F       ONLINE      
0     0     0
        ata-ST2000VN004-2E4164_Z5237BAD                ONLINE      
0     0     0
        wwn-0x50014ee059e5c13e                         ONLINE      
0     0     0
        spare-6                                        DEGRADED    
0     0     0
          ata-WDC_WD20EFRX-68EUZN0_WD-WCC4M0TF9SL8     OFFLINE     
0     0     0
          ata-HGST_HUS722T2TALA604_WMC6N0L7XYAZ        ONLINE      
0     0     0
        ata-WDC_WD20EFRX-68EUZN0_WD-WCC4M4JFRC1J       ONLINE      
0     0     0
        ata-WDC_WD20EFRX-68EUZN0_WD-WCC4M1TD3N8T       ONLINE      
0     0     0
        ata-WDC_WD20EFRX-68EUZN0_WD-WCC4M7XPF2YD       ONLINE      
0     0     0
        wwn-0x50014ee00490a8ff                         ONLINE      
0     0     0
    logs
      nvme-INTEL_SSDPEKKW256G7_BTPY742508VQ256D-part1  ONLINE      
0     0     0
    cache
      nvme-INTEL_SSDPEKKW256G7_BTPY742508VQ256D-part2  ONLINE      
0     0     0
    spares
      ata-HGST_HUS722T2TALA604_WMC6N0L7XYAZ            INUSE    
currently in use
      ata-HGST_HUS722T2TALA604_WMC6N0M62XTF            AVAIL

errors: No known data errors


Thanks

Mike




More information about the pve-user mailing list