3

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

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

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

系统: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

没有可用的游泳池

root@nas:/home/lucas# zpool 导入

   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 导入 naspool

无法导入“naspool”:池可能正在从其他系统使用,无论如何使用“-f”导入

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

无法导入“naspool”:I/O 错误 销毁并从备份源重新创建池。

root@nas:/home/lucas# zdb

无法打开“/etc/zfs/zpool.cache”:没有这样的文件或目录

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 替换 naspool scsi-SATA_ST3000DM001-1CH_W1F39CBE

无法打开“naspool”:没有这样的池

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

池:naspool id:3030059305965279629 状态:DEGRADED 状态:一个或多个设备包含损坏的数据。行动:尽管设备丢失或损坏,仍可以导入池。如果导入,池的容错性可能会受到影响。见:http: //zfsonlinux.org/msg/ZFS-8000-4J 配置:

    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

无法导入“naspool”:池可能正在从其他系统使用,无论如何使用“-f”导入

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

无法导入“naspool”:I/O 错误 销毁并从备份源重新创建池。

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

无法导入“naspool”:I/O 错误 销毁并从备份源重新创建池。

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

无法导入“naspool”:I/O 错误 销毁并从备份源重新创建池。

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

无法导入“naspool”:I/O 错误 销毁并从备份源重新创建池。

我还尝试使用 zfsGuru live USB 记忆棒启动以导入池,但这不起作用: 磁盘概览,新磁盘不包含标签(或分区) 检测到 zpool 但导入失败

4

1 回答 1

0

分析您分享的信息,我认为无法导入,因为图像已损坏。

于 2021-12-22T08:24:34.653 回答