lenny で smartctl

Debian HS-DHGL LS-GL LS-HGL LS-WSGL/R1

squeeze では smartctl で HDD の温度が取得できることが判ったので、
lenny でも試してみる。

以下、順不同

LS-GL

smartmontools のインストール

ude:~# apt-get install smartmontools
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages were automatically installed and are no longer required:
 libnfsidmap2 libevent1 librpcsecgss3 libgssglue1 nfs-common
Use 'apt-get autoremove' to remove them.
The following extra packages will be installed:
 bsd-mailx exim4 exim4-base exim4-config exim4-daemon-light liblockfile1
 mailx
Suggested packages:
 mail-reader eximon4 exim4-doc-html exim4-doc-info libmail-spf-query-perl
 swaks
The following NEW packages will be installed:
 bsd-mailx exim4 exim4-base exim4-config exim4-daemon-light liblockfile1
 mailx smartmontools
0 upgraded, 8 newly installed, 0 to remove and 0 not upgraded.
Need to get 2289kB of archives.
After this operation, 4981kB of additional disk space will be used.
Do you want to continue [Y/n]? y
Get:1 http://ftp.jp.debian.org lenny/main liblockfile1 1.08-3 [18.1kB]
Get:2 http://ftp.jp.debian.org lenny/main bsd-mailx 8.1.2-0.20071201cvs-3 [158kB]
Get:3 http://ftp.jp.debian.org lenny/main smartmontools 5.38-2+lenny1 [323kB]
Get:4 http://ftp.jp.debian.org lenny/main mailx 1:20071201-3 [8260B]
Get:5 http://security.debian.org lenny/updates/main exim4-config 4.69-9+lenny1 [348kB]
Get:6 http://security.debian.org lenny/updates/main exim4-base 4.69-9+lenny1 [991kB]
Get:7 http://security.debian.org lenny/updates/main exim4-daemon-light 4.69-9+lenny1 [435kB]
Get:8 http://security.debian.org lenny/updates/main exim4 4.69-9+lenny1 [7456B]
Fetched 2289kB in 6s (342kB/s)
Preconfiguring packages ...
Selecting previously deselected package exim4-config.
(Reading database ... 12423 files and directories currently installed.)
Unpacking exim4-config (from .../exim4-config_4.69-9+lenny1_all.deb) ...
Selecting previously deselected package exim4-base.
Unpacking exim4-base (from .../exim4-base_4.69-9+lenny1_armel.deb) ...
Selecting previously deselected package exim4-daemon-light.
Unpacking exim4-daemon-light (from .../exim4-daemon-light_4.69-9+lenny1_armel.deb) ...
Selecting previously deselected package exim4.
Unpacking exim4 (from .../exim4_4.69-9+lenny1_all.deb) ...
Selecting previously deselected package liblockfile1.
Unpacking liblockfile1 (from .../liblockfile1_1.08-3_armel.deb) ...
Selecting previously deselected package bsd-mailx.
Unpacking bsd-mailx (from .../bsd-mailx_8.1.2-0.20071201cvs-3_armel.deb) ...
Selecting previously deselected package smartmontools.
Unpacking smartmontools (from .../smartmontools_5.38-2+lenny1_armel.deb) ...
Selecting previously deselected package mailx.
Unpacking mailx (from .../mailx_1%3a20071201-3_all.deb) ...
Processing triggers for man-db ...
Setting up exim4-config (4.69-9+lenny1) ...
Adding system-user for exim (v4)
Setting up exim4-base (4.69-9+lenny1) ...
Setting up exim4-daemon-light (4.69-9+lenny1) ...
Starting MTA: exim4.
Setting up exim4 (4.69-9+lenny1) ...
Setting up liblockfile1 (1.08-3) ...
Setting up bsd-mailx (8.1.2-0.20071201cvs-3) ...
Setting up smartmontools (5.38-2+lenny1) ...
Not starting S.M.A.R.T. daemon smartd, disabled via /etc/default/smartmontools (warning).
Setting up mailx (1:20071201-3) ...
ude:~#

smartctl の実行

