[ZFS] How to fix corrupt ZDB

Beeblebrox zaphod at berentweb.com
Thu Nov 8 16:07:41 UTC 2012


output for *# zdb* is the same as *# zdb -C*
bsdr:
    version: 28
    name: 'bsdr'
    state: 0
    txg: 43281
    pool_guid: 18171682415991203571
    hostid: 2739729201
    hostname: 'rbsd.me'
    vdev_children: 2
    vdev_tree:
        type: 'root'
        id: 0
        guid: 18171682415991203571
        children[0]:
            type: 'disk'
            id: 0
            guid: 3768638969829014374
            path: '/dev/ada0'
            phys_path: '/dev/ada0'
            whole_disk: 1
            metaslab_array: 30
            metaslab_shift: 31
            ashift: 9
            asize: 320068124672
            is_log: 0
            DTL: 42
            create_txg: 4
        children[1]:
            type: 'disk'
            id: 1
            guid: 1129540067409051140
            path: '/dev/ada1p9'
            phys_path: '/dev/ada1p9'
            whole_disk: 1
            metaslab_array: 166
            metaslab_shift: 24
            ashift: 12
            asize: 2035548160
            is_log: 1
            create_txg: 23549
Interestingly, the log on SSD /dev/ada1p9 correctly shows ashift 12 - So
that is correct. Root pool is on a regular samsung (no 4k).

*# zdb -l /dev/ada0*
LABEL 0
--------------------------------------------
    version: 28
    name: 'bsdr'
    state: 0
    txg: 43281
    pool_guid: 18171682415991203571
    hostid: 2739729201
    hostname: 'rbsd.me'
    top_guid: 3768638969829014374
    guid: 3768638969829014374
    vdev_children: 2
    vdev_tree:
        type: 'disk'
        id: 0
        guid: 3768638969829014374
        path: '/dev/ada0'
        phys_path: '/dev/ada0'
        whole_disk: 1
        metaslab_array: 30
        metaslab_shift: 31
        ashift: 9
        asize: 320068124672
        is_log: 0
        DTL: 42
        create_txg: 4
The exact same information is repeated 4 times from LABEL 0 -> LABEL 3

*# zdb -l /dev/ada1p9 *
LABEL 0
--------------------------------------------
    version: 28
    name: 'bsdr'
    state: 0
    txg: 43281
    pool_guid: 18171682415991203571
    hostid: 2739729201
    hostname: 'rbsd.me'
    top_guid: 1129540067409051140
    guid: 1129540067409051140
    is_log: 1
    vdev_children: 2
    vdev_tree:
        type: 'disk'
        id: 1
        guid: 1129540067409051140
        path: '/dev/ada1p9'
        phys_path: '/dev/ada1p9'
        whole_disk: 1
        metaslab_array: 166
        metaslab_shift: 24
        ashift: 12
        asize: 2035548160
        is_log: 1
        create_txg: 23549
The exact same information is repeated 4 times from LABEL 0 -> LABEL 3

It looks like I made a big deal out of nothing?



--
View this message in context: http://freebsd.1045724.n5.nabble.com/ZFS-How-to-fix-corrupt-ZDB-tp5758864p5759205.html
Sent from the freebsd-fs mailing list archive at Nabble.com.


More information about the freebsd-fs mailing list