Replace Drive with Spare

Status
Not open for further replies.

turboaaa

Dabbler
Joined
Dec 31, 2017
Messages
36
This was a new raidz2 build. I had a drive fail, it was replaced, but I made the mistake of setting it up as a spare instead of replacing the existing drive in the pool. Not the worst thing to happen but now I have an annoying warning light that the pool is degraded. Is there any possibility that I can convert the spare into an actual replacement without rebuilding everything? At this point the pool is in use.

Sorry for the stupid question, I knew better than this.

Code:
  pool: tank
 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: resilvered 1.57M in 0 days 00:00:00 with 0 errors on Sat May 26 17:44:38 2018
config:

	NAME											  STATE	 READ WRITE CKSUM
	tank											  DEGRADED	 0	 0	 0
	  raidz2-0										DEGRADED	 0	 0	 0
		gptid/ca363e73-5d4d-11e8-aaf6-002590fde644	ONLINE	   0	 0	 0
		gptid/cca8828b-5d4d-11e8-aaf6-002590fde644	ONLINE	   0	 0	 0
		gptid/d1b86990-5d4d-11e8-aaf6-002590fde644	ONLINE	   0	 0	 0
		gptid/d51049fe-5d4d-11e8-aaf6-002590fde644	ONLINE	   0	 0	 0
		gptid/d804819b-5d4d-11e8-aaf6-002590fde644	ONLINE	   0	 0	 0
		gptid/db20f312-5d4d-11e8-aaf6-002590fde644	ONLINE	   0	 0	 0
		gptid/dda24b58-5d4d-11e8-aaf6-002590fde644	ONLINE	   0	 0	 0
		gptid/e11d1f00-5d4d-11e8-aaf6-002590fde644	ONLINE	   0	 0	 0
		gptid/e39e8936-5d4d-11e8-aaf6-002590fde644	ONLINE	   0	 0	 0
		spare-9									   DEGRADED	 0	 0	 0
		  17637264324123775223						OFFLINE	  0	 0	 0  was /dev/gptid/e55c7104-5d4d-11e8-aaf6-002590fde644
		  gptid/051c5d74-612e-11e8-8357-002590fde644  ONLINE	   0	 0	 0
		gptid/e837b4dd-5d4d-11e8-aaf6-002590fde644	ONLINE	   0	 0	 0
	logs
	  gptid/4a426d0c-612b-11e8-8357-002590fde644	  ONLINE	   0	 0	 0
	spares
	  227308045836062793							  INUSE	 was /dev/gptid/051c5d74-612e-11e8-8357-002590fde644

errors: No known data errors
 

kdragon75

Wizard
Joined
Aug 7, 2016
Messages
2,457
Yeah, I dont see anything taking a glance at the Oracle docs. I would think there's a way without offline/remove...
On a side note, most people here seem to prefer cold or even warm spares rather than the automatic hot spare for manageability.
 

turboaaa

Dabbler
Joined
Dec 31, 2017
Messages
36
Yeah, I don't see anything taking a glance at the Oracle docs. I would think there's a way without offline/remove...
On a side note, most people here seem to prefer cold or even warm spares rather than the automatic hot spare for manageability.

Yeah, the pool was built without a spare but then I added the replacement drive as one. What I get for multitasking and not paying closer attention.
 

turboaaa

Dabbler
Joined
Dec 31, 2017
Messages
36
Found the solution for this; simple take the spare offline, remove it from the pool, then replace the failed drive with the one used as the spare. Blinking red light gone!
 
Status
Not open for further replies.
Top