smartdがディスクを見つけることができないという報告を防ぐ方法は?

smartdがディスクを見つけることができないという報告を防ぐ方法は?

私のハードドライブをスマートに監視しました。普段はうまく動作しますが、24時間ごとに以下のエラーウィンドウが表示されます。

This email was generated by the smartd daemon running on:
  host name: sparhawk-XPS-17
  DNS domain: [Unknown]
  NIS domain: (none)
The following warning/error was logged by the smartd daemon:
Device: /dev/sdc [SAT], unable to open device
For details see host's SYSLOG.
You can also use the smartctl utility for further investigation.
Another email message will be sent in 24 hours if the problem persists.

sdcは接続できませんでしたが、それでも試してみましたsudo smartctl -a /dev/sdc。明らかにする

smartctl 5.43 2012-06-30 r3573 [x86_64-linux-3.5.0-26-generic] (local build)
Copyright (C) 2002-12 by Bruce Allen, http://smartmontools.sourceforge.net
Smartctl open device: /dev/sdc failed: No such device

コメントアウトされていない唯一の行は次のとおり/etc/smartd.confです。

DEVICESCAN -m root -M exec /usr/share/smartmontools/smartd-runner

smartdにディスクの削除について文句を言わずに正しく認識させる方法はありますか?これが不可能な場合は、sdaとsdbのみをsmartd監視する方法はありますか?

ベストアンサー1

私も同じ問題があり、ちょっと調べてみました。私はこれを見つけました:

/etc/smartd.conf

# smartd will re-read the configuration file if it receives a HUP
# signal

# The file gives a list of devices to monitor using smartd, with one
# device per line. Text after a hash (#) is ignored, and you may use
# spaces and tabs for white space. You may use '\' to continue lines.

# You can usually identify which hard disks are on your system by
# looking in /proc/ide and in /proc/scsi.

# The word DEVICESCAN will cause any remaining lines in this
# configuration file to be ignored: it tells smartd to scan for all
# ATA and SCSI devices.  DEVICESCAN may be followed by any of the
# Directives listed below, which will be applied to all devices that
# are found.  Most users should comment out DEVICESCAN and explicitly
# list the devices that they wish to monitor.

カーネルからドライバの登録を取り消したとします。

root@localhost# echo 1 > /sys/block/sdX/device/delete

次に、/etc/smartd.confからデバイスエントリを削除します。

その後、「sudo service smartmontools restart」を実行すると問題が解決し、smartdは不足しているドライブの報告を停止します。

おすすめ記事