Last active
January 22, 2023 22:21
-
-
Save Mausy5043/12aa19a67685da0c8743998285360be6 to your computer and use it in GitHub Desktop.
My SMART configuration
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Sample configuration file for smartd. See man smartd.conf. | |
# Home page is: http://www.smartmontools.org | |
# $Id: smartd.conf 4120 2015-08-27 16:12:21Z samm2 $ | |
# smartd will re-read the configuration file if it receives a HUP | |
# signal | |
# Sample configuration file for smartd. See man smartd.conf. | |
# Home page is: http://www.smartmontools.org | |
# $Id: smartd.conf 4120 2015-08-27 16:12:21Z samm2 $ | |
# smartd will re-read the configuration file if it receives a HUP | |
# signal | |
# The file gives a list of devices to monitor using smartd, with one | |
# device per line. Text after a hash (#) is ignored, and you may use | |
# spaces and tabs for white space. You may use '\' to continue lines. | |
# You can usually identify which hard disks are on your system by | |
# looking in /proc/ide and in /proc/scsi. | |
# HERE IS A LIST OF DIRECTIVES FOR THIS CONFIGURATION FILE. | |
# PLEASE SEE THE smartd.conf MAN PAGE FOR DETAILS | |
# | |
# -a Default: equivalent to -H -f -t -l error -l selftest -C 197 -U 198 | |
# -C ID Report if Current Pending Sector count non-zero | |
# -d TYPE Set the device type: ata, scsi, marvell, removable, 3ware,N, hpt,L/M/N | |
# -f Monitor for failure of any 'Usage' Attributes | |
# -F TYPE Use firmware bug workaround. Type is one of: none, samsung | |
# -H Monitor SMART Health Status, report if failed | |
# -i ID Ignore Attribute ID for -f Directive | |
# -I ID Ignore Attribute ID for -p, -u or -t Directive | |
# -l TYPE Monitor SMART log. Type is one of: error, selftest | |
# -m ADD Send warning email to ADD for -H, -l error, -l selftest, and -f | |
# -M TYPE Modify email warning behavior (see man page) | |
# -n MODE No check. MODE is one of: never, sleep, standby, idle | |
# -o VAL Enable/disable automatic offline tests (on/off) | |
# -p Report changes in 'Prefailure' Normalized Attributes | |
# -P TYPE Drive-specific presets: use, ignore, show, showall | |
# -r ID Also report Raw values of Attribute ID with -p, -u or -t | |
# -s REGE Start self-test when type/date matches regular expression (see man page) | |
# -S VAL Enable/disable attribute autosave (on/off) | |
# -t Equivalent to -p and -u Directives | |
# -T TYPE set the tolerance to one of: normal, permissive | |
# -u Report changes in 'Usage' Normalized Attributes | |
# -U ID Report if Offline Uncorrectable count non-zero | |
# -v N,ST Modifies labeling of Attribute N (see man page) | |
# -W D,I,C Monitor Temperature D)ifference, I)nformal limit, C)ritical limit | |
# # Comment: text after a hash sign is ignored | |
# \ Line continuation character | |
# Attribute ID is a decimal integer 1 <= ID <= 255 | |
# except for -C and -U, where ID = 0 turns them off. | |
# All but -d, -m and -M Directives are only implemented for ATA devices | |
# | |
# Settings: | |
# -a equivalent to: -H -f -t -l error -l selftest -C 197 -U 198 | |
# -d sat set disktype to SATA | |
# -m ADDR send mail to ADDR | |
# -M exec APP use APP to send mail | |
# -M test send a testmessage at start-up | |
# -M once send only one error report | |
# -R ID track changes in raw value of ID | |
# -S on enable attribute auto-save | |
# -W log temperature changes | |
DEFAULT -a -d sat \ | |
-m [email protected] \ | |
-M exec /usr/local/bin/smartdnotify.sh -M test -M once \ | |
-R 194 \ | |
-S on \ | |
-W 5,55,65 | |
# Settings for SSD | |
# Use DEFAULT settings and: | |
# -C 0 attribute 197 (Current_Pending_Sector) not available for SSD | |
# -U 0 attribute 198 (Offline_Uncorrectable) not available for SSD | |
# -I 231 ignore 231 (Temperature_Celcius) duplicates 194 | |
# (selftests not supported for KINGSTON A400 drives) | |
# | |
/dev/sda -C 0 -U 0 -I 231 | |
# Settings for WD RED - RAID disks | |
# Use DEFAULT settings and: | |
# -s short or long self-test on the first thru fourth day of each month around 23:00 (different day per disk) | |
# | |
# T/MM/DD/d/HH | |
# | |
/dev/sdb -s (S/(02|03|05|06|08|09|11|12)/04/./23|L/(01|04|07|10)/04/./23) | |
/dev/sdc -s (S/(02|03|05|06|08|09|11|12)/03/./23|L/(01|04|07|10)/03/./23) | |
/dev/sdd -s (S/(02|03|05|06|08|09|11|12)/02/./23|L/(01|04|07|10)/02/./23) | |
/dev/sde -s (S/(02|03|05|06|08|09|11|12)/01/./23|L/(01|04|07|10)/01/./23) | |
# The file gives a list of devices to monitor using smartd, with one | |
# device per line. Text after a hash (#) is ignored, and you may use | |
# spaces and tabs for white space. You may use '\' to continue lines. | |
# You can usually identify which hard disks are on your system by | |
# looking in /proc/ide and in /proc/scsi. | |
# The word DEVICESCAN will cause any remaining lines in this | |
# configuration file to be ignored: it tells smartd to scan for all | |
# ATA and SCSI devices. DEVICESCAN may be followed by any of the | |
# 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 | |
# DEVICESCAN For all disks with SMART capabilities. | |
# | |
# -o off Turn off automatic running of offline tests. An offline test | |
# is a test which may degrade performance. | |
# | |
# -n standby Do not spin up the disk for the periodic 30 minute (default) | |
# SMART status polling, instead wait until the disk is active | |
# again and poll it then. | |
# | |
# -W 2 Report temperature changes of at least 2 degrees celsius since | |
# the last reading. Also report if a new min/max temperature is | |
# detected. | |
# | |
# -S on Auto save attributes such as how long the disk has been powered | |
# on, min and max disk temperature. | |
# | |
# -s (L/../.[02468]/1/04|S/../.[13579]/1/04) | |
# '-------a--------' '--------b-------' | |
# | |
# a: Long test on even monday mornings at 04:00 | |
# b: Short test on uneven monday mornings at 04:00 | |
# Alternative setting to ignore temperature and power-on hours reports | |
# in syslog. | |
#DEVICESCAN -I 194 -I 231 -I 9 | |
# Alternative setting to report more useful raw temperature in syslog. | |
#DEVICESCAN -R 194 -R 231 -I 9 | |
# Alternative setting to report raw temperature changes >= 5 Celsius | |
# and min/max temperatures. | |
#DEVICESCAN -R 194 -I 231 -I 9 -W 4,40,45 -m [email protected] -M exec /usr/local/bin/smartdnotify.sh | |
# First ATA/SATA or SCSI/SAS disk. Monitor all attributes, enable | |
# automatic online data collection, automatic Attribute autosave, and | |
# start a short self-test every day between 2-3am, and a long self test | |
# Saturdays between 3-4am. | |
#/dev/sda -a -o on -S on -s (S/../.././02|L/../../6/03) | |
# Monitor SMART status, ATA Error Log, Self-test log, and track | |
# changes in all attributes except for attribute 194 | |
#/dev/sdb -H -l error -l selftest -t -I 194 | |
# Monitor all attributes except normalized Temperature (usually 194), | |
# but track Temperature changes >= 4 Celsius, report Temperatures | |
# >= 45 Celsius and changes in Raw value of Reallocated_Sector_Ct (5). | |
# Send mail on SMART failures or when Temperature is >= 55 Celsius. | |
#/dev/sdc -a -I 194 -W 4,45,55 -R 5 -m [email protected] | |
# An ATA disk may appear as a SCSI device to the OS. If a SCSI to | |
# ATA Translation (SAT) layer is between the OS and the device then | |
# this can be flagged with the '-d sat' option. This situation may | |
# become common with SATA disks in SAS and FC environments. | |
# /dev/sda -a -d sat | |
# A very silent check. Only report SMART health status if it fails | |
# But send an email in this case | |
#/dev/sdc -H -C 0 -U 0 -m [email protected] | |
# First two SCSI disks. This will monitor everything that smartd can | |
# monitor. Start extended self-tests Wednesdays between 6-7pm and | |
# Sundays between 1-2 am | |
#/dev/sda -d scsi -s L/../../3/18 | |
#/dev/sdb -d scsi -s L/../../7/01 | |
# Monitor 4 ATA disks connected to a 3ware 6/7/8000 controller which uses | |
# the 3w-xxxx driver. Start long self-tests Sundays between 1-2, 2-3, 3-4, | |
# and 4-5 am. | |
# NOTE: starting with the Linux 2.6 kernel series, the /dev/sdX interface | |
# is DEPRECATED. Use the /dev/tweN character device interface instead. | |
# For example /dev/twe0, /dev/twe1, and so on. | |
#/dev/sdc -d 3ware,0 -a -s L/../../7/01 | |
#/dev/sdc -d 3ware,1 -a -s L/../../7/02 | |
#/dev/sdc -d 3ware,2 -a -s L/../../7/03 | |
#/dev/sdc -d 3ware,3 -a -s L/../../7/04 | |
# Monitor 2 ATA disks connected to a 3ware 9000 controller which | |
# uses the 3w-9xxx driver (Linux, FreeBSD). Start long self-tests Tuesdays | |
# between 1-2 and 3-4 am. | |
#/dev/twa0 -d 3ware,0 -a -s L/../../2/01 | |
#/dev/twa0 -d 3ware,1 -a -s L/../../2/03 | |
# Monitor 2 SATA (not SAS) disks connected to a 3ware 9000 controller which | |
# uses the 3w-sas driver (Linux). Start long self-tests Tuesdays | |
# between 1-2 and 3-4 am. | |
# On FreeBSD /dev/tws0 should be used instead | |
#/dev/twl0 -d 3ware,0 -a -s L/../../2/01 | |
#/dev/twl0 -d 3ware,1 -a -s L/../../2/03 | |
# Same as above for Windows. Option '-d 3ware,N' is not necessary, | |
# disk (port) number is specified in device name. | |
# NOTE: On Windows, DEVICESCAN works also for 3ware controllers. | |
#/dev/hdc,0 -a -s L/../../2/01 | |
#/dev/hdc,1 -a -s L/../../2/03 | |
# Monitor 3 ATA disks directly connected to a HighPoint RocketRAID. Start long | |
# self-tests Sundays between 1-2, 2-3, and 3-4 am. | |
#/dev/sdd -d hpt,1/1 -a -s L/../../7/01 | |
#/dev/sdd -d hpt,1/2 -a -s L/../../7/02 | |
#/dev/sdd -d hpt,1/3 -a -s L/../../7/03 | |
# Monitor 2 ATA disks connected to the same PMPort which connected to the | |
# HighPoint RocketRAID. Start long self-tests Tuesdays between 1-2 and 3-4 am | |
#/dev/sdd -d hpt,1/4/1 -a -s L/../../2/01 | |
#/dev/sdd -d hpt,1/4/2 -a -s L/../../2/03 | |
# HERE IS A LIST OF DIRECTIVES FOR THIS CONFIGURATION FILE. | |
# PLEASE SEE THE smartd.conf MAN PAGE FOR DETAILS | |
# | |
# -d TYPE Set the device type: ata, scsi, marvell, removable, 3ware,N, hpt,L/M/N | |
# -T TYPE set the tolerance to one of: normal, permissive | |
# -o VAL Enable/disable automatic offline tests (on/off) | |
# -S VAL Enable/disable attribute autosave (on/off) | |
# -n MODE No check. MODE is one of: never, sleep, standby, idle | |
# -H Monitor SMART Health Status, report if failed | |
# -l TYPE Monitor SMART log. Type is one of: error, selftest | |
# -f Monitor for failure of any 'Usage' Attributes | |
# -m ADD Send warning email to ADD for -H, -l error, -l selftest, and -f | |
# -M TYPE Modify email warning behavior (see man page) | |
# -s REGE Start self-test when type/date matches regular expression (see man page) | |
# -p Report changes in 'Prefailure' Normalized Attributes | |
# -u Report changes in 'Usage' Normalized Attributes | |
# -t Equivalent to -p and -u Directives | |
# -r ID Also report Raw values of Attribute ID with -p, -u or -t | |
# -R ID Track changes in Attribute ID Raw value with -p, -u or -t | |
# -i ID Ignore Attribute ID for -f Directive | |
# -I ID Ignore Attribute ID for -p, -u or -t Directive | |
# -C ID Report if Current Pending Sector count non-zero | |
# -U ID Report if Offline Uncorrectable count non-zero | |
# -W D,I,C Monitor Temperature D)ifference, I)nformal limit, C)ritical limit | |
# -v N,ST Modifies labeling of Attribute N (see man page) | |
# -a Default: equivalent to -H -f -t -l error -l selftest -C 197 -U 198 | |
# -F TYPE Use firmware bug workaround. Type is one of: none, samsung | |
# -P TYPE Drive-specific presets: use, ignore, show, showall | |
# # Comment: text after a hash sign is ignored | |
# \ Line continuation character | |
# Attribute ID is a decimal integer 1 <= ID <= 255 | |
# except for -C and -U, where ID = 0 turns them off. | |
# All but -d, -m and -M Directives are only implemented for ATA devices | |
# | |
# If the test string DEVICESCAN is the first uncommented text | |
# then smartd will scan for devices. | |
# DEVICESCAN may be followed by any desired Directives. | |
# Settings: | |
# -a equivalent to: -H -f -t -l error -l selftest -C 197 -U 198 | |
# -d sat set disktype to SATA | |
# -m ADDR send mail to ADDR | |
# -M exec APP use APP to send mail | |
# -M test send a testmessage at start-up | |
# -M once send only one error report | |
# -R | |
# -S on enable attribute auto-save | |
# -W log temperature changes | |
DEFAULT -a -d sat \ | |
-m [email protected] \ | |
-M exec /usr/local/bin/smartdnotify.sh -M test -M once \ | |
-R 194 \ | |
-S on \ | |
-W 5,55,65 | |
# Settings for SSD | |
# Use DEFAULT settings and: | |
# -C 0 attribute 197 (Current_Pending_Sector) not available for SSD | |
# -U 0 attribute 198 (Offline_Uncorrectable) not available for SSD | |
# -I 231 ignore 231 (Temperature_Celcius) duplicates 194 | |
# -s short self-test every friday evening around 23:00 | |
# | |
/dev/sda -C 0 -U 0 -I 231 -s S/../../5/23 | |
# Settings for WD RED - RAID disks | |
# Use DEFAULT settings and: | |
# -s short self-test on weekdays around 23:00 (different day per disk) | |
# | |
/dev/sdb -s S/../../4/23 | |
/dev/sdc -s S/../../3/23 | |
/dev/sdd -s S/../../2/23 | |
/dev/sde -s S/../../1/23 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment