我对 ZFS 还很陌生,我有一个带有 8 个驱动器的简单镜像存储池设置。运行了几周后,一个驱动器似乎产生了很多错误,所以我更换了它。
又过了几个星期,现在我看到池周围出现了小错误(见zpool status
下面的输出)。我应该担心这个吗?如何确定错误是否指示需要更换驱动器?
# zpool status
pool: storage
state: ONLINE
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://zfsonlinux.org/msg/ZFS-8000-9P
scan: scrub repaired 22.5K in 1h18m with 0 errors on Sun Jul 10 03:18:42 2016
config:
NAME STATE …
Run Code Online (Sandbox Code Playgroud) 我正在尝试了解我计划构建的 NAS 的 ZFS。我想了解是否可以设置以下场景。免责声明:我对ZFS知之甚少,所以如果我说了什么蠢话,请原谅我。
根据我收集的信息,zpool set autoreplace=on <pool>
可以更换驱动器,但您仍然需要发出命令scrub
来启动重新同步过程,对吗?另外,我不知道是否支持热插拔。
我意识到,在磁盘发生故障的罕见情况下发出单个命令并不是世界末日。但是,在我看来,如果它是自动化的,那就更好了,而且我很确定它可以通过硬件 RAID 来完成。