ude:~# smartctl -A -d marvell /dev/sda
smartctl version 5.38 [armv5tel-unknown-linux-gnu] Copyright (C) 2002-8 Bruce Allen
Home page is http://smartmontools.sourceforge.net/
=== START OF READ SMART DATA SECTION ===
SMART Attributes Data Structure revision number: 10
Vendor Specific SMART Attributes with Thresholds:
ID# ATTRIBUTE_NAME FLAG VALUE WORST THRESH TYPE UPDATED WHEN_FAILED RAW_VALUE
 1 Raw_Read_Error_Rate 0x000f 118 100 006 Pre-fail Always - 176605046
 3 Spin_Up_Time 0x0003 095 095 000 Pre-fail Always - 0
 4 Start_Stop_Count 0x0032 100 100 020 Old_age Always - 58
 5 Reallocated_Sector_Ct 0x0033 100 100 036 Pre-fail Always - 0
 7 Seek_Error_Rate 0x000f 083 060 030 Pre-fail Always - 229324993
 9 Power_On_Hours 0x0032 099 099 000 Old_age Always - 1741
 10 Spin_Retry_Count 0x0013 100 100 097 Pre-fail Always - 0
 12 Power_Cycle_Count 0x0032 100 100 020 Old_age Always - 378
187 Reported_Uncorrect 0x0032 100 100 000 Old_age Always - 0
189 High_Fly_Writes 0x003a 001 001 000 Old_age Always - 65535
190 Airflow_Temperature_Cel 0x0022 074 039 045 Old_age Always In_the_past 26 (Lifetime Min/Max 22/26)
194 Temperature_Celsius 0x0022 026 061 000 Old_age Always - 26 (0 22 0 0)
195 Hardware_ECC_Recovered 0x001a 083 060 000 Old_age Always - 214287011
197 Current_Pending_Sector 0x0012 100 100 000 Old_age Always - 0
198 Offline_Uncorrectable 0x0010 100 100 000 Old_age Offline - 0
199 UDMA_CRC_Error_Count 0x003e 200 200 000 Old_age Always - 47
200 Multi_Zone_Error_Rate 0x0000 100 253 000 Old_age Offline - 0
202 TA_Increase_Count 0x0032 100 253 000 Old_age Always - 0
ude:~#
26 °C。温度が測れている

miconapl では、

ude:~# /usr/local/sbin/miconapl -a temp_get
#[miconapl.temp_get]
temp=30
ude:~#
30 °Cで smartctl の結果とは違う。やっぱり HDD の温度ではないようだ。

HS-DHGL

smartmontools のインストール

sil:~# apt-get install smartmontools
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following NEW packages will be installed:
 smartmontools
0 upgraded, 1 newly installed, 0 to remove and 4 not upgraded.
Need to get 323kB of archives.
After this operation, 786kB of additional disk space will be used.
Get:1 http://ftp.jp.debian.org lenny/main smartmontools 5.38-2+lenny1 [323kB]
Fetched 323kB in 0s (535kB/s)
Selecting previously deselected package smartmontools.
(Reading database ... 13307 files and directories currently installed.)
Unpacking smartmontools (from .../smartmontools_5.38-2+lenny1_armel.deb) ...
Processing triggers for man-db ...
Setting up smartmontools (5.38-2+lenny1) ...
Not starting S.M.A.R.T. daemon smartd, disabled via /etc/default/smartmontools (warning).
sil:~#

smartctl の実行

sil:~# smartctl -A -d marvell /dev/sda
smartctl version 5.38 [armv5tel-unknown-linux-gnu] Copyright (C) 2002-8 Bruce Allen
Home page is http://smartmontools.sourceforge.net/
=== START OF READ SMART DATA SECTION ===
SMART Attributes Data Structure revision number: 16
Vendor Specific SMART Attributes with Thresholds:
ID# ATTRIBUTE_NAME FLAG VALUE WORST THRESH TYPE UPDATED WHEN_FAILED RAW_VALUE
 1 Raw_Read_Error_Rate 0x002f 200 200 051 Pre-fail Always - 0
 3 Spin_Up_Time 0x0027 181 179 021 Pre-fail Always - 5941
 4 Start_Stop_Count 0x0032 100 100 000 Old_age Always - 226
 5 Reallocated_Sector_Ct 0x0033 200 200 140 Pre-fail Always - 0
 7 Seek_Error_Rate 0x002e 200 200 000 Old_age Always - 0
 9 Power_On_Hours 0x0032 087 087 000 Old_age Always - 9987
 10 Spin_Retry_Count 0x0032 100 100 000 Old_age Always - 0
 11 Calibration_Retry_Count 0x0032 100 100 000 Old_age Always - 0
 12 Power_Cycle_Count 0x0032 100 100 000 Old_age Always - 224
