Best Method To Replace A Faulty Drive?

Status
Not open for further replies.

Ravefiend

Dabbler
Joined
Jun 1, 2011
Messages
37
FreeNAS 8.3.0 (p1) My RAIDZ2 config has one disk that is going bad so I need to replace it.

Code:
  pool: rpool
 state: ONLINE
  scan: scrub repaired 4.50K in 14h19m with 0 errors on Sun Dec 30 01:13:00 2012
config:

	NAME                                            STATE     READ WRITE CKSUM
	rpool                                           ONLINE       0     0     0
	  raidz2-0                                      ONLINE       0     0     0
	    gptid/ac3474a9-804d-11e0-b1a2-0025903071b4  ONLINE       0     0     0
	    gptid/ac51b1c0-804d-11e0-b1a2-0025903071b4  ONLINE       0     0     0
	    gptid/ac7236c2-804d-11e0-b1a2-0025903071b4  ONLINE       0     0     0
	    gptid/ac8d49be-804d-11e0-b1a2-0025903071b4  ONLINE       0     0     0
	    gptid/acaa342a-804d-11e0-b1a2-0025903071b4  ONLINE       0     0     0
	    gptid/acc76f9b-804d-11e0-b1a2-0025903071b4  ONLINE       0     0     0
	spares
	  gpt/rz2_disk7                                 AVAIL   


The bad disk is the last one in the list, gptid/acc76f9b-804d-11e0-b1a2-0025903071b4, previously known as gpt/rz2_disk6 aka /dev/da5. Using WD's Advance Replacement procedure, I'm expecting to receive a replacement disk from them before I need to sent the disk to them. I'd prefer to use the current spare disk as replacement disk, and use the new disk as new spare. What's the best way to achieve all that? Is this doable from the WebUI or better done via the CLI ? Note: on the the WebUI the disks are still listed as da0-da6.
 

Ravefiend

Dabbler
Joined
Jun 1, 2011
Messages
37
My current plan is the following:

  1. Put the disk OFFLINE via the FreeNAS UI
  2. Shutdown the server
  3. Unplug the bad disk from the controller
  4. Plug in the new disk on the controller (same port)
  5. Start up the server again
  6. Partition the disk for 4K alignment as I did before using:
    Code:
    gpart create -s GPT /dev/da5
    gpart add -b 2048 -s 3906824192 -t freebsd-zfs -l rz2_disk6 /dev/da5
  7. Add the disk to pool

My points of concern here are the following:
1. Can FreeNAS handle a new disk being plugged into the same port as the faulty disk?
2. The active disks on my rpool make use of gptid (except for the spare). Is step 6 not the best way to prepare the disk?
3. How do I add the disk to the pool in step 7?

Edit: And just as I posted this plan, my replacement disk has arrived (WD20EARX as replacement for the faulty WD20EARS) :)
 
Status
Not open for further replies.
Top