硬盘在zpool显示错误,但后来似乎确定。 如何判断是否有问题?

我的工作电脑在Ubuntu系统的zpool中有4个硬盘设置。 我被训练成程序员,而不是IT,但是我负责pipe理我的电脑。 在重新启动前一天,我注意到池没有安装,这是zpool status命令的输出:

pool: zhoupool state: DEGRADED status: One or more devices could not be used because the label is missing or invalid. Sufficient replicas exist for the pool to continue functioning in a degraded state. action: Replace the device using 'zpool replace'. see: http://zfsonlinux.org/msg/ZFS-8000-4J scan: scrub repaired 0 in 1h48m with 0 errors on Sun Mar 12 03:12:25 2017 config: NAME STATE READ WRITE CKSUM zhoupool DEGRADED 0 0 0 mirror-0 ONLINE 0 0 0 ata-ST3000DM001-1ER166_Z500GM2P ONLINE 0 0 0 ata-ST3000DM001-1ER166_Z500GMZ3 ONLINE 0 0 0 mirror-1 DEGRADED 0 0 0 11645674422250617741 UNAVAIL 0 0 0 was /dev/disk/by-id/ata-ST3000DM001-1ER166_Z500GP0C-part1 ata-ST3000DM001-1ER166_Z500GVM5 ONLINE 0 0 0 errors: No known data errors 

我打算更换硬盘,但是后来我注意到池已经安装(从最初的错误以来,机器至less重新启动一次)。 zpool状态输出现在是:

  pool: zhoupool 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 31.0G in 2h10m with 0 errors on Sun May 14 02:34:46 2017 config: NAME STATE READ WRITE CKSUM zhoupool ONLINE 0 0 0 mirror-0 ONLINE 0 0 0 ata-ST3000DM001-1ER166_Z500GM2P ONLINE 0 0 0 ata-ST3000DM001-1ER166_Z500GMZ3 ONLINE 0 0 0 mirror-1 ONLINE 0 0 0 ata-ST3000DM001-1ER166_Z500GP0C ONLINE 0 0 258K ata-ST3000DM001-1ER166_Z500GVM5 ONLINE 0 0 0 errors: No known data errors 

这仍然表明一个错误,所以我仍然在订购一个新的硬盘驱动器来取代它。 不过,我现在注意到,zpool状态并没有显示任何错误:

  pool: zhoupool state: ONLINE status: Some supported features are not enabled on the pool. The pool can still be used, but some features are unavailable. action: Enable all features using 'zpool upgrade'. Once this is done, the pool may no longer be accessible by software that does not support the features. See zpool-features(5) for details. scan: scrub repaired 0 in 2h11m with 0 errors on Sun Jul 9 02:35:48 2017 config: NAME STATE READ WRITE CKSUM zhoupool ONLINE 0 0 0 mirror-0 ONLINE 0 0 0 ata-ST3000DM001-1ER166_Z500GM2P ONLINE 0 0 0 ata-ST3000DM001-1ER166_Z500GMZ3 ONLINE 0 0 0 mirror-1 ONLINE 0 0 0 ata-ST3000DM001-1ER166_Z500GP0C ONLINE 0 0 0 ata-ST3000DM001-1ER166_Z500GVM5 ONLINE 0 0 0 errors: No known data errors 

那么我还应该担心吗? 实际上是硬盘驱动器故障,还是一些软件打嗝造成的错误? 我如何诊断?

你的数据应该是安全的。 它看起来像5/14擦洗了干净的东西,以下擦洗干净。 检查dmesg,看看该设备是吐痰超时/错误。

您应该使用smartmontools从驱动器收集SMART数据,检查状态,并运行偶尔的在线检查。 (这是一个体面的写作: https : //www.howtoforge.com/checking-hard-disk-sanity-with-smartmontools-debian-ubuntu )机会是,这不会是最后一次驱动器的行为。