192 Power-Off_Retract_Count 0x0032 200 200 000 Old_age Always - 223
193 Load_Cycle_Count 0x0032 195 195 000 Old_age Always - 16413
194 Temperature_Celsius 0x0022 116 099 000 Old_age Always - 34
196 Reallocated_Event_Count 0x0032 200 200 000 Old_age Always - 0
197 Current_Pending_Sector 0x0032 200 200 000 Old_age Always - 0
198 Offline_Uncorrectable 0x0030 200 200 000 Old_age Offline - 0
199 UDMA_CRC_Error_Count 0x0032 200 200 000 Old_age Always - 3
200 Multi_Zone_Error_Rate 0x0008 200 200 000 Old_age Offline - 0
sil:~# /usr/local/sbin/miconapl -a temp_get
#[miconapl.temp_get]
temp=36
sil:~#
こちらも smartctl で取得した温度と miconapl で取得した温度とが違うが、、
smartctl で温度が取得できている

LS-HGL

smartmontools のインストール

busu:~# apt-get install smartmontools
	:
	:

smartctl の実行

busu:~# smartctl -A -d marvell /dev/sda
smartctl version 5.38 [armv5tel-unknown-linux-gnu] Copyright (C) 2002-8 Bruce Al len
Home page is http://smartmontools.sourceforge.net/
SMART Disabled. Use option -s with argument 'on' to enable it.
busu:~# smartctl -A -d marvell /dev/sda -s on
smartctl version 5.38 [armv5tel-unknown-linux-gnu] Copyright (C) 2002-8 Bruce Allen
Home page is http://smartmontools.sourceforge.net/
=== START OF READ SMART DATA SECTION ===
SMART Attributes Data Structure revision number: 10
Vendor Specific SMART Attributes with Thresholds:
ID# ATTRIBUTE_NAME FLAG VALUE WORST THRESH TYPE UPDATED WHEN_FAILED RAW_VALUE
 1 Raw_Read_Error_Rate 0x000f 047 046 006 Pre-fail Always - 219821173
 3 Spin_Up_Time 0x0003 098 098 000 Pre-fail Always - 0
 4 Start_Stop_Count 0x0032 099 099 020 Old_age Always - 1161
 5 Reallocated_Sector_Ct 0x0033 100 100 036 Pre-fail Always - 0
 7 Seek_Error_Rate 0x000f 081 060 030 Pre-fail Always - 118309052
 9 Power_On_Hours 0x0032 098 098 000 Old_age Always - 2554
 10 Spin_Retry_Count 0x0013 100 100 097 Pre-fail Always - 0
 12 Power_Cycle_Count 0x0032 099 099 020 Old_age Always - 1304
194 Temperature_Celsius 0x0022 029 054 000 Old_age Always - 29 (0 6 0 0)
195 Hardware_ECC_Recovered 0x001a 047 046 000 Old_age Always - 219821173
197 Current_Pending_Sector 0x0012 100 100 000 Old_age Always - 0
198 Offline_Uncorrectable 0x0010 100 100 000 Old_age Offline - 0
199 UDMA_CRC_Error_Count 0x003e 200 200 000 Old_age Always - 0
200 Multi_Zone_Error_Rate 0x0000 100 253 000 Old_age Offline - 0
202 TA_Increase_Count 0x0032 100 253 000 Old_age Always - 0
busu:~#
-s on が必要と言われるけど、まぁ動いている
busu:~# smartctl -d marvell /dev/sda -s on
smartctl version 5.38 [armv5tel-unknown-linux-gnu] Copyright (C) 2002-8 Bruce Allen
Home page is http://smartmontools.sourceforge.net/
=== START OF ENABLE/DISABLE COMMANDS SECTION ===
SMART Enabled.
busu:~# smartctl -d marvell /dev/sda -s off
smartctl version 5.38 [armv5tel-unknown-linux-gnu] Copyright (C) 2002-8 Bruce Allen
Home page is http://smartmontools.sourceforge.net/
=== START OF ENABLE/DISABLE COMMANDS SECTION ===
SMART Disabled. Use option -s with argument 'on' to enable it.
busu:~#
smartctl -d marvell /dev/sda -s on が必要か、、、
って、何で LS-HGL だけ?それともこの HDD だけ off になっていた?

再起動して確認する。

