-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On 2014-10-08 10:54, Frederic Crozat wrote:
Le mercredi 08 octobre 2014 à 10:30 +0200, Ludwig Nussel a écrit :
Hi,
After struggling with my harddisk I noticed that we don't have smartd enabled by default. Shouldn't we change that to get hard disk monitoring by default on every installation? But then IIUC smartd only logs to syslog which a desktop user will never see. Are there any ways to notify deskop users in case of imminent trouble?
IF monitoring is enabled, the desktop user does get a notification on emergencies. I've seen it. Provoking a fake fault in order to see if the notification works I don't know how to do.
gnome-disks-utility (through udisks2) have SMART capabilities and have a monitor for SMART failure.
I don't know if KDE has similar integration for this udisks2 capability.
smartd is not on by default because supposedly dbus-daemon does it: /var/log/messages-20131104.xz:<3.6> 2013-11-04 01:00:07 Telcontar dbus-daemon 1460 - - helper(pid 11651): launched job udisks-helper-ata-smart-collect on /dev/sdd /var/log/messages-20131104.xz:<3.6> 2013-11-04 01:00:07 Telcontar dbus-daemon 1460 - - helper(pid 11653): launched job udisks-helper-ata-smart-collect on /dev/sde /var/log/messages-20131104.xz:<3.6> 2013-11-04 01:00:07 Telcontar dbus-daemon 1460 - - helper(pid 11654): launched job udisks-helper-ata-smart-collect on /dev/sdb /var/log/messages-20131104.xz:<3.6> 2013-11-04 01:00:07 Telcontar dbus-daemon 1460 - - helper(pid 11655): launched job udisks-helper-ata-smart-collect on /dev/sdc /var/log/messages-20131104.xz:<3.6> 2013-11-04 01:30:07 Telcontar dbus-daemon 1460 - - **** Refreshing ATA SMART data for /sys/devices/pci0000:00/0000:00:1f.2/ata9/host8/target8:0:0/8:0:0:0/block/sdb /var/log/messages-20131104.xz:<3.6> 2013-11-04 01:30:07 Telcontar dbus-daemon 1460 - - helper(pid 14055): launched job udisks-helper-ata-smart-collect on /dev/sdb /var/log/messages-20131104.xz:<3.6> 2013-11-04 01:30:07 Telcontar dbus-daemon 1460 - - **** Refreshing ATA SMART data for /sys/devices/pci0000:00/0000:00:1f.2/ata10/host9/target9:0:1/9:0:1:0/block/sde /var/log/messages-20131104.xz:<3.6> 2013-11-04 01:30:07 Telcontar dbus-daemon 1460 - - helper(pid 14056): launched job udisks-helper-ata-smart-collect on /dev/sde /var/log/messages-20131104.xz:<3.6> 2013-11-04 01:30:07 Telcontar dbus-daemon 1460 - - **** Refreshing ATA SMART data for /sys/devices/pci0000:00/0000:00:1f.2/ata10/host9/target9:0:0/9:0:0:0/block/sdd /var/log/messages-20131104.xz:<3.6> 2013-11-04 01:30:07 Telcontar dbus-daemon 1460 - - helper(pid 14057): launched job udisks-helper-ata-smart-collect on /dev/sdd Although the messages are not supposed to be read by a human reading syslog. For that, the smard daemon is far better. And it emails you. Maybe dbus triggers the desktop notification :-? The messages stopped on 2014-08-09. I don't know why. zgrep -i smart /var/log/messages*xz | grep dbus-daemon | less -S Last entries: /var/log/messages-20140907.xz:<3.6> 2014-08-09 17:45:03 Telcontar dbus-daemon 1041 - - helper(pid 25517): launched job udisks-helper-ata-smart-collect on /dev/sdf /var/log/messages-20140907.xz:<3.6> 2014-08-09 17:45:03 Telcontar dbus-daemon 1041 - - **** Refreshing ATA SMART data for /sys/devices/pci0000:00/0000:00:1c.3/0000:05:00.0/ata3/host2/target2:0:0/2:0:0:0/block/sdb /var/log/messages-20140907.xz:<3.6> 2014-08-09 17:45:03 Telcontar dbus-daemon 1041 - - helper(pid 25518): launched job udisks-helper-ata-smart-collect on /dev/sdb Now empty: Telcontar:~ # grep -i smart /var/log/messages | grep dbus-daemon Telcontar:~ # Telcontar:~ # locate udisks-helper-ata-smart-collect /other/test_a1/usr/lib/udisks/udisks-helper-ata-smart-collect /usr/lib/udisks/udisks-helper-ata-smart-collect Telcontar:~ # It's a binary, so I don't know what it is supposed to do really. HTH. - -- Cheers / Saludos, Carlos E. R. (from 13.1 x86_64 "Bottle" at Telcontar) -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.22 (GNU/Linux) iEYEARECAAYFAlQ1E8UACgkQtTMYHG2NR9WjegCbBAmo7QBa4Uem2lvvuxPcZE5D Jt8An34NBM54TcvWfRYtjxwIM5S9ulCD =BQ0G -----END PGP SIGNATURE----- -- To unsubscribe, e-mail: opensuse-factory+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-factory+owner@opensuse.org