On 10/27/2016 09:43 AM, Alessandro Baggi wrote:
Il 27/10/2016 13:58, Leonard den Ottolander ha scritto:
Hi,
On Thu, 2016-10-27 at 11:25 +0200, Alessandro Baggi wrote:
=== START OF READ SMART DATA SECTION ===
SMART overall-health self-assessment test result: PASSED
That's the line you are looking for. Since your disk apparently does not
store an error log - not sure if that's something with SSDs in general
or just with this particular disk - you will always have to invoke
smartctl -t short /dev/sda
and then after the test has completed check the output of
smartctl -a /dev/sda
for that particular line. Shouldn't be too hard to put in a cron job,
just make sure the job waits long enough (more than 1 minute, make it 2
to be sure) with reading the output of smartctl -a after invoking
smartctl -t short.
Regards,
Leonard.
You can also use the service smartd and edit the smartd.conf file and it have it send you emails when a disk starts to fail.
thank you for suggestion.
Alessandro.
_______________________________________________
CentOS mailing list
CentOS@xxxxxxxxxx
https://lists.centos.org/mailman/listinfo/centos
--
Stephen Clark
*NetWolves Managed Services, LLC.*
Director of Technology
Phone: 813-579-3200
Fax: 813-882-0209
Email: steve.clark@xxxxxxxxxxxxx
http://www.netwolves.com
_______________________________________________
CentOS mailing list
CentOS@xxxxxxxxxx
https://lists.centos.org/mailman/listinfo/centos