おのたく日記 YouTubeも始めました→
2005-09-06(Tue) [長年日記]
■ Tru Calling
最近、テレビ東京で放送されている「トゥルー・コーリング(Tru Calling)」に、はまっている。月曜から木曜までお昼の放送なのだけど、CoCoonが見つけてくれてから見ている。
B0009G3F0C
■ [Debian] smartsuiteパッケージって何?
smartdが動いていたのですが、なんかWebの情報に比べて設定できる項目が少ない。
よく調べると、Debian 3.1(sarge)では、smartmontoolsパッケージにsmartdが入っているらしい。
そこで、smartsuiteパッケージを抜いてsmartmontoolsパッケージを入れた。
defaultでは、hda〜d, sda〜sdhを探しに行くので、/etc/smartd.confでAuto Detectをせずにhdaのみを対象にするようにパッチした。
# diff -u smartd.conf.org smartd.conf
--- smartd.conf.org 2005-02-06 02:26:56.000000000 +0900
+++ smartd.conf 2005-08-31 15:42:26.846239422 +0900
@@ -20,7 +20,8 @@
# 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.
-DEVICESCAN
+#STOP TKYN: DEVICESCAN
+/dev/hda -H -l error -l selftest -m root
# First (primary) ATA/IDE hard disk. Monitor all attributes, enable
# automatic online data collection, automatic Attribute autosave, and
■ ついでに、ヘルスチェックに失敗したりエラーが発生したときにrootにメイルが行くようにしておいた。
■ [Debian] hdparmの設定も変える
今までは、/etc/init.d/localに、hdparm -d1 -k1のように書いていたんだけど、Debian 3.1(sarge)からは、/etc/init.d/hdparamが出来たので、/etc/default/hdparmに
# diff -u hdparm.org hdparm
--- hdparm.org 2005-05-24 23:08:23.000000000 +0900
+++ hdparm 2005-08-31 15:03:11.755219289 +0900
@@ -9,3 +9,5 @@
#
# harddisks=""
# hdparm_opts=""
+harddisks="/dev/hda"
+hdparm_opts="-c1 -d1 -k1 -m16 -i"
と書いて、Debian標準の方式でイニシャライズする。(ついでにDMAが止まっても、催促名I/Oで接続できるようにBuffer 16, 32bit I/Oにしておいた)
|