How to replace degraded drive with extra hot spare?

maszinca

Cadet
Joined
Feb 15, 2023
Messages
2
Hi experts, I been reading about documentation about replacing degraded drives, because I have two and it is supported by hot spares saving the day. After reading two days of documentation I am still a bit confused because sadly I can not add a new drive due to budget.

https://www.truenas.com/docs/core/coretutorials/storage/disks/diskreplace/

With 7 spares available in place I am hoping to figure out how to use 2 drives available to replace the degraded drives and have state Online instead of Degraded. Do I just power off and unplug 2 selected available spares and replace the 2 degraded drive and resilver and the hot spares will go back to becoming available?

Thanks in advance for any help.

pool: MainPool
state: DEGRADED
status: One or more devices has experienced an unrecoverable error. An
attempt was made to correct the error. Applications are unaffected.
action: Determine if the device needs to be replaced, and clear the errors
using 'zpool clear' or replace the device with 'zpool replace'.
see: https://openzfs.github.io/openzfs-docs/msg/ZFS-8000-9P
scan: scrub repaired 0B in 00:42:18 with 0 errors on Sun Jan 29 00:42:20 2023
config:

NAME STATE READ WRITE CKSUM
MainPool DEGRADED 0 0 0
raidz3-0 DEGRADED 0 0 0
gptid/588df76d-1fb5-11eb-acfc-00900b52dbb8 ONLINE 0 0 0
gptid/595e8f5a-1fb5-11eb-acfc-00900b52dbb8 ONLINE 0 0 0
gptid/5a350341-1fb5-11eb-acfc-00900b52dbb8 ONLINE 0 0 0
gptid/5ad52a53-1fb5-11eb-acfc-00900b52dbb8 ONLINE 0 0 0
gptid/5bb004a9-1fb5-11eb-acfc-00900b52dbb8 ONLINE 0 0 0
gptid/5c6bd084-1fb5-11eb-acfc-00900b52dbb8 ONLINE 0 0 0
gptid/5cef35ba-1fb5-11eb-acfc-00900b52dbb8 ONLINE 0 0 0
spare-7 ONLINE 0 0 0
gptid/405941b6-5ce4-11eb-9191-00900b52dbb8 ONLINE 0 0 0
gptid/9ce8d03c-1fb5-11eb-acfc-00900b52dbb8 ONLINE 0 0 0
gptid/5e356251-1fb5-11eb-acfc-00900b52dbb8 ONLINE 0 0 0
gptid/5eee1e59-1fb5-11eb-acfc-00900b52dbb8 ONLINE 0 0 0
gptid/5f9af35e-1fb5-11eb-acfc-00900b52dbb8 ONLINE 0 0 0
gptid/e3beb182-5cda-11eb-8c49-00900b52dbb8 ONLINE 0 0 0
gptid/60cde63c-1fb5-11eb-acfc-00900b52dbb8 ONLINE 0 0 0
gptid/6158419d-1fb5-11eb-acfc-00900b52dbb8 ONLINE 0 0 0
gptid/6220a5b8-1fb5-11eb-acfc-00900b52dbb8 ONLINE 0 0 0
gptid/62dcc8d1-1fb5-11eb-acfc-00900b52dbb8 ONLINE 0 0 0
gptid/63778191-1fb5-11eb-acfc-00900b52dbb8 ONLINE 0 0 0
gptid/644aab88-1fb5-11eb-acfc-00900b52dbb8 ONLINE 0 0 0
gptid/6510312a-1fb5-11eb-acfc-00900b52dbb8 ONLINE 0 0 0
gptid/65c186b2-1fb5-11eb-acfc-00900b52dbb8 ONLINE 0 0 0
gptid/66abc442-1fb5-11eb-acfc-00900b52dbb8 ONLINE 0 0 0
gptid/67544a88-1fb5-11eb-acfc-00900b52dbb8 ONLINE 0 0 0
gptid/6818bf97-1fb5-11eb-acfc-00900b52dbb8 ONLINE 0 0 0
gptid/68c7f197-1fb5-11eb-acfc-00900b52dbb8 ONLINE 0 0 0
spare-24 DEGRADED 0 0 0
gptid/69930ad8-1fb5-11eb-acfc-00900b52dbb8 DEGRADED 0 0 0 too many errors
gptid/9c70998e-1fb5-11eb-acfc-00900b52dbb8 ONLINE 0 0 0
gptid/6a1df044-1fb5-11eb-acfc-00900b52dbb8 ONLINE 0 0 0
gptid/6ab34cf3-1fb5-11eb-acfc-00900b52dbb8 ONLINE 0 0 0
gptid/6b86e632-1fb5-11eb-acfc-00900b52dbb8 ONLINE 0 0 0
gptid/6c6d63d5-1fb5-11eb-acfc-00900b52dbb8 ONLINE 0 0 0

spares
gptid/9c70998e-1fb5-11eb-acfc-00900b52dbb8 INUSE currently in use
gptid/9ce8d03c-1fb5-11eb-acfc-00900b52dbb8 INUSE currently in use
gptid/9d8a4ed6-1fb5-11eb-acfc-00900b52dbb8 AVAIL
gptid/9dd8e2b1-1fb5-11eb-acfc-00900b52dbb8 AVAIL
gptid/9e33b095-1fb5-11eb-acfc-00900b52dbb8 AVAIL
gptid/9e727ecd-1fb5-11eb-acfc-00900b52dbb8 AVAIL
gptid/9ea4bd87-1fb5-11eb-acfc-00900b52dbb8 AVAIL
gptid/9eb4aa93-1fb5-11eb-acfc-00900b52dbb8 AVAIL
gptid/9f120ec9-1fb5-11eb-acfc-00900b52dbb8 AVAIL

errors: No known data errors

pool: boot-pool
state: ONLINE
status: Some supported and requested 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(7) for details.
scan: scrub repaired 0B in 00:00:38 with 0 errors on Thu Feb 9 03:45:38 2023
 
Top