首页 > 解决方案 > Zpool 导入 - 一台或多台设备当前不可用

问题描述

当尝试使用 -m(以及 -F 和 -f 及其组合)导入 zpool 时,我收到:“无法导入 'tank2':一个或多个设备当前不可用”

我相信丢失的设备(如下)是一个日志和一个缓存 vdev。镜像日志设备文件可用,对于没有缺少额外 vdev 的其他池,使用 -m 的导入有效。

有没有办法恢复/导入?

sudo zdb -e tank2 结果:

Configuration for import:
        vdev_children: 3
        version: 5000
        pool_guid: 11600171545368744222
        name: 'tank2'
        state: 0
        hostid: 2831219715
        hostname: 'st1'
        vdev_tree:
            type: 'root'
            id: 0
            guid: 11600171545368744222
            children[0]:
                type: 'mirror'
                id: 0
                guid: 9447464883398653648
                metaslab_array: 256
                metaslab_shift: 37
                ashift: 12
                asize: 16000885456896
                is_log: 0
                create_txg: 4
                children[0]:
                    type: 'disk'
                    id: 0
                    guid: 3886967508015062789
                    whole_disk: 1
                    DTL: 120
                    create_txg: 4
                    path: '/dev/disk/by-id/wwn-0x5000c500c522d118-part1'
                children[1]:
                    type: 'disk'
                    id: 1
                    guid: 15212288139380056264
                    whole_disk: 1
                    DTL: 119
                    create_txg: 4
                    path: '/dev/disk/by-id/wwn-0x5000c500c523813a-part1'
            children[1]:
                type: 'missing'
                id: 1
                guid: 0
            children[2]:
                type: 'missing'
                id: 2
                guid: 0
        rewind-policy:
            rewind-request-txg: 18446744073709551615
            rewind-request: 2
zdb: can't open 'tank2': No such device or address

标签: zfs

解决方案


推荐阅读