Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 01 Aug 2017 02:42:32 +0000
From:      bugzilla-noreply@freebsd.org
To:        freebsd-bugs@FreeBSD.org
Subject:   [Bug 221133] ZFS failure on partition resize
Message-ID:  <bug-221133-8@https.bugs.freebsd.org/bugzilla/>

next in thread | raw e-mail | index | archive | help
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.=



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-221133-8>