gpt4 book ai didi

linux - 磁盘替换后无法(强制)导入 zpool(I/O 错误)

转载 作者:行者123 更新时间:2023-12-05 07:58:52 25 4
gpt4 key购买 nike

更换损坏的磁盘后,我无法导入 raidz1-0 阵列。在磁盘交换之前我无法使损坏的磁盘“脱机”,现在我无法再导入 zpool 以“替换”损坏的磁盘。

我没有备份/导出,我很担心。由于只有一个磁盘出现故障,我希望(d)我能够恢复池,但我想不出还有什么可以尝试的。非常欢迎任何意见/提示/建议!

请参阅下面我遵循的步骤。

System: Linux nas 3.2.0-4-amd64 #1 SMP Debian 3.2.57-3 x86_64 GNU/Linux

root@nas:/home/lucas# zpool status -v

no pools available

root@nas:/home/lucas#zpool import

   pool: naspool
id: 3030059305965279629
state: DEGRADED
status: One or more devices contains corrupted data.
action: The pool can be imported despite missing or damaged devices. The
fault tolerance of the pool may be compromised if imported.
see: http://zfsonlinux.org/msg/ZFS-8000-4J
config:

naspool DEGRADED
raidz1-0 DEGRADED
sda ONLINE
scsi-SATA_ST3000DM001-1CH_Z1F3LC75 ONLINE
ata-ST3000DM001-9YN166_Z1F0QJHV ONLINE
sdd ONLINE
sde UNAVAIL

root@nas:/home/lucas# zpool import naspool

cannot import 'naspool': pool may be in use from other system use '-f' to import anyway

root@nas:/home/lucas# zpool import naspool -f

cannot import 'naspool': I/O error Destroy and re-create the pool from a backup source.

root@nas:/home/lucas#zdb

cannot open '/etc/zfs/zpool.cache': No such file or directory

root@nas:/home/lucas# ls -l/dev/disk/by-id

