Solved: Replacing a failed zfs raidz2 drive on TrueNAS core

Hi I’m currently using TrueNAS Core 13.0-U6.1. I’ve been running system for about 5 years now and unfortunately have replaced a few of the 6TB WD Red Hard Drives over the years. So I currently am using an 8 disk (6TB WD Red) raidz2 with hot spare. My spare was being used for the failed disk. I removed the failed disk, added a new drive and let the device resilver which took a long time. At the end of the process however I thought my spare would be returned to the pool, but this is what I’m seeing:

  pool: tank
 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: resilvered 1.81T in 1 days 10:06:35 with 0 errors on Thu Jun 20 23:06:32 2024
config:

	NAME                                              STATE     READ WRITE CKSUM
	tank                                              ONLINE       0     0     0
	  raidz2-0                                        ONLINE       0     0     0
	    gptid/16f8514f-6a3d-11ea-83c6-0cc47a84a594    ONLINE       0     0     0
	    gptid/2eff3431-d2f0-11e6-8e60-0cc47a84a594    ONLINE       0     0     0
	    gptid/aa8d54ac-81a6-11ee-882d-0cc47a84a594    ONLINE       0     0     0
	    gptid/96f13243-a9e5-11ea-ab76-0cc47a84a594    ONLINE       0     0     0
	    gptid/310fd248-d2f0-11e6-8e60-0cc47a84a594    ONLINE       0     0     0
	    gptid/94e2a444-5608-11ed-baa2-0cc47a84a594    ONLINE       0     0     0
	    gptid/2c91672c-2547-11ef-9f56-0cc47a84a594    ONLINE       0     0     0
	    spare-7                                       ONLINE       0     0     0
	      gptid/a60274b0-2e65-11ef-8343-0cc47a84a594  ONLINE       0     0     0
	      gptid/a203d5ad-49e3-11ea-9739-0cc47a84a594  ONLINE       0     0     0
	cache
	  gptid/752998f6-094f-11ec-9a66-0cc47a84a594      ONLINE       0     0     0
	spares
	  gptid/a203d5ad-49e3-11ea-9739-0cc47a84a594      INUSE     currently in use

So I’d like to just promote gptid/a60274b0-2e65-11ef-8343-0cc47a84a594 to /dev/da7
and use gptid/a203d5ad-49e3-11ea-9739-0cc47a84a594 which is the “spare” drive and return it to /dev/ada3. I can offline the spare, however I can’t detatch or remove the drive. What is best strategy at this point?

Solved:

Not sure why I couldn’t do it from the GUI but I ended up using the zpool detach via the CLI like: zpool detach tank gptid/a203d5ad-49e3-11ea-9739-0cc47a84a594

Hopefully that will help me and others in the future.

You need to detach the drive from console. Oh, you figured it out yourself!