ZFS zfs import not seeing pool

I'm trying to recover a vdisk from a vm that got corrupted somehow. I've attached the vdisk to a fresh freebsd 11 vm, but zpool import sees nothing even though zdb -l does:

Code:
# zpool import -R /mnt zroot
cannot import 'zroot': a pool with that name is already created/imported,
and no additional pools with that name were found

# zdb -l !$
zdb -l /dev/da1p3
------------------------------------
LABEL 0
------------------------------------
    version: 5000
    name: 'zroot'
    state: 0
    txg: 9303837
    pool_guid: 11588629007889961258
    hostid: 1107794174
    hostname: ''
    top_guid: 5194558278659115747
    guid: 5194558278659115747
    vdev_children: 1
    vdev_tree:
        type: 'disk'
        id: 0
        guid: 5194558278659115747
        path: '/dev/gptid/dee82c19-8666-11e4-b01d-005056a8d41b'
        phys_path: '/dev/gptid/dee82c19-8666-11e4-b01d-005056a8d41b'
        whole_disk: 1
        metaslab_array: 33
        metaslab_shift: 28
        ashift: 12
        asize: 32206749696
        is_log: 0
        DTL: 112
        create_txg: 4
    features_for_read:
        com.delphix:hole_birth
        com.delphix:embedded_data
------------------------------------
LABEL 1
------------------------------------
    version: 5000
    name: 'zroot'
    state: 0
    txg: 9303837
    pool_guid: 11588629007889961258
    hostid: 1107794174
    hostname: ''
    top_guid: 5194558278659115747
    guid: 5194558278659115747
    vdev_children: 1
    vdev_tree:
        type: 'disk'
        id: 0
        guid: 5194558278659115747
        path: '/dev/gptid/dee82c19-8666-11e4-b01d-005056a8d41b'
        phys_path: '/dev/gptid/dee82c19-8666-11e4-b01d-005056a8d41b'
        whole_disk: 1
        metaslab_array: 33
        metaslab_shift: 28
        ashift: 12
        asize: 32206749696
        is_log: 0
        DTL: 112
        create_txg: 4
    features_for_read:
        com.delphix:hole_birth
        com.delphix:embedded_data
------------------------------------
LABEL 2
------------------------------------
    version: 5000
    name: 'zroot'
    state: 0
    txg: 9303837
    pool_guid: 11588629007889961258
    hostid: 1107794174
    hostname: ''
    top_guid: 5194558278659115747
    guid: 5194558278659115747
    vdev_children: 1
    vdev_tree:
        type: 'disk'
        id: 0
        guid: 5194558278659115747
        path: '/dev/gptid/dee82c19-8666-11e4-b01d-005056a8d41b'
        phys_path: '/dev/gptid/dee82c19-8666-11e4-b01d-005056a8d41b'
        whole_disk: 1
        metaslab_array: 33
        metaslab_shift: 28
        ashift: 12
        asize: 32206749696
        is_log: 0
        DTL: 112
        create_txg: 4
    features_for_read:
        com.delphix:hole_birth
        com.delphix:embedded_data
------------------------------------
LABEL 3
------------------------------------
    version: 5000
    name: 'zroot'
    state: 0
    txg: 9303837
    pool_guid: 11588629007889961258
    hostid: 1107794174
    hostname: ''
    top_guid: 5194558278659115747
    guid: 5194558278659115747
    vdev_children: 1
    vdev_tree:
        type: 'disk'
        id: 0
        guid: 5194558278659115747
        path: '/dev/gptid/dee82c19-8666-11e4-b01d-005056a8d41b'
        phys_path: '/dev/gptid/dee82c19-8666-11e4-b01d-005056a8d41b'
        whole_disk: 1
        metaslab_array: 33
        metaslab_shift: 28
        ashift: 12
        asize: 32206749696
        is_log: 0
        DTL: 112
        create_txg: 4
    features_for_read:
        com.delphix:hole_birth
        com.delphix:embedded_data
 
cannot import 'zroot': a pool with that name is already created/imported

As the message imply there is a pool with that name already, if this is another pool you want to import you will need to import with another name.

Btw, you could have used
Code:
 message
instead to format message. :)
 
Back
Top