busu:~# smartctl -A -d marvell /dev/sda
smartctl version 5.38 [armv5tel-unknown-linux-gnu] Copyright (C) 2002-8 Bruce Allen
Home page is http://smartmontools.sourceforge.net/
SMART Disabled. Use option -s with argument 'on' to enable it.
busu:~# smartctl -A -d marvell /dev/sda -s on
smartctl version 5.38 [armv5tel-unknown-linux-gnu] Copyright (C) 2002-8 Bruce Allen
Home page is http://smartmontools.sourceforge.net/
=== START OF ENABLE/DISABLE COMMANDS SECTION ===
SMART Enabled.
=== START OF READ SMART DATA SECTION ===
SMART Attributes Data Structure revision number: 10
Vendor Specific SMART Attributes with Thresholds:
ID# ATTRIBUTE_NAME FLAG VALUE WORST THRESH TYPE UPDATED WHEN_FAILED RAW_VALUE
 1 Raw_Read_Error_Rate 0x000f 047 046 006 Pre-fail Always - 219822188
 3 Spin_Up_Time 0x0003 098 098 000 Pre-fail Always - 0
 4 Start_Stop_Count 0x0032 099 099 020 Old_age Always - 1162
 5 Reallocated_Sector_Ct 0x0033 100 100 036 Pre-fail Always - 0
 7 Seek_Error_Rate 0x000f 081 060 030 Pre-fail Always - 118309143
 9 Power_On_Hours 0x0032 098 098 000 Old_age Always - 2554
 10 Spin_Retry_Count 0x0013 100 100 097 Pre-fail Always - 0
 12 Power_Cycle_Count 0x0032 099 099 020 Old_age Always - 1305
194 Temperature_Celsius 0x0022 025 054 000 Old_age Always - 25 (0 6 0 0)
195 Hardware_ECC_Recovered 0x001a 047 046 000 Old_age Always - 219822188
197 Current_Pending_Sector 0x0012 100 100 000 Old_age Always - 0
198 Offline_Uncorrectable 0x0010 100 100 000 Old_age Offline - 0
199 UDMA_CRC_Error_Count 0x003e 200 200 000 Old_age Always - 0
200 Multi_Zone_Error_Rate 0x0000 100 253 000 Old_age Offline - 0
202 TA_Increase_Count 0x0032 100 253 000 Old_age Always - 0
busu:~# shutdown -r now
on にしてリブート。
Debian GNU/Linux 5.0
busu login: guest
Password:
Last login: Thu Jan 6 22:37:31 JST 2011 from x31l.yamasita.jp on pts/0
Linux busu 2.6.16.16-arm1 #131 Sat Dec 27 13:21:07 JST 2008 armv5tejl
The programs included with the Debian GNU/Linux system are free software;
the exact distribution terms for each program are described in the
individual files in /usr/share/doc/*/copyright.
Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent
permitted by applicable law.
No directory, logging in with HOME=/
guest@busu:/$ su - root
Password:
busu:~# smartctl -A -d marvell /dev/sda
smartctl version 5.38 [armv5tel-unknown-linux-gnu] Copyright (C) 2002-8 Bruce Allen
Home page is http://smartmontools.sourceforge.net/
=== START OF READ SMART DATA SECTION ===
SMART Attributes Data Structure revision number: 10
Vendor Specific SMART Attributes with Thresholds:
ID# ATTRIBUTE_NAME FLAG VALUE WORST THRESH TYPE UPDATED WHEN_FAILED RAW_VALUE
 1 Raw_Read_Error_Rate 0x000f 047 046 006 Pre-fail Always - 220146063
 3 Spin_Up_Time 0x0003 098 098 000 Pre-fail Always - 0
 4 Start_Stop_Count 0x0032 099 099 020 Old_age Always - 1163
 5 Reallocated_Sector_Ct 0x0033 100 100 036 Pre-fail Always - 0
 7 Seek_Error_Rate 0x000f 081 060 030 Pre-fail Always - 118309870
 9 Power_On_Hours 0x0032 098 098 000 Old_age Always - 2554
 10 Spin_Retry_Count 0x0013 100 100 097 Pre-fail Always - 0
 12 Power_Cycle_Count 0x0032 099 099 020 Old_age Always - 1306
194 Temperature_Celsius 0x0022 026 054 000 Old_age Always - 26 (0 6 0 0)
195 Hardware_ECC_Recovered 0x001a 047 046 000 Old_age Always - 220146063
197 Current_Pending_Sector 0x0012 100 100 000 Old_age Always - 0
198 Offline_Uncorrectable 0x0010 100 100 000 Old_age Offline - 0
199 UDMA_CRC_Error_Count 0x003e 200 200 000 Old_age Always - 0
200 Multi_Zone_Error_Rate 0x0000 100 253 000 Old_age Offline - 0
202 TA_Increase_Count 0x0032 100 253 000 Old_age Always - 0
busu:~#
on で起動してきた。
次は、off にしてリブート
busu:~# smartctl -A -d marvell /dev/sda -s off
smartctl version 5.38 [armv5tel-unknown-linux-gnu] Copyright (C) 2002-8 Bruce Allen
Home page is http://smartmontools.sourceforge.net/
=== START OF ENABLE/DISABLE COMMANDS SECTION ===
SMART Disabled. Use option -s with argument 'on' to enable it.
busu:~# shutdown -r now
	:
	:
Debian GNU/Linux 5.0
busu login: guest
Password:
Last login: Thu Jan 6 22:40:36 JST 2011 from x31l.yamasita.jp on pts/0
Linux busu 2.6.16.16-arm1 #131 Sat Dec 27 13:21:07 JST 2008 armv5tejl
The programs included with the Debian GNU/Linux system are free software;
the exact distribution terms for each program are described in the
individual files in /usr/share/doc/*/copyright.
Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent
permitted by applicable law.
No directory, logging in with HOME=/
guest@busu:/$ su - root
Password:
busu:~# smartctl -A -d marvell /dev/sda
smartctl version 5.38 [armv5tel-unknown-linux-gnu] Copyright (C) 2002-8 Bruce Allen
Home page is http://smartmontools.sourceforge.net/
SMART Disabled. Use option -s with argument 'on' to enable it.
busu:~# smartctl -A -d marvell /dev/sda -s on
smartctl version 5.38 [armv5tel-unknown-linux-gnu] Copyright (C) 2002-8 Bruce Allen
Home page is http://smartmontools.sourceforge.net/
=== START OF ENABLE/DISABLE COMMANDS SECTION ===
SMART Enabled.
=== START OF READ SMART DATA SECTION ===
SMART Attributes Data Structure revision number: 10
Vendor Specific SMART Attributes with Thresholds:
ID# ATTRIBUTE_NAME FLAG VALUE WORST THRESH TYPE UPDATED WHEN_FAILED RAW_VALUE
 1 Raw_Read_Error_Rate 0x000f 047 046 006 Pre-fail Always - 220146397
 3 Spin_Up_Time 0x0003 098 098 000 Pre-fail Always - 0
 4 Start_Stop_Count 0x0032 099 099 020 Old_age Always - 1164
 5 Reallocated_Sector_Ct 0x0033 100 100 036 Pre-fail Always - 0
 7 Seek_Error_Rate 0x000f 081 060 030 Pre-fail Always - 118309935
 9 Power_On_Hours 0x0032 098 098 000 Old_age Always - 2554
 10 Spin_Retry_Count 0x0013 100 100 097 Pre-fail Always - 0
 12 Power_Cycle_Count 0x0032 099 099 020 Old_age Always - 1307