total 0
lrwxrwxrwx 1 root root 9 Apr 29 09:23 ata-SanDisk_SDSSDP128G_133230401711 -> ../../sdf
lrwxrwxrwx 1 root root 10 Apr 28 17:30 ata-SanDisk_SDSSDP128G_133230401711-part1 -> ../../sdf1
lrwxrwxrwx 1 root root 10 Apr 28 17:30 ata-SanDisk_SDSSDP128G_133230401711-part2 -> ../../sdf2
lrwxrwxrwx 1 root root 10 Apr 28 17:30 ata-SanDisk_SDSSDP128G_133230401711-part3 -> ../../sdf3
lrwxrwxrwx 1 root root 9 Apr 29 09:23 ata-ST3000DM001-1CH166_W1F39CBE -> ../../sde
lrwxrwxrwx 1 root root 9 Apr 29 09:23 ata-ST3000DM001-1CH166_Z1F3LC75 -> ../../sdb
lrwxrwxrwx 1 root root 10 Apr 28 17:30 ata-ST3000DM001-1CH166_Z1F3LC75-part1 -> ../../sdb1
lrwxrwxrwx 1 root root 10 Apr 28 17:30 ata-ST3000DM001-1CH166_Z1F3LC75-part9 -> ../../sdb9
lrwxrwxrwx 1 root root 9 Apr 29 09:23 ata-ST3000DM001-9YN166_Z1F0PXHP -> ../../sdd
lrwxrwxrwx 1 root root 10 Apr 28 17:30 ata-ST3000DM001-9YN166_Z1F0PXHP-part1 -> ../../sdd1
lrwxrwxrwx 1 root root 10 Apr 28 17:30 ata-ST3000DM001-9YN166_Z1F0PXHP-part9 -> ../../sdd9
lrwxrwxrwx 1 root root 9 Apr 29 09:23 ata-ST3000DM001-9YN166_Z1F0QJHV -> ../../sdc
lrwxrwxrwx 1 root root 10 Apr 28 17:30 ata-ST3000DM001-9YN166_Z1F0QJHV-part1 -> ../../sdc1
lrwxrwxrwx 1 root root 10 Apr 28 17:30 ata-ST3000DM001-9YN166_Z1F0QJHV-part9 -> ../../sdc9
lrwxrwxrwx 1 root root 9 Apr 29 09:23 ata-ST3000DM001-9YN166_Z1F0RGWW -> ../../sda
lrwxrwxrwx 1 root root 10 Apr 28 17:30 ata-ST3000DM001-9YN166_Z1F0RGWW-part1 -> ../../sda1
lrwxrwxrwx 1 root root 10 Apr 28 17:30 ata-ST3000DM001-9YN166_Z1F0RGWW-part9 -> ../../sda9
lrwxrwxrwx 1 root root 9 Apr 29 09:23 scsi-SATA_SanDisk_SDSSDP1133230401711 -> ../../sdf
lrwxrwxrwx 1 root root 10 Apr 28 17:30 scsi-SATA_SanDisk_SDSSDP1133230401711-part1 -> ../../sdf1
lrwxrwxrwx 1 root root 10 Apr 28 17:30 scsi-SATA_SanDisk_SDSSDP1133230401711-part2 -> ../../sdf2
lrwxrwxrwx 1 root root 10 Apr 28 17:30 scsi-SATA_SanDisk_SDSSDP1133230401711-part3 -> ../../sdf3
lrwxrwxrwx 1 root root 9 Apr 29 09:23 scsi-SATA_ST3000DM001-1CH_W1F39CBE -> ../../sde
lrwxrwxrwx 1 root root 9 Apr 29 09:23 scsi-SATA_ST3000DM001-1CH_Z1F3LC75 -> ../../sdb
lrwxrwxrwx 1 root root 10 Apr 28 17:30 scsi-SATA_ST3000DM001-1CH_Z1F3LC75-part1 -> ../../sdb1
lrwxrwxrwx 1 root root 10 Apr 28 17:30 scsi-SATA_ST3000DM001-1CH_Z1F3LC75-part9 -> ../../sdb9
lrwxrwxrwx 1 root root 9 Apr 29 09:23 scsi-SATA_ST3000DM001-9YN_Z1F0PXHP -> ../../sdd
lrwxrwxrwx 1 root root 10 Apr 28 17:30 scsi-SATA_ST3000DM001-9YN_Z1F0PXHP-part1 -> ../../sdd1
lrwxrwxrwx 1 root root 10 Apr 28 17:30 scsi-SATA_ST3000DM001-9YN_Z1F0PXHP-part9 -> ../../sdd9
lrwxrwxrwx 1 root root 9 Apr 29 09:23 scsi-SATA_ST3000DM001-9YN_Z1F0QJHV -> ../../sdc
lrwxrwxrwx 1 root root 10 Apr 28 17:30 scsi-SATA_ST3000DM001-9YN_Z1F0QJHV-part1 -> ../../sdc1
lrwxrwxrwx 1 root root 10 Apr 28 17:30 scsi-SATA_ST3000DM001-9YN_Z1F0QJHV-part9 -> ../../sdc9
lrwxrwxrwx 1 root root 9 Apr 29 09:23 scsi-SATA_ST3000DM001-9YN_Z1F0RGWW -> ../../sda
lrwxrwxrwx 1 root root 10 Apr 28 17:30 scsi-SATA_ST3000DM001-9YN_Z1F0RGWW-part1 -> ../../sda1
lrwxrwxrwx 1 root root 10 Apr 28 17:30 scsi-SATA_ST3000DM001-9YN_Z1F0RGWW-part9 -> ../../sda9
lrwxrwxrwx 1 root root 9 Apr 29 09:23 wwn-0x5000c5004d865cbb -> ../../sdd
lrwxrwxrwx 1 root root 10 Apr 28 17:30 wwn-0x5000c5004d865cbb-part1 -> ../../sdd1
lrwxrwxrwx 1 root root 10 Apr 28 17:30 wwn-0x5000c5004d865cbb-part9 -> ../../sdd9
lrwxrwxrwx 1 root root 9 Apr 29 09:23 wwn-0x5000c5004d9b492d -> ../../sdc
lrwxrwxrwx 1 root root 10 Apr 28 17:30 wwn-0x5000c5004d9b492d-part1 -> ../../sdc1
lrwxrwxrwx 1 root root 10 Apr 28 17:30 wwn-0x5000c5004d9b492d-part9 -> ../../sdc9
lrwxrwxrwx 1 root root 9 Apr 29 09:23 wwn-0x5000c5004d9c3fa6 -> ../../sda
lrwxrwxrwx 1 root root 10 Apr 28 17:30 wwn-0x5000c5004d9c3fa6-part1 -> ../../sda1
lrwxrwxrwx 1 root root 10 Apr 28 17:30 wwn-0x5000c5004d9c3fa6-part9 -> ../../sda9
lrwxrwxrwx 1 root root 9 Apr 29 09:23 wwn-0x5000c500646bb32a -> ../../sdb
lrwxrwxrwx 1 root root 10 Apr 28 17:30 wwn-0x5000c500646bb32a-part1 -> ../../sdb1
lrwxrwxrwx 1 root root 10 Apr 28 17:30 wwn-0x5000c500646bb32a-part9 -> ../../sdb9
lrwxrwxrwx 1 root root 9 Apr 29 09:23 wwn-0x5000c50069abed23 -> ../../sde
lrwxrwxrwx 1 root root 9 Apr 29 09:23 wwn-0x5001b44a10bb94af -> ../../sdf
lrwxrwxrwx 1 root root 10 Apr 28 17:30 wwn-0x5001b44a10bb94af-part1 -> ../../sdf1
lrwxrwxrwx 1 root root 10 Apr 28 17:30 wwn-0x5001b44a10bb94af-part2 -> ../../sdf2
lrwxrwxrwx 1 root root 10 Apr 28 17:30 wwn-0x5001b44a10bb94af-part3 -> ../../sdf3

