Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 27 Mar 2009 18:30:24 GMT
From:      Philipp Wuensche <cryx-freebsd@h3q.com>
To:        freebsd-gnats-submit@FreeBSD.org
Subject:   misc/133134: Missing ZFS zpool labels
Message-ID:  <200903271830.n2RIUOfR028622@www.freebsd.org>
Resent-Message-ID: <200903271840.n2RIe1pP036211@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         133134
>Category:       misc
>Synopsis:       Missing ZFS zpool labels
>Confidential:   no
>Severity:       serious
>Priority:       high
>Responsible:    freebsd-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Fri Mar 27 18:40:01 UTC 2009
>Closed-Date:
>Last-Modified:
>Originator:     Philipp Wuensche
>Release:        8.0-CURRENT (source from 20090327)
>Organization:
>Environment:
FreeBSD whitebox.h3q.com 8.0-CURRENT FreeBSD 8.0-CURRENT #3: Fri Mar 27 12:32:59 CET 2009     root@whitebox.h3q.com:/usr/obj/usr/src/sys/GEENRIC  amd64
>Description:
When showing the ZFS labels on a geom provider with "zdb -l <geom>" the labels 2 and 3 are missing.

If using a file as provider for the zpool, zdb shows the missing labels even when the zpool was created through an md-device.
>How-To-Repeat:
[whitebox:/root] root# dd if=/dev/zero of=test.img bs=1m count=100
100+0 records in
100+0 records out
104857600 bytes transferred in 0.315139 secs (332734638 bytes/sec)
[whitebox:/root] root# mdconfig -a -t vnode -f test.img 
md0
[whitebox:/root] root# zpool create testpool /dev/md0 
[whitebox:/root] root# zdb -l /dev/md0
--------------------------------------------
LABEL 0
--------------------------------------------
    version=13
    name='testpool'
    state=0
    txg=4
    pool_guid=2022266848975434040
    hostid=1432134653
    hostname='whitebox.h3q.com'
    top_guid=17323217701205895090
    guid=17323217701205895090
    vdev_tree
        type='disk'
        id=0
        guid=17323217701205895090
        path='/dev/md0'
        whole_disk=0
        metaslab_array=23
        metaslab_shift=19
        ashift=9
        asize=100139008
        is_log=0
--------------------------------------------
LABEL 1
--------------------------------------------
    version=13
    name='testpool'
    state=0
    txg=4
    pool_guid=2022266848975434040
    hostid=1432134653
    hostname='whitebox.h3q.com'
    top_guid=17323217701205895090
    guid=17323217701205895090
    vdev_tree
        type='disk'
        id=0
        guid=17323217701205895090
        path='/dev/md0'
        whole_disk=0
        metaslab_array=23
        metaslab_shift=19
        ashift=9
        asize=100139008
        is_log=0
--------------------------------------------
LABEL 2
--------------------------------------------
failed to read label 2
--------------------------------------------
LABEL 3
--------------------------------------------
failed to read label 3
[whitebox:/root] root# zdb -l test.img 
--------------------------------------------
LABEL 0
--------------------------------------------
    version=13
    name='testpool'
    state=0
    txg=4
    pool_guid=2022266848975434040
    hostid=1432134653
    hostname='whitebox.h3q.com'
    top_guid=17323217701205895090
    guid=17323217701205895090
    vdev_tree
        type='disk'
        id=0
        guid=17323217701205895090
        path='/dev/md0'
        whole_disk=0
        metaslab_array=23
        metaslab_shift=19
        ashift=9
        asize=100139008
        is_log=0
--------------------------------------------
LABEL 1
--------------------------------------------
    version=13
    name='testpool'
    state=0
    txg=4
    pool_guid=2022266848975434040
    hostid=1432134653
    hostname='whitebox.h3q.com'
    top_guid=17323217701205895090
    guid=17323217701205895090
    vdev_tree
        type='disk'
        id=0
        guid=17323217701205895090
        path='/dev/md0'
        whole_disk=0
        metaslab_array=23
        metaslab_shift=19
        ashift=9
        asize=100139008
        is_log=0
--------------------------------------------
LABEL 2
--------------------------------------------
    version=13
    name='testpool'
    state=0
    txg=4
    pool_guid=2022266848975434040
    hostid=1432134653
    hostname='whitebox.h3q.com'
    top_guid=17323217701205895090
    guid=17323217701205895090
    vdev_tree
        type='disk'
        id=0
        guid=17323217701205895090
        path='/dev/md0'
        whole_disk=0
        metaslab_array=23
        metaslab_shift=19
        ashift=9
        asize=100139008
        is_log=0
--------------------------------------------
LABEL 3
--------------------------------------------
    version=13
    name='testpool'
    state=0
    txg=4
    pool_guid=2022266848975434040
    hostid=1432134653
    hostname='whitebox.h3q.com'
    top_guid=17323217701205895090
    guid=17323217701205895090
    vdev_tree
        type='disk'
        id=0
        guid=17323217701205895090
        path='/dev/md0'
        whole_disk=0
        metaslab_array=23
        metaslab_shift=19
        ashift=9
        asize=100139008
        is_log=0

>Fix:


>Release-Note:
>Audit-Trail:
>Unformatted:



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