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

时间:2014-04-30 06:53:41

标签: linux import zfs

更换损坏的磁盘后,我无法导入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 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

  

无法导入' naspool':池可能正在使用其他系统使用' -f'   无论如何要导入

root @ nas:/ home / lucas #zpool import 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 replace naspool scsi-SATA_ST3000DM001-1CH_W1F39CBE

  

无法打开' naspool':没有这样的游泳池

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

  

pool:naspool        id:3030059305965279629 state:DEGRADED status:一个或多个设备包含损坏的数据。操作:可以导入池   尽管设备丢失或损坏。该           如果导入,可能会损害池的容错能力。请参阅: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

  

无法导入' 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 stick启动以导入池,但这不起作用: disk overview, new disk does not contain a label (or partitions) zpool is detected but importing fails

0 个答案:

没有答案