SMARTD_MAILER=/usr/share/smartmontools/smartd-runner
SMARTD_SUBJECT=SMART error (EmailTest) detected on host: XXXXX
SMARTD_ADDRESS=root
SMARTD_TFIRSTEPOCH=1267409738
SMARTD_FAILTYPE=EmailTest
SMARTD_TFIRST=Sun Feb 28 21:45:38 2010 VET
SMARTD_DEVICE=/dev/sda
SMARTD_DEVICETYPE=sat
SMARTD_DEVICESTRING=/dev/sda
SMARTD_FULLMESSAGE=This email was generated by the smartd daemon running on:
SMARTD_MESSAGE=TEST EMAIL from smartd for device: /dev/sda
zpool status
)。定期(通过 cronjob)清理池可能更容易。常见的推荐时间是企业级磁盘大约每月一次,消费级磁盘每周一次。否则,您可以使用smartmontools 中的脚本开始手动清理:
然后,您只需将设备名称映射到您的池(您可以解析
zpool status
)。