From nobody@FreeBSD.org  Tue Jul 26 18:41:01 2011
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 72ACB106564A
	for <freebsd-gnats-submit@FreeBSD.org>; Tue, 26 Jul 2011 18:41:01 +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 49B6F8FC18
	for <freebsd-gnats-submit@FreeBSD.org>; Tue, 26 Jul 2011 18:41:01 +0000 (UTC)
Received: from red.freebsd.org (localhost [127.0.0.1])
	by red.freebsd.org (8.14.4/8.14.4) with ESMTP id p6QIf0pg015854
	for <freebsd-gnats-submit@FreeBSD.org>; Tue, 26 Jul 2011 18:41:00 GMT
	(envelope-from nobody@red.freebsd.org)
Received: (from nobody@localhost)
	by red.freebsd.org (8.14.4/8.14.4/Submit) id p6QIf03H015853;
	Tue, 26 Jul 2011 18:41:00 GMT
	(envelope-from nobody)
Message-Id: <201107261841.p6QIf03H015853@red.freebsd.org>
Date: Tue, 26 Jul 2011 18:41:00 GMT
From: "Vladislav V. Prodan" <universite@ukr.net>
To: freebsd-gnats-submit@FreeBSD.org
Subject: [ZFS] ZFS (scrub???) freezes system
X-Send-Pr-Version: www-3.1
X-GNATS-Notify:

>Number:         159210
>Category:       kern
>Synopsis:       [zfs] [hang] ZFS (scrub???) freezes system
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    freebsd-fs
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Tue Jul 26 18:50:02 UTC 2011
>Closed-Date:    Wed Jul 27 03:10:52 UTC 2011
>Last-Modified:  Wed Jul 27 03:10:52 UTC 2011
>Originator:     Vladislav V. Prodan
>Release:        FreeBSD 8.2-STABLE amd64
>Organization:
>Environment:
FreeBSD mary-teresa.XXXXX.ua 8.2-STABLE FreeBSD 8.2-STABLE #0: Wed Jul 13 02:01:02 EEST 2011     root@mary-teresa.XXXXX.ua:/usr/obj/usr/src/sys/XXXXX.4  amd64

>Description:


Similarly kern/159045


# zpool status tank
  pool: tank
 state: DEGRADED
status: One or more devices has been taken offline by the administrator.
        Sufficient replicas exist for the pool to continue functioning in a
        degraded state.
action: Online the device using 'zpool online' or replace the device with
        'zpool replace'.
 scan: scrub repaired 0 in 7h4m with 0 errors on Wed Jul  6 05:19:36 2011
config:

        NAME        STATE     READ WRITE CKSUM
        tank        DEGRADED     0     0     0
          raidz2-0  DEGRADED     0     0     0
            ad8p1   ONLINE       0     0     0
            ad12p1  ONLINE       0     0     0
            ad16p1  OFFLINE      0     0     0
            ad10p1  ONLINE       0     0     0
            ad14p1  ONLINE       0     0     0
            ad18p1  ONLINE       0     0     0


# gpart list ad16
gpart: No such geom: ad16.
# gpart create -s gpt ad16
ad16 created
# gpart add -t freebsd-zfs -l disk2-r ad16
ad16p1 added
# gpart list ad16
Geom name: ad16
modified: false
state: OK
fwheads: 16
fwsectors: 63
last: 1465149134
first: 34
entries: 128
scheme: GPT
Providers:
1. Name: ad16p1
   Mediasize: 750156339712 (698G)
   Sectorsize: 512
   Stripesize: 0
   Stripeoffset: 17408
   Mode: r0w0e0
   rawuuid: bf82fe0a-b7b2-11e0-a9dc-00e04d7b690c
   rawtype: 516e7cba-6ecf-11d6-8ff8-00022d09712b
   label: disk2-r
   length: 750156339712
   offset: 17408
   type: freebsd-zfs
   index: 1
   end: 1465149134
   start: 34
Consumers:
1. Name: ad16
   Mediasize: 750156374016 (698G)
   Sectorsize: 512
   Mode: r0w0e0
# zpool status tank
>How-To-Repeat:
Make degraded pool raidz, mark one of the hdd in the pool is offline.
Pull out this hdd.
Insert another hdd instead.
Partition this hdd through gpart.
>Fix:


>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->closed 
State-Changed-By: linimon 
State-Changed-When: Wed Jul 27 03:09:35 UTC 2011 
State-Changed-Why:  
Duplicate of kern/159045. 


Responsible-Changed-From-To: freebsd-bugs->freebsd-fs 
Responsible-Changed-By: linimon 
Responsible-Changed-When: Wed Jul 27 03:09:35 UTC 2011 
Responsible-Changed-Why:  

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