]> git.openstreetmap.org Git - chef.git/commitdiff
Do more SMART self tests
authorTom Hughes <tom@compton.nu>
Sat, 17 Mar 2018 14:43:19 +0000 (14:43 +0000)
committerTom Hughes <tom@compton.nu>
Sat, 17 Mar 2018 14:43:19 +0000 (14:43 +0000)
Run a short test at 4am every day and a long test at 2am on Sunday.

cookbooks/hardware/templates/default/smartd.conf.erb

index 5dea481bc96a1f0935b4bd86927702fe27f3ae0e..6f88cf674ed1dcbdd11a7d21f5886266f692ed97 100644 (file)
@@ -2,8 +2,8 @@
   
 <% @disks.each do |disk| -%>
 <% if disk[:smart] -%>
   
 <% @disks.each do |disk| -%>
 <% if disk[:smart] -%>
-/dev/<%= disk[:device] %> -d <%= disk[:smart] %> -s S/../../7/02 -m admins@openstreetmap.org -M exec /usr/local/bin/smartd-mailer
+/dev/<%= disk[:device] %> -d <%= disk[:smart] %> -s (S/../.././4|L/../../7/2) -m admins@openstreetmap.org -M exec /usr/local/bin/smartd-mailer
 <% else -%>
 <% else -%>
-/dev/<%= disk[:device] %> -s S/../../7/02 -m admins@openstreetmap.org -M exec /usr/local/bin/smartd-mailer
+/dev/<%= disk[:device] %> -s (S/../.././4|L/../../7/2) -m admins@openstreetmap.org -M exec /usr/local/bin/smartd-mailer
 <% end -%>
 <% end -%>
 <% end -%>
 <% end -%>