Package: smartmontools
Version: 6.5+svn4324-1
Severity: normal
On a system that has no built-in disks, smartd fails to start. it
quits with a return value of 17.
this makes systemd say that the system is in "degraded" mode.
however, it would be nice to have smartd run anyway on such a system,
and to have it notice when new devices are attached. This would make
it so that systemd doesn't see it as a failed service.
with -d present, here's the output of "systemctl status smartd -n 100"
on such a system:
* smartd.service - Self Monitoring and Reporting Technology (SMART) Daemon
Loaded: loaded (/lib/systemd/system/smartd.service; enabled; vendor preset:
enabled)
Active: failed (Result: exit-code) since Thu 2017-05-18 14:12:54 UTC; 56s ago
Docs: man:smartd(8)
man:smartd.conf(5)
Process: 2214 ExecStart=/usr/sbin/smartd -n $smartd_opts (code=exited,
status=17)
Main PID: 2214 (code=exited, status=17)
May 18 14:12:54 host systemd[1]: Started Self Monitoring and Reporting
Technology (SMART) Daemon.
May 18 14:12:54 host smartd[2214]: smartd 6.6 2016-05-31 r4324
[x86_64-linux-4.9.0-3-amd64] (local build)
May 18 14:12:54 host smartd[2214]: Copyright (C) 2002-16, Bruce Allen,
Christian Franke, www.smartmontools.org
May 18 14:12:54 host smartd[2214]: Opened configuration file /etc/smartd.conf
May 18 14:12:54 host smartd[2214]: Drive: DEVICESCAN, implied '-a' Directive on
line 21 of file /etc/smartd.conf
May 18 14:12:54 host smartd[2214]: Configuration file /etc/smartd.conf was
parsed, found DEVICESCAN, scanning devices
May 18 14:12:54 host smartd[2214]: glob(3) found no matches for pattern
/dev/hd[a-t]
May 18 14:12:54 host smartd[2214]: glob(3) found no matches for pattern
/dev/sd[a-z]
May 18 14:12:54 host smartd[2214]: glob(3) found no matches for pattern
/dev/sd[a-c][a-z]
May 18 14:12:54 host smartd[2214]: DEVICESCAN failed: glob(3) aborted matching
pattern /dev/discs/disc*
May 18 14:12:54 host smartd[2214]: In the system's table of devices NO devices
found to scan
May 18 14:12:54 host smartd[2214]: Unable to monitor any SMART enabled devices.
Try debug (-d) option. Exiting...
May 18 14:12:54 host systemd[1]: smartd.service: Main process exited,
code=exited, status=17/n/a
May 18 14:12:54 host systemd[1]: smartd.service: Unit entered failed state.
May 18 14:12:54 host systemd[1]: smartd.service: Failed with result 'exit-code'.
Regards,
--dkg
-- System Information:
Debian Release: 9.0
APT prefers testing
APT policy: (500, 'testing')
Architecture: amd64
(x86_64)
Kernel: Linux 4.9.0-3-amd64 (SMP w/4 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)
Versions of packages smartmontools depends on:
ii debianutils 4.8.1
ii init-system-helpers 1.48
ii libc6 2.24-10
ii libcap-ng0 0.7.7-3+b1
ii libgcc1 1:6.3.0-16
ii libselinux1 2.6-3+b1
ii libstdc++6 6.3.0-16
ii lsb-base 9.20161125
Versions of packages smartmontools recommends:
pn mailutils [mailx] <none>
Versions of packages smartmontools suggests:
pn gsmartcontrol <none>
pn smart-notifier <none>
-- no debconf information