I have upgraded db1078 from stretch to buster and I noticed smartd isn't starting.
root@db1078:/etc/systemd# /usr/sbin/smartd -n -d smartd 6.6 2017-11-05 r4594 [x86_64-linux-4.19.0-8-amd64] (local build) Copyright (C) 2002-17, Bruce Allen, Christian Franke, www.smartmontools.org Opened configuration file /etc/smartd.conf Drive: DEVICESCAN, implied '-a' Directive on line 21 of file /etc/smartd.conf Configuration file /etc/smartd.conf was parsed, found DEVICESCAN, scanning devices glob(3) found no matches for pattern /dev/hd[a-t] glob(3) found no matches for pattern /dev/sd[a-c][a-z] DEVICESCAN failed: glob(3) aborted matching pattern /dev/discs/disc* In the system's table of devices NO devices found to scan Unable to monitor any SMART enabled devices. Try debug (-d) option. Exiting... root@db1078:/etc/systemd# ls -lh /dev/sda* brw-rw---- 1 root disk 8, 0 Mar 5 15:23 /dev/sda brw-rw---- 1 root disk 8, 1 Mar 5 15:23 /dev/sda1 brw-rw---- 1 root disk 8, 2 Mar 5 15:23 /dev/sda2 brw-rw---- 1 root disk 8, 3 Mar 5 15:23 /dev/sda3
On a gen9 running stretch this seems to be working fine:
root@db1075:~# /usr/sbin/smartd -n -d smartd 6.6 2016-05-31 r4324 [x86_64-linux-4.9.0-11-amd64] (local build) Copyright (C) 2002-16, Bruce Allen, Christian Franke, www.smartmontools.org Opened configuration file /etc/smartd.conf Drive: DEVICESCAN, implied '-a' Directive on line 21 of file /etc/smartd.conf Configuration file /etc/smartd.conf was parsed, found DEVICESCAN, scanning devices glob(3) found no matches for pattern /dev/hd[a-t] glob(3) found no matches for pattern /dev/sd[a-c][a-z] Device: /dev/sda, opened Device: /dev/sda, [HP LOGICAL VOLUME 3.56], lu id: 0x600508b1001c7bc3f2c4db22732695b6, S/N: PDNNF0ARH9O0FN, 4.00 TB Device: /dev/sda, does not support SMART Self-Test Log. Device: /dev/sda, is SMART capable. Adding to "monitor" list. Device: /dev/sda, state read from /var/lib/smartmontools/smartd.HP-LOGICAL_VOLUME-PDNNF0ARH9O0FN.scsi.state Monitoring 0 ATA/SATA, 1 SCSI/SAS and 0 NVMe devices Device: /dev/sda, opened SCSI device Device: /dev/sda, SMART health: passed Device: /dev/sda, failed to read Temperature Device: /dev/sda, state written to /var/lib/smartmontools/smartd.HP-LOGICAL_VOLUME-PDNNF0ARH9O0FN.scsi.state
That /dev/discs/disc* doesn't seem to be existing on either stretch or buster.
Even manually creating it, it clears up the error but nothing else:
root@db1078:/etc/systemd# mkdir /dev/discs root@db1078:/etc/systemd# /usr/sbin/smartd -n -d smartd 6.6 2017-11-05 r4594 [x86_64-linux-4.19.0-8-amd64] (local build) Copyright (C) 2002-17, Bruce Allen, Christian Franke, www.smartmontools.org Opened configuration file /etc/smartd.conf Drive: DEVICESCAN, implied '-a' Directive on line 21 of file /etc/smartd.conf Configuration file /etc/smartd.conf was parsed, found DEVICESCAN, scanning devices glob(3) found no matches for pattern /dev/hd[a-t] glob(3) found no matches for pattern /dev/sd[a-c][a-z] glob(3) found no matches for pattern /dev/discs/disc* In the system's table of devices NO devices found to scan Unable to monitor any SMART enabled devices. Try debug (-d) option. Exiting...