S.M.A.R.T.: Difference between revisions
Line 20: | Line 20: | ||
# Edit <code>/etc/smartd.conf</code> | # Edit <code>/etc/smartd.conf</code> | ||
# Add some options | |||
See [https://www.freebsd.org/cgi/man.cgi?query=smartd.conf&manpath=ports&sektion=5 smartd.conf reference] | |||
Example: | |||
<pre> | |||
/dev/disk/by-id/usb-WD_easystore_264D_394B47573334314C-0:0 -s (S/../../6/01) -a -m [email protected] -M test -M daily | |||
</pre> | |||
* <code>-a</code> turns on some defaults for checking smart attributes | |||
* <code>-M Test</code> sends a test email when smartd starts | |||
* <code>-M daily</code> sends daily reminders for failures | |||
* <code>-s (S/../../6/01)</code> runs a short test every saturday at 1AM. | |||
==gsmartcontrol== | ==gsmartcontrol== | ||
gsmartcontrol is a GUI frontend for smartctl | gsmartcontrol is a GUI frontend for smartctl |
Revision as of 19:24, 7 February 2021
SMART Testing
smartctl
USB Hard Drives
- Add
-d sat
For some seagate hard drives, it will run in uas mode and smart won't work.
See https://www.smartmontools.org/wiki/SAT-with-UAS-Linux.
To fix this, you can find your id by looking in /var/log/kern.log
and filling in:
GRUB_CMDLINE_LINUX="usb_storage.quirks=0bc2:[id]:u"
- Multiple hard drives should be comma separated:
- E.g.
0bc2:abcd:u,0bc2:efgh:u
- E.g.
0bc2
is the manufacturer id for Seagate drives.
Remote monitoring
See Reference
- Edit
/etc/smartd.conf
- Add some options
Example:
/dev/disk/by-id/usb-WD_easystore_264D_394B47573334314C-0:0 -s (S/../../6/01) -a -m [email protected] -M test -M daily
-a
turns on some defaults for checking smart attributes-M Test
sends a test email when smartd starts-M daily
sends daily reminders for failures-s (S/../../6/01)
runs a short test every saturday at 1AM.
gsmartcontrol
gsmartcontrol is a GUI frontend for smartctl