root@nas:/home/lucas# zpool replace naspool scsi-SATA_ST3000DM001-1CH_W1F39CBE

cannot open 'naspool': no such pool

root@nas:/home/lucas# zpool import -d/dev/disk/by-id/

pool: naspool id: 3030059305965279629 state: DEGRADED status: One or more devices contains corrupted data. action: The pool can be imported despite missing or damaged devices. The fault tolerance of the pool may be compromised if imported. see: http://zfsonlinux.org/msg/ZFS-8000-4J config:

    naspool                                 DEGRADED
raidz1-0 DEGRADED
ata-ST3000DM001-9YN166_Z1F0RGWW ONLINE
scsi-SATA_ST3000DM001-1CH_Z1F3LC75 ONLINE
ata-ST3000DM001-9YN166_Z1F0QJHV ONLINE
ata-ST3000DM001-9YN166_Z1F0PXHP ONLINE
sde UNAVAIL

root@nas:/home/lucas# zpool import -d/dev/disk/by-id/naspool

cannot import 'naspool': pool may be in use from other system use '-f' to import anyway

root@nas:/home/lucas# zpool import -d/dev/disk/by-id/naspool -f

cannot import 'naspool': I/O error Destroy and re-create the pool from a backup source.

root@nas:/home/lucas# zpool import -f -F naspool

cannot import 'naspool': I/O error Destroy and re-create the pool from a backup source.

root@nas:/home/lucas# zpool import -f -F 3030059305965279629

cannot import 'naspool': I/O error Destroy and re-create the pool from a backup source.

root@nas:/home/lucas# zpool import -d/dev/disk/by-id/-f -F 3030059305965279629

cannot import 'naspool': I/O error Destroy and re-create the pool from a backup source.

我还尝试使用 zfsGuru live USB 内存棒启动以导入池,但这没有用: disk overview, new disk does not contain a label (or partitions) zpool is detected but importing fails

最佳答案

分析你分享的信息,我认为是无法导入,因为图片损坏了。

关于linux - 磁盘替换后无法(强制)导入 zpool(I/O 错误),我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/23381512/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com