From nobody@FreeBSD.org  Sun Nov  4 17:47:59 2012
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52])
	by hub.freebsd.org (Postfix) with ESMTP id 8E1F63E1
	for <freebsd-gnats-submit@FreeBSD.org>; Sun,  4 Nov 2012 17:47:59 +0000 (UTC)
	(envelope-from nobody@FreeBSD.org)
Received: from red.freebsd.org (red.freebsd.org [IPv6:2001:4f8:fff6::22])
	by mx1.freebsd.org (Postfix) with ESMTP id 76EBD8FC08
	for <freebsd-gnats-submit@FreeBSD.org>; Sun,  4 Nov 2012 17:47:59 +0000 (UTC)
Received: from red.freebsd.org (localhost [127.0.0.1])
	by red.freebsd.org (8.14.5/8.14.5) with ESMTP id qA4HlxYT018659
	for <freebsd-gnats-submit@FreeBSD.org>; Sun, 4 Nov 2012 17:47:59 GMT
	(envelope-from nobody@red.freebsd.org)
Received: (from nobody@localhost)
	by red.freebsd.org (8.14.5/8.14.5/Submit) id qA4HlxUW018658;
	Sun, 4 Nov 2012 17:47:59 GMT
	(envelope-from nobody)
Message-Id: <201211041747.qA4HlxUW018658@red.freebsd.org>
Date: Sun, 4 Nov 2012 17:47:59 GMT
From: Christian Geier <catcher@lostpackets.de>
To: freebsd-gnats-submit@FreeBSD.org
Subject: Panic on 'zpool replace' on readonly pool
X-Send-Pr-Version: www-3.1
X-GNATS-Notify:

>Number:         173363
>Category:       kern
>Synopsis:       [zfs] [panic] Panic on 'zpool replace' on readonly pool
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-fs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Sun Nov 04 17:50:01 UTC 2012
>Closed-Date:    
>Last-Modified:  Mon Nov 05 02:36:54 UTC 2012
>Originator:     Christian Geier
>Release:        9.1-RC2
>Organization:
>Environment:
FreeBSD brutus.lostpackets.de 9.1-RC2 FreeBSD 9.1-RC2 #0 r241106: Mon Oct  1 18:26:44 UTC 2012     root@farrell.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC  amd64

>Description:
I did a fresh install of FreeBSD 9.1-RC2 and imported an originally 4 disk zraid pool with only 3 disks attached in readonly mode (via zpool import -o readonly=on storage). On replacement of the missing disk via zpool replace storage ada1 the machine reboots instantly (with no messages in the system logs). I repeated the procedure five times with the same outcome. On importing the zpool without the readonly option, resilvering starts and works fine.

>How-To-Repeat:
Mount a degraded raidz with '-o readonly=on' and than do 'zpool replace poolname newdisk'
>Fix:


>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-bugs->freebsd-fs 
Responsible-Changed-By: linimon 
Responsible-Changed-When: Mon Nov 5 02:36:30 UTC 2012 
Responsible-Changed-Why:  
Over to maintainer(s). 

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