From owner-freebsd-fs@freebsd.org Sat Oct 13 18:09:20 2018 Return-Path: Delivered-To: freebsd-fs@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 0CEEE10D179C for ; Sat, 13 Oct 2018 18:09:20 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mailman.ysv.freebsd.org (mailman.ysv.freebsd.org [IPv6:2001:1900:2254:206a::50:5]) by mx1.freebsd.org (Postfix) with ESMTP id 4EB6B847EC for ; Sat, 13 Oct 2018 18:09:19 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: by mailman.ysv.freebsd.org (Postfix) id 11F3C10D1797; Sat, 13 Oct 2018 18:09:19 +0000 (UTC) Delivered-To: fs@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id E391D10D1796 for ; Sat, 13 Oct 2018 18:09:18 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.ysv.freebsd.org (mxrelay.ysv.freebsd.org [IPv6:2001:1900:2254:206a::19:3]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "mxrelay.ysv.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 809E2847D5 for ; Sat, 13 Oct 2018 18:09:18 +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 mxrelay.ysv.freebsd.org (Postfix) with ESMTPS id C3AF5836 for ; Sat, 13 Oct 2018 18:09:17 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.118]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id w9DI9Hr5016104 for ; Sat, 13 Oct 2018 18:09:17 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id w9DI9HaA016099 for fs@FreeBSD.org; Sat, 13 Oct 2018 18:09:17 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: fs@FreeBSD.org Subject: [Bug 228750] panic on zfs mirror removal Date: Sat, 13 Oct 2018 18:09:16 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: kern X-Bugzilla-Version: 11.1-STABLE X-Bugzilla-Keywords: panic X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: cheeky.m@live.com X-Bugzilla-Status: In Progress X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: mav@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: 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-fs@freebsd.org X-Mailman-Version: 2.1.27 Precedence: list List-Id: Filesystems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 13 Oct 2018 18:09:20 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D228750 --- Comment #11 from Roger Hammerstein --- (In reply to Allan Jude from comment #10) yes, that patch works.=20=20 root@freebsd12:~ # zpool remove test mirror-1 root@freebsd12:~ # root@freebsd12:~ # zpool status pool: test state: ONLINE scan: none requested remove: Evacuation of mirror-1 in progress since Sat Oct 13 10:03:42 2018 5.81M copied out of 5.81M at 850K/s, 100.00% done, 0h0m to go config: NAME STATE READ WRITE CKSUM test ONLINE 0 0 0 mirror-0 ONLINE 0 0 0 da9 ONLINE 0 0 0 da8 ONLINE 0 0 0 mirror-1 ONLINE 0 0 0 da7 ONLINE 0 0 0 da6 ONLINE 0 0 0 mirror-2 ONLINE 0 0 0 da5 ONLINE 0 0 0 da4 ONLINE 0 0 0 errors: No known data errors root@freebsd12:~ # root@freebsd12:~ # zpool status pool: test state: ONLINE scan: none requested remove: Removal of vdev 1 copied 5.81M in 0h0m, completed on Sat Oct 13 10:03:51 2018 384 memory used for removed device mappings config: NAME STATE READ WRITE CKSUM test ONLINE 0 0 0 mirror-0 ONLINE 0 0 0 da9 ONLINE 0 0 0 da8 ONLINE 0 0 0 mirror-2 ONLINE 0 0 0 da5 ONLINE 0 0 0 da4 ONLINE 0 0 0 errors: No known data errors root@freebsd12:~ # and for extra: root@freebsd12:~ # zpool remove test mirror-2 root@freebsd12:~ # zpool status pool: test state: ONLINE scan: none requested remove: Evacuation of mirror-2 in progress since Sat Oct 13 10:05:49 2018 7.15M copied out of 7.15M at 1.79M/s, 100.00% done, 0h0m to go 384 memory used for removed device mappings config: NAME STATE READ WRITE CKSUM test ONLINE 0 0 0 mirror-0 ONLINE 0 0 0 da9 ONLINE 0 0 0 da8 ONLINE 0 0 0 mirror-2 ONLINE 0 0 0 da5 ONLINE 0 0 0 da4 ONLINE 0 0 0 errors: No known data errors root@freebsd12:~ # root@freebsd12:~ # zpool status pool: test state: ONLINE scan: none requested remove: Removal of vdev 2 copied 7.15M in 0h0m, completed on Sat Oct 13 10:05:54 2018 912 memory used for removed device mappings config: NAME STATE READ WRITE CKSUM test ONLINE 0 0 0 mirror-0 ONLINE 0 0 0 da9 ONLINE 0 0 0 da8 ONLINE 0 0 0 errors: No known data errors root@freebsd12:~ # root@freebsd12:~ # zpool clear test root@freebsd12:~ # zpool status test pool: test state: ONLINE scan: none requested remove: Removal of vdev 2 copied 7.15M in 0h0m, completed on Sat Oct 13 10:05:54 2018 912 memory used for removed device mappings config: NAME STATE READ WRITE CKSUM test ONLINE 0 0 0 mirror-0 ONLINE 0 0 0 da9 ONLINE 0 0 0 da8 ONLINE 0 0 0 errors: No known data errors root@freebsd12:~ # root@freebsd12:~ # zpool export test root@freebsd12:~ # zpool import test zpool status test root@freebsd12:~ # zpool status test pool: test state: ONLINE scan: none requested remove: Removal of vdev 2 copied 7.15M in 0h0m, completed on Sat Oct 13 10:05:54 2018 912 memory used for removed device mappings config: NAME STATE READ WRITE CKSUM test ONLINE 0 0 0 mirror-0 ONLINE 0 0 0 da9 ONLINE 0 0 0 da8 ONLINE 0 0 0 errors: No known data errors root@freebsd12:~ # FreeBSD freebsd12 12.0-ALPHA9 FreeBSD 12.0-ALPHA9 #3 r339345M --=20 You are receiving this mail because: You are on the CC list for the bug.=