Page 1 of 1

Replacing a Hard Drive in a Z-Pool

Posted: 16 Mar 2014 21:03
by sjbs
I have recently attempted to upgraded the firmware unsuccessfully and it appears as if the USB is now corrupt (will most likely be a different post)

Anycase, I downlaoded the latest Live CD rom 9.2.0.1 - Shigawire (revision 943) and created a new USB, but now I had a problem where one of the drives were also not recognised correctly and went off line.

pool: Backup
state: DEGRADED
status: One or more devices could not be opened. Sufficient replicas exist for
the pool to continue functioning in a degraded state.
action: Attach the missing device and online it using 'zpool online'.
see: http://illumos.org/msg/ZFS-8000-2Q
scan: scrub repaired 0 in 6h18m with 0 errors on Sun Mar 16 16:46:20 2014
config:

NAME STATE READ WRITE CKSUM
Backup DEGRADED 0 0 0
raidz1-0 DEGRADED 0 0 0
12285930708484553606 UNAVAIL 0 0 0 was /dev/gptid/668a10b8-ba9c-4741-a321-d884fda3dff8
ada1 ONLINE 0 0 0
ada2 ONLINE 0 0 0
ada3 ONLINE 0 0 0

errors: No known data errors

$ zpool online Backup 12285930708484553606
warning: device '12285930708484553606' onlined, but remains in faulted state
use 'zpool replace' to replace devices that are no longer present

Unfortunately I did not succeed with zpool replace. Any Thoughts?

I tried
zpool replace -f Backup /dev/gptid/668a10b8-ba9c-4741-a321-d884fda3dff8 12285930708484553606
zpool replace Backup /dev/gptid/668a10b8-ba9c-4741-a321-d884fda3dff8 12285930708484553606
zpool replace -f Backup 12285930708484553606 ada0.nop
zpool replace -f Backup 12285930708484553606 /dev/gptid/668a10b8-ba9c-4741-a321-d884fda3dff8
zpool replace Backup 12285930708484553606 /dev/gptid/668a10b8-ba9c-4741-a321-d884fda3dff8

please note the drives are different sizes:
Device Device model Size Serial number Controller Controller model Standby time File system Status
ada0 ST3000DM001-9YN166 2861589MB S1F0JQKG ahcich0 ATI IXP700 AHCI SATA controller Always on UFS ONLINE Edit disk Delete disk
ada1 ST4000DM000-1F2168 3815448MB Z300E167 ahcich1 ATI IXP700 AHCI SATA controller Always on ZFS storage pool device ONLINE Edit disk Delete disk
ada2 ST31500341AS 1430800MB 9VS1P9QR ahcich2 ATI IXP700 AHCI SATA controller Always on ZFS storage pool device ONLINE Edit disk Delete disk
ada3 ST4000DM000-1F2168 3815448MB W300PFYR ahcich3 ATI IXP700 AHCI SATA controller Always on ZFS storage pool device ONLINE Edit disk Delete disk
da0 Kingston DataTraveler G3 PMAP 7548MB n/a umass-sim0 AMD SB7x0/SB8x0/SB9x0 USB 2.0 controller Always on UFS ONLINE Edit disk Delete disk

Re: Replacing a Hard Drive in a Z-Pool

Posted: 17 Mar 2014 00:05
by kenZ71
Is SMART indicating one of the drives is bad? Match the serial number in the SMART report to the label of the drive.

Re: Replacing a Hard Drive in a Z-Pool

Posted: 17 Mar 2014 08:02
by b0ssman
see
http://wiki.nas4free.org/doku.php?id=faq:0149

seems the command would be
zpool replace Backup 12285930708484553606 ada0

but you might need to remove the metadata from the drive first.
eg using dd if=/dev/zero of=/dev/ada0