[SOLVED] Some questions about smartcheck for HDDs

fireon

Distinguished Member
Oct 25, 2010
4,626
558
183
Austria/Graz
deepdoc.at
Have here some disk in ZFSpool. Should check ZFS also the physical status of HDD's? I don't know... ok so i i've installed smart: https://pve.proxmox.com/wiki/Disk_Health_Email_Alerts

I comment the Option
Code:
#start_smartd=yes
not in. (/etc/default/smartmontools) Because PVE4 have systemd. So it is not needet, i think. Still the process's are running:

I use
Code:
smartd_opts="--interval=10800"
to check every disk.

Code:
● smartd.service - Self Monitoring and Reporting Technology (SMART) Daemon
   Loaded: loaded (/lib/systemd/system/smartd.service; enabled)
   Active: active (running)

systemctl status smartd.service
● smartd.service - Self Monitoring and Reporting Technology (SMART) Daemon
   Loaded: loaded (/lib/systemd/system/smartd.service; enabled)
   Active: active (running)

My check line in "/etc/smartd.conf" is:
Code:
DEVICESCAN -d removable -n standby -m root -M exec /usr/share/smartmontools/smartd-runner

Mail notify is also working. With nagios checks i have to option:
Code:
/usr/lib/nagios/plugins/check_smart -g /dev/disk/by-id/ata-WDC_WD2001FFSX-68JNUN0_WD-WMC5C0D688XW -i scsi
OK: [/dev/disk/by-id/ata-WDC_WD2001FFSX-68JNUN0_WD-WMC5C0D688XW] - Device is clean|

/usr/lib/nagios/plugins/check_smart -d /dev/disk/by-id/ata-WDC_WD2001FFSX-68JNUN0_WD-WMC5C0D688XW -i scsi
OK: no SMART errors detected. |
Can anyone tell me the differences beween this checks? The option are this:
Code:
-d/--device: a physical block device to be SMART monitored, eg /dev/sda
-g/--global: a regular expression name of physical devices to be SMART monitored
And I'am not really sure about my smart configuration. This is an important part. HDD Check must work right. So when smart detect an really an error. On one failure sector, on 100, how say smart an HDD is to change?

Thanks for the information.