zfs - 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
解决方案
推荐阅读
- javascript - 如何在 JSX 中使用对象渲染数组?
- shopify - Shopify Products API 在分页中跳过项目
- javascript - 在 useEffect 中调用 Firestore 时出现“未处理的拒绝(TypeError):snapshot.data 不是函数”
- .net - 为什么 .NET 5 项目除了 EXE 之外,还要创建两个同名的 DLL,一个在主二进制文件夹中,一个在 refs 子文件夹中?
- visual-studio-code - VSCode:如何构建一个带有少量模块和测试、调试和 linting 的简单 python 包?
- reactjs - 如何在反应中读取 PNG 的元数据
- python - 电路 Python MQTT 异常块
- python - Sed 从命令行工作,但不在 Python 脚本中
- .net - 如何使用 docker 在 Heroku 上运行 https 服务器?
- python - 跨度标签内文本的美丽汤提取