Package: smartmontools
Version: 7.3-1+b1
smartmontools.service fails, if there is nothing to monitor. Sample:
root@srvl065:~# systemctl status smartmontools
x smartmontools.service - Self Monitoring and Reporting Technology (SMART)
Daemon
Loaded: loaded (/lib/systemd/system/smartmontools.service; enabled;
preset: enabled)
Active: failed (Result: exit-code) since Thu 2023-01-19 12:06:21 CET; 5h
59min ago
Docs: man:smartd(8)
man:smartd.conf(5)
Process: 13278 ExecStart=/usr/sbin/smartd -n $smartd_opts (code=exited,
status=17)
Main PID: 13278 (code=exited, status=17)
Status: "No devices to monitor"
CPU: 36ms
Jan 19 12:06:21 srvl065.ac.aixigo.de smartd[13278]: Device: /dev/sda, IE
(SMART) not enabled, skip device
Jan 19 12:06:21 srvl065.ac.aixigo.de smartd[13278]: Try 'smartctl -s on
/dev/sda' to turn on SMART features
Jan 19 12:06:21 srvl065.ac.aixigo.de smartd[13278]: Device: /dev/sdb, opened
Jan 19 12:06:21 srvl065.ac.aixigo.de smartd[13278]: Device: /dev/sdb, [LSI
9750-4i DISK 5.12], lu id: 0x600050e0dce50d007c020000ad720000, S/N:
03019314DCE50D007C02, 137 GB
Jan 19 12:06:21 srvl065.ac.aixigo.de smartd[13278]: Device: /dev/sdb, IE
(SMART) not enabled, skip device
Jan 19 12:06:21 srvl065.ac.aixigo.de smartd[13278]: Try 'smartctl -s on
/dev/sdb' to turn on SMART features
Jan 19 12:06:21 srvl065.ac.aixigo.de smartd[13278]: Unable to monitor any SMART
enabled devices. Try debug (-d) option. Exiting...
Jan 19 12:06:21 srvl065.ac.aixigo.de systemd[1]: smartmontools.service: Main
process exited, code=exited, status=17/n/a
Jan 19 12:06:21 srvl065.ac.aixigo.de systemd[1]: smartmontools.service: Failed
with result 'exit-code'.
Jan 19 12:06:21 srvl065.ac.aixigo.de systemd[1]: Failed to start Self
Monitoring and Reporting Technology (SMART) Daemon.
I saw that this is an experimental feature, but I wonder what this could
be good for? IMHO smartmontools should work out of the box, even if there
are no disks, as it does for Bullseye.
Regards
Harri