The following blog post might help you getting a clearer picture on how hot spares work on zfs and ultimately how to achieve your goal ...
https://blogs.oracle.com/eschrock/zfs-hot-spares On Wed, 1 May 2019 at 23:22, Mike O'Connor <m...@oeg.com.au> wrote: > 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@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 > > _______________________________________________ > pve-user mailing list > pve-user@pve.proxmox.com > https://pve.proxmox.com/cgi-bin/mailman/listinfo/pve-user > _______________________________________________ pve-user mailing list pve-user@pve.proxmox.com https://pve.proxmox.com/cgi-bin/mailman/listinfo/pve-user