无法移除 ZFS raidZ2 中的驱动器

无法移除 ZFS raidZ2 中的驱动器

我认为我在更换 ZFS RaidZ2 池中的故障驱动器时搞砸了。我想我忘记先将故障驱动器脱机,然后运行替换命令,现在它似乎创建了一个临时镜像池。有什么技巧可以纠正此问题而不破坏池吗?

NAME                                 STATE     READ WRITE CKSUM  
storage                              DEGRADED     0     0     1  
  raidz2-0                           DEGRADED     0     0     2  
    replacing-0                      DEGRADED     0     0     0  
      10188385608277313659           UNAVAIL      0     0     0  was /dev/disk/by-id/ata-ST3000DM001-1CH166_Z1F4X76S-part1  
      sda                            ONLINE       0     0     0  
    ata-ST3000DM001-1CH166_W1F5C09L  ONLINE       0     0     0  
    ata-ST3000DM001-1CH166_Z1F4C9ZF  ONLINE       0     0     0  
    ata-ST3000DM001-1CH166_Z1F50YNJ  ONLINE       0     0     0  
    sde                              ONLINE       0     0     0  
    sdf                              ONLINE       0     0     0  

以下是 zpool status -v 的简要总结

  pool: storage
 state: DEGRADED
status: One or more devices has experienced an error resulting in data
        corruption.  Applications may be affected.
action: Restore the file in question if possible.  Otherwise restore the
        entire pool from backup.
   see: http://zfsonlinux.org/msg/ZFS-8000-8A
  scan: resilvered 131G in 11h41m with 1 errors on Sat Mar 16 09:33:47 2019
config:

        NAME                                 STATE     READ WRITE CKSUM
        storage                              DEGRADED     0     0     1
          raidz2-0                           DEGRADED     0     0     2
            replacing-0                      DEGRADED     0     0     0
              10188385608277313659           UNAVAIL      0     0     0  was /dev/disk/by-id/ata-ST3000DM001-1CH166_Z1F4X76S-part1
              sda                            ONLINE       0     0     0
            ata-ST3000DM001-1CH166_W1F5C09L  ONLINE       0     0     0
            ata-ST3000DM001-1CH166_Z1F4C9ZF  ONLINE       0     0     0
            ata-ST3000DM001-1CH166_Z1F50YNJ  ONLINE       0     0     0
            sde                              ONLINE       0     0     0
            sdf                              ONLINE       0     0     0

errors: Permanent errors have been detected in the following files:

        storage:/plex_db_backup/com.plexapp.plugins.library.db-2017-09-21

答案1

这可能只是正在运行的替换和重新镀银过程。

请显示完整输出zpool status -v

好的,跑吧zpool clear storage

确保zpool status此后反射重新镀银。

相关内容