我有一个RAID 1设置繁忙的服务器。 应用程序(以PHP运行)对数据库(MariaDB)非常敏感。
cronjob每天运行smartctl短testing并检查smartctl -H和mdadm -D的输出。
我想经常进行长时间的testing,但是我担心它对性能的影响。 我读过这可能需要几个小时才能完成。 如果在运行时导致服务器性能下降,我的用户将受到影响超过5个小时。
所以,这里有几个问题:
1)长时间的智能testing通常会影响对用户有意义的性能吗?
2)由于我有RAID 1并做了短暂的testing,是否还需要长时间的testing?
3)如果我发现它在服务器性能上造成麻烦,是否有办法停止长时间的testing?
从“smartctl(8)”手册页:
-X, --abort Aborts non-captive SMART Self Tests. Note that this command will abort the Offline Immediate Test routine only if your disk has the "Abort Offline collection upon new command" capability.
(我想你也可以放弃,如果你看到“暂停脱机收集新命令”,我认为手册页需要更新。)您可以通过以下方式检查该function:
smartctl -x <device>