From owner-freebsd-amd64@freebsd.org Tue Feb 7 12:26:45 2017 Return-Path: Delivered-To: freebsd-amd64@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 51BE3CD1BD5 for ; Tue, 7 Feb 2017 12:26:45 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2001:1900:2254:206a::16:76]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 41A7C1F8A for ; Tue, 7 Feb 2017 12:26:45 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from bugs.freebsd.org ([127.0.1.118]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id v17CQivB075422 for ; Tue, 7 Feb 2017 12:26:45 GMT (envelope-from bugzilla-noreply@freebsd.org) From: bugzilla-noreply@freebsd.org To: freebsd-amd64@FreeBSD.org Subject: [Bug 216881] zpool detach hangs if autoexpand is set to on. Date: Tue, 07 Feb 2017 12:26:45 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: kern X-Bugzilla-Version: 11.0-RELEASE X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Some People X-Bugzilla-Who: jmc-freebsd2@milibyte.co.uk X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: freebsd-bugs@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version rep_platform op_sys bug_status bug_severity priority component assigned_to reporter cc Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: freebsd-amd64@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Porting FreeBSD to the AMD64 platform List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 07 Feb 2017 12:26:45 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D216881 Bug ID: 216881 Summary: zpool detach hangs if autoexpand is set to on. Product: Base System Version: 11.0-RELEASE Hardware: amd64 OS: Any Status: New Severity: Affects Some People Priority: --- Component: kern Assignee: freebsd-bugs@FreeBSD.org Reporter: jmc-freebsd2@milibyte.co.uk CC: freebsd-amd64@FreeBSD.org CC: freebsd-amd64@FreeBSD.org FreeBSD curlew.lan 11.0-RELEASE-p2 FreeBSD 11.0-RELEASE-p2 #0: Mon Oct 24 06:55:27 UTC 2016=20=20=20=20 root@amd64-builder.daemonology.net:/usr/obj/usr/src/sys/GENERIC amd64 zpool detach hangs and eventually freezes the entire system if autoexpand is set to on. After rebooting the detached device is still shown in the pool but is inaccessible and cannot be removed For example, starting with this pool: root@fbsd11:~ # zpool status pool: test state: ONLINE scan: resilvered 74.5K in 0h0m with 0 errors on Mon Feb 6 13:55:04 2017 config: NAME STATE READ WRITE CKSUM test ONLINE 0 0 0 mirror-0 ONLINE 0 0 0 gpt/ztest1 ONLINE 0 0 0 gpt/ztest2 ONLINE 0 0 0 errors: No known data errors root@fbsd11:~ # zpool get autoexpand NAME PROPERTY VALUE SOURCE test autoexpand on local If I attempt to detach test gpt/ztest2 it hangs and after rebooting I have = the following: root@fbsd11:~ # zpool status pool: test state: DEGRADED status: One or more devices could not be opened. Sufficient replic= as 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: resilvered 74.5K in 0h0m with 0 errors on Mon Feb 6 13:55:04 2017 config: NAME STATE READ WRITE CKSUM test DEGRADED 0 0 0 mirror-0 DEGRADED 0 0 0 gpt/ztest1 ONLINE 0 0 0 12467057712079289495 UNAVAIL 0 0 0 w= as /dev/gpt/ztest2 errors: No known data errors At this stage the former gpt/ztest2 cannot be detached or reattached until I set autoexpand to off which then enables me to detach it. A similar problem was resolved with FreeNAS in November and might be releva= nt - https://bugs.pcbsd.org/issues/14337 --=20 You are receiving this mail because: You are on the CC list for the bug.=