194 Temperature_Celsius 0x0022 028 054 000 Old_age Always - 28 (0 6 0 0)
195 Hardware_ECC_Recovered 0x001a 047 046 000 Old_age Always - 220146397
197 Current_Pending_Sector 0x0012 100 100 000 Old_age Always - 0
198 Offline_Uncorrectable 0x0010 100 100 000 Old_age Offline - 0
199 UDMA_CRC_Error_Count 0x003e 200 200 000 Old_age Always - 0
200 Multi_Zone_Error_Rate 0x0000 100 253 000 Old_age Offline - 0
202 TA_Increase_Count 0x0032 100 253 000 Old_age Always - 0
busu:~#
off で立ち上がってきた。
ということは、毎回 on にしなくても、最初に一回だけでいいということ。
でも、そんなタイミングがなひ、、、

smartctl -A -d marvell /dev/sda -s on の確認

LS-HGL 以外の機種でも smartctl -A -d marvell /dev/sda -s on を 実行しても問題ないか確認する。

LS-GL

ude:~# smartctl -A -d marvell /dev/sda -s on
smartctl version 5.38 [armv5tel-unknown-linux-gnu] Copyright (C) 2002-8 Bruce Allen
Home page is http://smartmontools.sourceforge.net/
=== START OF ENABLE/DISABLE COMMANDS SECTION ===
SMART Enabled.
=== START OF READ SMART DATA SECTION ===
SMART Attributes Data Structure revision number: 10
Vendor Specific SMART Attributes with Thresholds:
ID# ATTRIBUTE_NAME FLAG VALUE WORST THRESH TYPE UPDATED WHEN_FAILED RAW_VALUE
 1 Raw_Read_Error_Rate 0x000f 118 100 006 Pre-fail Always - 176605046
 3 Spin_Up_Time 0x0003 095 095 000 Pre-fail Always - 0
 4 Start_Stop_Count 0x0032 100 100 020 Old_age Always - 59
 5 Reallocated_Sector_Ct 0x0033 100 100 036 Pre-fail Always - 0
 7 Seek_Error_Rate 0x000f 083 060 030 Pre-fail Always - 229327270
 9 Power_On_Hours 0x0032 099 099 000 Old_age Always - 1741
 10 Spin_Retry_Count 0x0013 100 100 097 Pre-fail Always - 0
 12 Power_Cycle_Count 0x0032 100 100 020 Old_age Always - 379
