From owner-freebsd-bugs@freebsd.org Tue Aug 1 02:42:32 2017 Return-Path: Delivered-To: freebsd-bugs@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 05911DC70FE for ; Tue, 1 Aug 2017 02:42:32 +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 E8D7274271 for ; Tue, 1 Aug 2017 02:42:31 +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 v712gVu2077857 for ; Tue, 1 Aug 2017 02:42:31 GMT (envelope-from bugzilla-noreply@freebsd.org) From: bugzilla-noreply@freebsd.org To: freebsd-bugs@FreeBSD.org Subject: [Bug 221133] ZFS failure on partition resize Date: Tue, 01 Aug 2017 02:42:32 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: kern X-Bugzilla-Version: 11.1-RELEASE X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Some People X-Bugzilla-Who: jonc@chen.org.nz 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 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-bugs@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 01 Aug 2017 02:42:32 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D221133 Bug ID: 221133 Summary: ZFS failure on partition resize Product: Base System Version: 11.1-RELEASE Hardware: Any OS: Any Status: New Severity: Affects Some People Priority: --- Component: kern Assignee: freebsd-bugs@FreeBSD.org Reporter: jonc@chen.org.nz ZFS on 11.1-RELEASE does not like resized partitions. The following was done on a USB drive to demonstrate the failure-case, but = it applies to any drive in general (as I found out with my root partition). ~,2:30pm# gpart show -l da0=20=20=20=20 =3D> 34 30529469 da0 GPT (15G)=20=20 34 6 - free - (3.0K)=20=20 40 8388608 1 fat-shiv (4.0G)=20=20 8388648 22140855 - free - (11G)=20=20 ~,2:30pm# gpart add -t freebsd-zfs -s 5G -l test1 da0=20=20=20=20 da0p2 added=20=20 1.irontree:~,2:31pm# gpart show -l da0=20=20=20=20 =3D> 34 30529469 da0 GPT (15G)=20=20 34 6 - free - (3.0K)=20=20 40 8388608 1 fat-shiv (4.0G)=20=20 8388648 10485760 2 test1 (5.0G)=20=20 18874408 11655095 - free - (5.6G)=20=20 ~,2:31pm# zpool create test1 gpt/test1=20=20=20=20 ~,2:31pm# zpool status test1=20=20=20=20 pool: test1=20=20 state: ONLINE=20=20 scan: none requested=20=20 config:=20=20 NAME STATE READ WRITE CKSUM=20=20 test1 ONLINE 0 0 0=20=20 gpt/test1 ONLINE 0 0 0=20=20 errors: No known data errors=20=20 ~,2:32pm# zpool export test1=20=20=20=20 ~,2:32pm# gpart resize -i2 da0=20=20=20=20 da0p2 resized=20=20 ~,2:32pm# zpool import test1=20=20=20=20 Assertion failed: (avl_find() succeeded inside avl_add()), file /usr/src/sys/cdd l/contrib/opensolaris/common/avl/avl.c, line 649.=20=20 Abort (core dumped) The same set of commands will work with 10.3-RELEASE; which is what I had t= o do to recover my zpool. The following entries were found in /var/log/messages: Aug 1 14:32:50 irontree kernel: g_access(918): provider gpt/test1 has error Aug 1 14:32:50 irontree last message repeated 2 times Aug 1 14:32:50 irontree kernel: g_dev_taste: make_dev_p() failed (gp->name=3Dgpt/test1, error=3D17) --=20 You are receiving this mail because: You are the assignee for the bug.=