Replacing a failed disk in raidz2 zfs (and gpt)

Pawel Jakub Dawidek pjd at FreeBSD.org
Thu Feb 3 19:44:29 UTC 2011


On Thu, Feb 03, 2011 at 06:11:34AM +0000, Philip M. Gollucci wrote:
> All,
> 
> I have a zroot(mirror)+zmysql(raidz2) setup on a MySQL db box.
> One drive failed (mfid3).  We've since replaced it.
> 
> I can't for the life of me get zpool to replace it. I can't remember why
> I used gpt instead of direct disks for the zmysql pool (but thats how it
> is).  I've tried all of the following commands with different errors,
> and I must say I'm stumped.  I've done this several times before for the
> ASF (but no gpt at play there).
> 
> $ zpool scrub zmysql
> just runs, and completes, no error
> 
> $ zpool replace zmysql gpt/disk3
> cannot replace gpt/disk3 with gpt/disk3: one or more devices is
> currently unavailable
[...]
> $ zpool offline zmysql gpt/disk3
> cannot offline gpt/disk3: no valid replicas

I'm afraid this is ZFS bug that is fixed in v28 for sure, not sure
about v14/v15.

-- 
Pawel Jakub Dawidek                       http://www.wheelsystems.com
pjd at FreeBSD.org                           http://www.FreeBSD.org
FreeBSD committer                         Am I Evil? Yes, I Am!
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 196 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-current/attachments/20110203/047ef845/attachment.pgp


More information about the freebsd-current mailing list