187 Reported_Uncorrect 0x0032 100 100 000 Old_age Always - 0
189 High_Fly_Writes 0x003a 001 001 000 Old_age Always - 65535
190 Airflow_Temperature_Cel 0x0022 074 039 045 Old_age Always In_the_past 26 (Lifetime Min/Max 26/26)
194 Temperature_Celsius 0x0022 026 061 000 Old_age Always - 26 (0 22 0 0)
195 Hardware_ECC_Recovered 0x001a 086 060 000 Old_age Always - 215593506
197 Current_Pending_Sector 0x0012 100 100 000 Old_age Always - 0
198 Offline_Uncorrectable 0x0010 100 100 000 Old_age Offline - 0
199 UDMA_CRC_Error_Count 0x003e 200 200 000 Old_age Always - 47
200 Multi_Zone_Error_Rate 0x0000 100 253 000 Old_age Offline - 0
202 TA_Increase_Count 0x0032 100 253 000 Old_age Always - 0
ude:~#
OK

HS-DHGL

sil:~# smartctl -A -d marvell /dev/sda -s on
smartctl version 5.38 [armv5tel-unknown-linux-gnu] Copyright (C) 2002-8 Bruce Allen
Home page is http://smartmontools.sourceforge.net/
=== START OF ENABLE/DISABLE COMMANDS SECTION ===
SMART Enabled.
=== START OF READ SMART DATA SECTION ===
SMART Attributes Data Structure revision number: 16
Vendor Specific SMART Attributes with Thresholds:
ID# ATTRIBUTE_NAME FLAG VALUE WORST THRESH TYPE UPDATED WHEN_FAILED RAW_VALUE
 1 Raw_Read_Error_Rate 0x002f 200 200 051 Pre-fail Always - 0
 3 Spin_Up_Time 0x0027 181 179 021 Pre-fail Always - 5941
 4 Start_Stop_Count 0x0032 100 100 000 Old_age Always - 226
 5 Reallocated_Sector_Ct 0x0033 200 200 140 Pre-fail Always - 0
 7 Seek_Error_Rate 0x002e 200 200 000 Old_age Always - 0
 9 Power_On_Hours 0x0032 087 087 000 Old_age Always - 10036
 10 Spin_Retry_Count 0x0032 100 100 000 Old_age Always - 0
 11 Calibration_Retry_Count 0x0032 100 100 000 Old_age Always - 0
 12 Power_Cycle_Count 0x0032 100 100 000 Old_age Always - 224
192 Power-Off_Retract_Count 0x0032 200 200 000 Old_age Always - 223
193 Load_Cycle_Count 0x0032 195 195 000 Old_age Always - 16480
194 Temperature_Celsius 0x0022 117 099 000 Old_age Always - 33
196 Reallocated_Event_Count 0x0032 200 200 000 Old_age Always - 0
197 Current_Pending_Sector 0x0032 200 200 000 Old_age Always - 0
198 Offline_Uncorrectable 0x0030 200 200 000 Old_age Offline - 0
199 UDMA_CRC_Error_Count 0x0032 200 200 000 Old_age Always - 3
200 Multi_Zone_Error_Rate 0x0008 200 200 000 Old_age Offline - 0
sil:~#
OK

LS-WSGL

久しぶりに起動する。

smartmontools のインストール

mini:~# apt-get update
Get:1 http://ftp.jp.debian.org lenny Release.gpg [1033B]
Get:2 http://ftp.jp.debian.org lenny Release [73.8kB]
Ign http://ftp.jp.debian.org lenny/main Packages/DiffIndex
Ign http://ftp.jp.debian.org lenny/main Sources/DiffIndex
Get:3 http://ftp.jp.debian.org lenny/main Packages [6525kB]
Get:4 http://security.debian.org lenny/updates Release.gpg [835B]
Get:5 http://security.debian.org lenny/updates Release [40.8kB]
Get:6 http://ftp.jp.debian.org lenny/main Sources [2984kB]
Ign http://security.debian.org lenny/updates/main Packages/DiffIndex
Ign http://security.debian.org lenny/updates/main Sources/DiffIndex
Get:7 http://security.debian.org lenny/updates/main Packages [388kB]
Get:8 http://security.debian.org lenny/updates/main Sources [109kB]
Fetched 10.1MB in 20s (493kB/s)
Reading package lists... Done
mini:~# apt-get install smartmontools
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following extra packages will be installed:
 bsd-mailx exim4 exim4-base exim4-config exim4-daemon-light liblockfile1
 libpcre3 mailx
