开发者

Linux utility for Disk health Monitoring

We are looking into implementing an in-memory utility which can recover the system in case of disk/filesystem lockup. This utility has to detect the lockup and take corrective action like rebooting or just shutting down interface.

The server platform is Gentoo Linux 2.4

Any suggestions on - any existing utility or which scripting method will work best (e开发者_StackOverflow社区xpect, native C++)?


you'll want S.M.A.R.T. monitoring tools (smartmontools)

http://en.wikipedia.org/wiki/S.M.A.R.T.

Note that not all statistics correlate with impending drive failure, and sometimes (for some brands and models) you may need to pass in special flags or you will get garbage. See the wikipedia article for which attributes really indicate danger.

The command is smartctl. You may need to be sudo. smartctl --all will give a summary of all drives, spinning them up very briefly to check their health.


What type of errors are you looking for?

smartmontools and smartd which ship with most distros should be able to help you. They work at a low level with the disk.

  • SMART on Wikipedia
  • smartmontools
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