修复具有热备件的 ZFS DEGRADED 池

Joh*_*n P 5 zfs

我有一个 8 镜像驱动器池和一个热备份。镜像集中的一个驱动器出现故障,但我无法确定是否自动添加了热备件。备用状态为“IN USE”,扫描显示已重新同步 1.7T。然而,mirror-0 仍然显示 DEGRADED。mirror-0 是否 100% 启动,我只需要使用“zpool clear primary_vol”清除状态?还是我需要发出“zpool replace c0t12d1 c0t21d1”

zpool status
pool: primary_vol
state: DEGRADED
status: One or more devices has experienced an unrecoverable error.  An
        attempt was made to correct the error.  Applications are unaffected.
action: Determine if the device needs to be replaced, and clear the errors
        using 'zpool clear' or replace the device with 'zpool replace'.
   see: http://www.sun.com/msg/ZFS-8000-9P
scan: resilvered 1.70T in 11h17m with 0 errors on Sun Feb 12 10:17:39 2017
config:

    NAME           STATE     READ WRITE CKSUM
    primary_vol    DEGRADED     0     0     0
      mirror-0     DEGRADED     0     0     0
        spare-0    DEGRADED     0     0   184
          c0t12d1  DEGRADED     0     0   199  too many errors
          c0t21d1  ONLINE       0     0   207
        c0t13d1    ONLINE       0     0     0
      mirror-1     ONLINE       0     0     0
        c0t15d1    ONLINE       0     0     0
        c0t18d1    ONLINE       0     0     0
      mirror-2     ONLINE       0     0     0
        c0t19d1    ONLINE       0     0     0
        c0t20d1    ONLINE       0     0     0
      mirror-3     ONLINE       0     0     0
        c0t22d1    ONLINE       0     0     0
        c0t24d1    ONLINE       0     0     0
    logs
      c0t16d1      ONLINE       0     0     0
    spares
      c0t21d1      INUSE     currently in use

errors: No known data errors

pool: syspool
state: ONLINE
scan: scrub repaired 0 in 0h2m with 0 errors on Sun Feb 12 03:05:10 2017
config:

    NAME           STATE     READ WRITE CKSUM
    syspool        ONLINE       0     0     0
      mirror-0     ONLINE       0     0     0
        c0t14d1s0  ONLINE       0     0     0
        c0t17d1s0  ONLINE       0     0     0

errors: No known data errors
Run Code Online (Sandbox Code Playgroud)

eww*_*ite 3

  • 驱动器发生故障。
  • 备用的接管了。
  • 您可以更换故障磁盘,重建可能取决于您的池autoreplace设置。

操作系统、发行版和所涉及的硬件等一些细节可能有助于获得更具体的答案。

一旦重建完成,备用人员将恢复备用职责。