Suggested packages:
 mail-reader eximon4 exim4-doc-html exim4-doc-info gnutls-bin openssl file
 libmail-spf-query-perl swaks
The following NEW packages will be installed:
 bsd-mailx exim4 exim4-base exim4-config exim4-daemon-light liblockfile1
 libpcre3 mailx smartmontools
0 upgraded, 9 newly installed, 0 to remove and 27 not upgraded.
Need to get 2501kB of archives.
After this operation, 5386kB of additional disk space will be used.
Do you want to continue [Y/n]?
Get:1 http://ftp.jp.debian.org lenny/main libpcre3 7.6-2.1 [213kB]
Get:2 http://ftp.jp.debian.org lenny/main liblockfile1 1.08-3 [18.1kB]
Get:3 http://ftp.jp.debian.org lenny/main bsd-mailx 8.1.2-0.20071201cvs-3 [158kB]
Get:4 http://ftp.jp.debian.org lenny/main smartmontools 5.38-2+lenny1 [323kB]
Get:5 http://ftp.jp.debian.org lenny/main mailx 1:20071201-3 [8260B]
Get:6 http://security.debian.org lenny/updates/main exim4-config 4.69-9+lenny1 [348kB]
Get:7 http://security.debian.org lenny/updates/main exim4-base 4.69-9+lenny1 [991kB]
Get:8 http://security.debian.org lenny/updates/main exim4-daemon-light 4.69-9+lenny1 [435kB]
Get:9 http://security.debian.org lenny/updates/main exim4 4.69-9+lenny1 [7456B]
Fetched 2501kB in 7s (340kB/s)
Preconfiguring packages ...
Selecting previously deselected package exim4-config.
(Reading database ... 10041 files and directories currently installed.)
Unpacking exim4-config (from .../exim4-config_4.69-9+lenny1_all.deb) ...
Selecting previously deselected package exim4-base.
Unpacking exim4-base (from .../exim4-base_4.69-9+lenny1_armel.deb) ...
Selecting previously deselected package libpcre3.
Unpacking libpcre3 (from .../libpcre3_7.6-2.1_armel.deb) ...
Selecting previously deselected package exim4-daemon-light.
Unpacking exim4-daemon-light (from .../exim4-daemon-light_4.69-9+lenny1_armel.deb) ...
Selecting previously deselected package exim4.
Unpacking exim4 (from .../exim4_4.69-9+lenny1_all.deb) ...
Selecting previously deselected package liblockfile1.
Unpacking liblockfile1 (from .../liblockfile1_1.08-3_armel.deb) ...
Selecting previously deselected package bsd-mailx.
Unpacking bsd-mailx (from .../bsd-mailx_8.1.2-0.20071201cvs-3_armel.deb) ...
Selecting previously deselected package smartmontools.
Unpacking smartmontools (from .../smartmontools_5.38-2+lenny1_armel.deb) ...
Selecting previously deselected package mailx.
Unpacking mailx (from .../mailx_1%3a20071201-3_all.deb) ...
Processing triggers for man-db ...
Setting up exim4-config (4.69-9+lenny1) ...
Adding system-user for exim (v4)
Setting up exim4-base (4.69-9+lenny1) ...
Setting up libpcre3 (7.6-2.1) ...
Setting up exim4-daemon-light (4.69-9+lenny1) ...
Starting MTA: exim4.
Setting up exim4 (4.69-9+lenny1) ...
Setting up liblockfile1 (1.08-3) ...
Setting up bsd-mailx (8.1.2-0.20071201cvs-3) ...
Setting up smartmontools (5.38-2+lenny1) ...
Not starting S.M.A.R.T. daemon smartd, disabled via /etc/default/smartmontools (warning).
Setting up mailx (1:20071201-3) ...
mini:~#

smartctl の実行

