Skip to content

zpool import -T is broken #1926

@ryao

Description

@ryao

zpool import -T is broken. Here are simple steps to reproduce:

truncate -s 1G /tmp/zfs
zpool create test /tmp/zfs
zpool export test
# This should show that the highest transaction group is 8.
zdb -lu /tmp/zfs 
zpool import -d /tmp test
zpool export test
# This should show that the transaction group increased
zdb -lu /tmp/zfs 
zpool import -T 8 -d /tmp test

The output will be cannot import 'test': one or more devices is currently unavailable. This is a problem when -F is needed and does not work. I am filing this as a note to myself to fix this.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions