SUSE Linux でHDDの温度を監視する

HDDの温度を監視するには HDDtemp パッケージを使います。SUSE Linux Enterprise Server (SLES11) のパッケージには含まれていません。おそらく SLES を使うレベルのハイエンド、高信頼性のシステムでは、ハードウェアの障害は、ハードベンダーのツールを使うのが正論という事でしょう。

ということで、SUSE Linux の場合 opensuse のサイトから、1 Click インストールするのが正解です。

http://software.opensuse.org/

より、"hddtemp" を検索して、SUSE Linux に適合したパッケージを選び、1 Click インストールします。あとはウィザードに従ってインストールします。
SUSE Linux でHDDの温度を監視する_a0056607_16251843.jpg


ヘルプを見てみます。


sles11:~ # hddtemp --help
Usage: hddtemp [OPTIONS] [TYPE:]DISK1 [[TYPE:]DISK2]...

hddtemp displays the temperature of drives supplied in argument.
Drives must support S.M.A.R.T.

TYPE could be SATA, PATA or SCSI. If omitted hddtemp will try to guess.

-b --drivebase : display database file content that allow hddtemp to
recognize supported drives.
-D --debug : display various S.M.A.R.T. fields and their values.
Useful to find a value that seems to match the
temperature and/or to send me a report.
(done for every drive supplied).
-d --daemon : run hddtemp in TCP/IP daemon mode (port 7634 by default.)
-f --file=FILE : specify database file to use.
-F --foreground : don't daemonize, stay in foreground.
-l --listen=addr : listen on a specific interface (in TCP/IP daemon mode).
-n --numeric : print only the temperature.
-p --port=# : port to listen to (in TCP/IP daemon mode).
-s --separator=C : separator to use between fields (in TCP/IP daemon mode).
-S --syslog=s : log temperature to syslog every s seconds.
-u --unit=[C|F] : force output temperature either in Celsius or Fahrenheit.
-q --quiet : do not check if the drive is supported.
-v --version : display hddtemp version number.
-w --wake-up : wake-up the drive if need.
-4 : listen on IPv4 sockets only.
-6 : listen on IPv6 sockets only.

Report bugs or new drives to .
hddtemp version 0.3-beta15



hddtemp にデバイスを引数に指定します。


sles11:~ # hddtemp /dev/sda
/dev/sda: WDC WD20EZRX-00DC0B0: 45°C
sles11:~ # hddtemp /dev/sdb
/dev/sdb: WDC WD30EZRX-00DC0B0: 48°C
sles11:~ # hddtemp /dev/sdc
/dev/sdc: ST31500541AS: drive is sleeping


Sleep 状態のディスクの温度は表示されませんでした。
この HDD は hdparm の設定で眠っているようです。

SUSE Linux hdparm で HDDの省電力化を試す。

起こしてみましょう。


sles11:~ # ls /mnt/sdc
backup lost+found tmp
sles11:~ # hddtemp /dev/sdc
/dev/sdc: ST31500541AS: 43°C


稼働中のHDDより5度ほど低いようです。

お問い合わせは
islandcenter.jp

-Key Word-
SUSE Linux Enterprise Server 省電力 熱対策 HDD温度監視
by islandcenter | 2014-07-31 16:27 | SUSE | Comments(0)