mini:~# smartctl -A -d marvell /dev/sda
smartctl version 5.38 [armv5tel-unknown-linux-gnu] Copyright (C) 2002-8 Bruce Allen
Home page is http://smartmontools.sourceforge.net/
=== START OF READ SMART DATA SECTION ===
SMART Attributes Data Structure revision number: 16
Vendor Specific SMART Attributes with Thresholds:
ID# ATTRIBUTE_NAME FLAG VALUE WORST THRESH TYPE UPDATED WHEN_FAILED RAW_VALUE
 1 Raw_Read_Error_Rate 0x000f 200 200 051 Pre-fail Always - 0
 3 Spin_Up_Time 0x0003 188 186 021 Pre-fail Always - 1591
 4 Start_Stop_Count 0x0032 100 100 000 Old_age Always - 474
 5 Reallocated_Sector_Ct 0x0033 200 200 140 Pre-fail Always - 0
 7 Seek_Error_Rate 0x000e 100 253 051 Old_age Always - 0
 9 Power_On_Hours 0x0032 100 100 000 Old_age Always - 8
 10 Spin_Retry_Count 0x0013 100 100 051 Pre-fail Always - 0
 11 Calibration_Retry_Count 0x0012 100 100 051 Old_age Always - 0
 12 Power_Cycle_Count 0x0032 100 100 000 Old_age Always - 472
192 Power-Off_Retract_Count 0x0032 200 200 000 Old_age Always - 471
193 Load_Cycle_Count 0x0032 200 200 000 Old_age Always - 1138
194 Temperature_Celsius 0x0022 127 097 000 Old_age Always - 20
196 Reallocated_Event_Count 0x0032 200 200 000 Old_age Always - 0
197 Current_Pending_Sector 0x0012 200 200 000 Old_age Always - 0
198 Offline_Uncorrectable 0x0010 100 253 000 Old_age Offline - 0
199 UDMA_CRC_Error_Count 0x003e 200 200 000 Old_age Always - 0
200 Multi_Zone_Error_Rate 0x0009 100 253 051 Pre-fail Offline - 0
mini:~# smartctl -A -d marvell /dev/sda -s on
smartctl version 5.38 [armv5tel-unknown-linux-gnu] Copyright (C) 2002-8 Bruce Allen
Home page is http://smartmontools.sourceforge.net/
=== START OF ENABLE/DISABLE COMMANDS SECTION ===
SMART Enabled.
=== START OF READ SMART DATA SECTION ===
SMART Attributes Data Structure revision number: 16
Vendor Specific SMART Attributes with Thresholds:
ID# ATTRIBUTE_NAME FLAG VALUE WORST THRESH TYPE UPDATED WHEN_FAILED RAW_VALUE
 1 Raw_Read_Error_Rate 0x000f 200 200 051 Pre-fail Always - 0
 3 Spin_Up_Time 0x0003 188 186 021 Pre-fail Always - 1591
 4 Start_Stop_Count 0x0032 100 100 000 Old_age Always - 474
 5 Reallocated_Sector_Ct 0x0033 200 200 140 Pre-fail Always - 0
 7 Seek_Error_Rate 0x000e 100 253 051 Old_age Always - 0
 9 Power_On_Hours 0x0032 100 100 000 Old_age Always - 8
 10 Spin_Retry_Count 0x0013 100 100 051 Pre-fail Always - 0
 11 Calibration_Retry_Count 0x0012 100 100 051 Old_age Always - 0
 12 Power_Cycle_Count 0x0032 100 100 000 Old_age Always - 472
192 Power-Off_Retract_Count 0x0032 200 200 000 Old_age Always - 471
193 Load_Cycle_Count 0x0032 200 200 000 Old_age Always - 1138
194 Temperature_Celsius 0x0022 127 097 000 Old_age Always - 20
196 Reallocated_Event_Count 0x0032 200 200 000 Old_age Always - 0
197 Current_Pending_Sector 0x0012 200 200 000 Old_age Always - 0
198 Offline_Uncorrectable 0x0010 100 253 000 Old_age Offline - 0
199 UDMA_CRC_Error_Count 0x003e 200 200 000 Old_age Always - 0
200 Multi_Zone_Error_Rate 0x0009 100 253 051 Pre-fail Offline - 0
mini:~#
OK. -s on も OK.

と言うわけで、lenny しか動かない LinkStation シリーズでも、 ファンコントロール可能!
手元で確認した限りでは。





Squeeze のインストール(16)アーカイブ作成スクリプトの作成
ハックの記録
LinkStation/玄箱 をハックしよう
Squeeze のインストール(17)インストーラの修正

Copyright (C) 2003-2011 Yasunari Yamashita. All Rights Reserved.
yasunari @ yamasita.jp 山下康成@京都府向日市

AltStyle によって変換されたページ (->オリジナル) /