zpool create fails on gpart device

Kurt Touet ktouet at gmail.com
Wed Dec 9 21:20:32 UTC 2009


On Wed, Dec 9, 2009 at 1:17 PM, Kurt Touet <ktouet at gmail.com> wrote:
> 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
>

With the patch:

# sysctl vfs.zfs.debug=1
vfs.zfs.debug: 0 -> 1

# zpool create data /dev/da1p3
cannot create 'data': permission denied

kernel: vdev_geom_open_by_path:487[1]: Found provider by name /dev/da1p3.
kernel: vdev_geom_attach:112[1]: Attaching to da1p3.
kernel: vdev_geom_attach:140[1]: Created geom and consumer for da1p3.
kernel: vdev_geom_read_guid:322[1]: Reading guid from da1p3...
kernel: vdev_geom_detach:194[1]: Closing access to da1p3.
kernel: vdev_geom_detach:198[1]: Destroyed consumer to da1p3.
kernel: vdev_geom_detach:206[1]: Destroyed geom zfs::vdev.
kernel: vdev_geom_open_by_path:498[1]: guid mismatch for provider
/dev/da1p3: 9777046094809499960 != 0.
kernel: vdev_geom_open_by_guid:456[1]: Searching by guid [9777046094809499960].
kernel: vdev_geom_read_guid:322[1]: Reading guid from acd0t01...
kernel: vdev_geom_read_guid:322[1]: Reading guid from acd0...
kernel: vdev_geom_read_guid:322[1]: Reading guid from da1p3...
kernel: vdev_geom_read_guid:322[1]: Reading guid from da1p2...
kernel: vdev_geom_read_guid:322[1]: Reading guid from da1p1...
kernel: vdev_geom_read_guid:322[1]: Reading guid from da0s1f...
kernel: vdev_geom_read_guid:322[1]: Reading guid from da0s1e...
kernel: vdev_geom_read_guid:322[1]: Reading guid from da0s1d...
kernel: vdev_geom_read_guid:322[1]: Reading guid from da0s1b...
kernel: vdev_geom_read_guid:322[1]: Reading guid from da0s1a...
kernel: vdev_geom_read_guid:322[1]: Reading guid from da0s1...
kernel: vdev_geom_read_guid:322[1]: Reading guid from da1...
kernel: vdev_geom_read_guid:322[1]: Reading guid from da0...
kernel: vdev_geom_read_guid:322[1]: Reading guid from
gptid/78398fed-e369-11de-a6aa-000c298c3c39...
kernel: vdev_geom_read_guid:322[1]: Reading guid from ufsid/4b1c06d3f7579615...
kernel: vdev_geom_read_guid:322[1]: Reading guid from
gptid/663a8d5a-e293-11de-a6aa-000c298c3c39...
kernel: vdev_geom_read_guid:322[1]: Reading guid from
gptid/5ec68721-e293-11de-a6aa-000c298c3c39...
kernel: vdev_geom_read_guid:322[1]: Reading guid from iso9660/FreeBSD_Install...
kernel: vdev_geom_open_by_guid:470[1]: Search by guid
[9777046094809499960] failed.
kernel: vdev_geom_open_by_path:487[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_attach:136[1]: cp=0xffffff0002b70480 r0w0e0
geom=zfs::vdev class=ZFS::VDEV
kernel: vdev_geom_attach:136[1]: cp=0xffffff000263bd00 r1w0e1
geom=da1p3 class=LABEL
kernel: vdev_geom_attach:136[1]: cp=0xffffff000263bd80 r0w0e0
geom=da1p3 class=LABEL
kernel: vdev_geom_attach:136[1]: cp=0xffffff000272d180 r0w0e0
geom=da1p3 class=PART
kernel: vdev_geom_attach:136[1]: cp=0xffffff0002639580 r0w0e0
geom=da1p3 class=DEV
kernel: vdev_geom_open:542[1]: Provider /dev/da1p3 not found.
root: ZFS: vdev failure, zpool=data type=vdev.open_failed


More information about the freebsd-fs mailing list