zpool create fails on gpart device

Kurt Touet ktouet at gmail.com
Wed Dec 9 19:17:50 UTC 2009


On Wed, Dec 9, 2009 at 2:36 AM, Pawel Jakub Dawidek <pjd at freebsd.org> wrote:
> On Tue, Dec 08, 2009 at 10:24:22PM -0600, Kurt Touet wrote:
>> kernel: vdev_geom_open_by_path:472[1]: Found provider by name /dev/da1p3.
>> kernel: vdev_geom_attach:112[1]: Attaching to da1p3.
>> kernel: vdev_geom_attach:132[1]: g_access() failed
>> kernel: vdev_geom_open:527[1]: Provider /dev/da1p3 not found.
>> root: ZFS: vdev failure, zpool=data type=vdev.open_failed
>>
>> Does 132[1]: g_access() failed   help you out?
>
> We are getting closer:)
>
> I'd need the output of those command:
>
>        # gpart list da1 | grep -A3 'Name: da1p3' | tail -1
>        # sysctl -b kern.geom.confxml
>
> If the first command gives you 'r0w0e0' then we would need this updated
> patch:
>
>        http://people.freebsd.org/~pjd/patches/vdev_geom.c.patch
>
> It looks like when your pool is trying to open provider it is already
> open by someone else. This is strange, because you said you can newfs
> and mount it without problems, so maybe something opens it temporairly.
>
> --
> Pawel Jakub Dawidek                       http://www.wheel.pl
> pjd at FreeBSD.org                           http://www.FreeBSD.org
> FreeBSD committer                         Am I Evil? Yes, I Am!
>

# gpart list da1 | grep -A3 'Name: da1p3' | tail -1
   Mode: r0w0e0

The output from sysctl -b kern.geom.confxml is attached.

I will grab the patch and send back results from that later today.
-kurt


More information about the freebsd-fs mailing list