Difference between revisions of "S.M.A.R.T. hard drive monitoring"

From NAS-Central Buffalo - The Linkstation Wiki
Jump to: navigation, search
m
 
(4 intermediate revisions by 2 users not shown)
Line 1: Line 1:
 
{{Template:Articles}}
 
{{Template:Articles}}
 +
<small><font color=red>''Originally by frontalot from linkstationwiki.org''</font></small>
 +
 
1. Install the SMART monitoring tools:
 
1. Install the SMART monitoring tools:
  
Line 14: Line 16:
 
  <font color=red>comment out: DEVICESCAN</font>
 
  <font color=red>comment out: DEVICESCAN</font>
 
  <font color=red>add: /dev/hda -a -H -m root</font>
 
  <font color=red>add: /dev/hda -a -H -m root</font>
 +
 +
If you use a Kurobox Pro or related platform, dont forget to use the following option (-d marvell), else smartd wont recognize your drives:
 +
 +
<font color=red>/dev/hda -d marvell -a -H -m root</font>
  
 
5. This enables monitoring of /dev/hda only and reports any hardware failures via mail to root. You can also use the following commands:
 
5. This enables monitoring of /dev/hda only and reports any hardware failures via mail to root. You can also use the following commands:
Line 26: Line 32:
 
7. A more detailed listing of smartmontools commands are available at http://www.linuxjournal.com/node/6983/print.
 
7. A more detailed listing of smartmontools commands are available at http://www.linuxjournal.com/node/6983/print.
  
[[Category:Debian]]
+
8. For LS1 (ppc) with FreeLink Firmware, if you want to view SMART results with Webmin, you need fdisk installed. As debian PowerPC has no fdisk, simply install pmac-fdisk and create a symbolic link:
  
<center><font color=red>''Originally by frontalot from linkstationwiki.org''</font></center>
+
<font color=red>apt-get install pmac-fdisk</font>
 +
<font color=red>ln -s /sbin/pmac-fdisk /sbin/fdisk</font>
 +
 
 +
 
 +
[[Category:Debian]]

Latest revision as of 23:50, 23 November 2007

Originally by frontalot from linkstationwiki.org

1. Install the SMART monitoring tools:

apt-get install smartmontools

2. I recommend enabling the SMART daemon which will automatically monitor the LinkStation hard drive and report any serious problems. Edit /etc/default/smartmontools:

start_smartd=yes

3. Smartd, the SMART daemon, will now automatically initiate on boot and monitor the hard drive.

4. Now edit the smartd config file, /etc/smartd.conf:

comment out: DEVICESCAN
add: /dev/hda -a -H -m root

If you use a Kurobox Pro or related platform, dont forget to use the following option (-d marvell), else smartd wont recognize your drives:

/dev/hda -d marvell -a -H -m root

5. This enables monitoring of /dev/hda only and reports any hardware failures via mail to root. You can also use the following commands:

report drive information: smartctl -i /dev/hda
report drive health: smartctl -Hc /dev/hda

6. You can display the temperature of your internal drive (the last number is the current temperature):

smartctl -a /dev/hda | grep 194

7. A more detailed listing of smartmontools commands are available at http://www.linuxjournal.com/node/6983/print.

8. For LS1 (ppc) with FreeLink Firmware, if you want to view SMART results with Webmin, you need fdisk installed. As debian PowerPC has no fdisk, simply install pmac-fdisk and create a symbolic link:

apt-get install pmac-fdisk
ln -s /sbin/pmac-fdisk /sbin/fdisk