From nobody@FreeBSD.org  Fri Mar 28 00:23:06 2008
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34])
	by hub.freebsd.org (Postfix) with ESMTP id 273321065670
	for <freebsd-gnats-submit@FreeBSD.org>; Fri, 28 Mar 2008 00:23:06 +0000 (UTC)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (www.freebsd.org [IPv6:2001:4f8:fff6::21])
	by mx1.freebsd.org (Postfix) with ESMTP id 143C08FC1D
	for <freebsd-gnats-submit@FreeBSD.org>; Fri, 28 Mar 2008 00:23:06 +0000 (UTC)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (localhost [127.0.0.1])
	by www.freebsd.org (8.14.2/8.14.2) with ESMTP id m2S0MnDB001653
	for <freebsd-gnats-submit@FreeBSD.org>; Fri, 28 Mar 2008 00:22:49 GMT
	(envelope-from nobody@www.freebsd.org)
Received: (from nobody@localhost)
	by www.freebsd.org (8.14.2/8.14.1/Submit) id m2S0Mm1k001652;
	Fri, 28 Mar 2008 00:22:48 GMT
	(envelope-from nobody)
Message-Id: <200803280022.m2S0Mm1k001652@www.freebsd.org>
Date: Fri, 28 Mar 2008 00:22:48 GMT
From: Alex Frangis <qapf@qapf.com>
To: freebsd-gnats-submit@FreeBSD.org
Subject: Kernel Panic if attempting to replace a drive in a raidz wih zfs
X-Send-Pr-Version: www-3.1
X-GNATS-Notify:

>Number:         122173
>Category:       kern
>Synopsis:       [zfs] [panic] Kernel Panic if attempting to replace a drive in a raidz wih zfs
>Confidential:   no
>Severity:       serious
>Priority:       high
>Responsible:    pjd
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Fri Mar 28 00:30:01 UTC 2008
>Closed-Date:    Wed Sep 09 18:56:32 UTC 2009
>Last-Modified:  Wed Sep 09 18:56:32 UTC 2009
>Originator:     Alex Frangis
>Release:        Freebsd 7.0
>Organization:
>Environment:
FreeBSD isajeep 7.0-RELEASE FreeBSD 7.0-RELEASE #0: Sun Feb 24 10:35:36 UTC 2008     root@driscoll.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC  amd64

>Description:
When replacing a dead drive in a ZFS array, if the new drive comes up
on the same identifier (ad6) as the drive that died and you issue the
command "zpool tank replace ad6 ad6" to tell zfs to replace the missing
drive with the new drive, ZFS starts the reslivering process and then
promptly induces a kernel panic.
>How-To-Repeat:
1. Create a raidz
2. Degrade one drive in the raidz
3. Replace with another drive attached to the same channel so that the
   replacement drive comes up as the same identifier (i.e. dead drive is
   /dev/ad6 and new drive comes up as /dev/ad6)
4. Attempt to issue replace command. 
>Fix:
Move the replacement drive such that its identifier is something other
than the one of the dead drive and ZFS will complete rebuilding the array. 

>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-amd64->pjd 
Responsible-Changed-By: linimon 
Responsible-Changed-When: Fri Mar 28 04:14:37 UTC 2008 
Responsible-Changed-Why:  
Over to maintainer. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=122173 
Responsible-Changed-From-To: pjd->freebsd-fs 
Responsible-Changed-By: linimon 
Responsible-Changed-When: Thu May 28 22:23:16 UTC 2009 
Responsible-Changed-Why:  
With pjd's permission, reassing ZFS-related PRs to freebsd-fs. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=122173 
State-Changed-From-To: open->closed 
State-Changed-By: pjd 
State-Changed-When: ro 9 wrz 2009 18:55:46 UTC 
State-Changed-Why:  
This seems to work fine on FreeBSD 8. Please upgrade. 


Responsible-Changed-From-To: freebsd-fs->pjd 
Responsible-Changed-By: pjd 
Responsible-Changed-When: ro 9 wrz 2009 18:55:46 UTC 
Responsible-Changed-Why:  
I'll take this one. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=122173 
>Unformatted:
