Here's a snippet from the daemon.log. Note that the smartd daemon starts up, interrogates the four hard disks, then shuts down when it detects /dev/da0 (a USB key installed inside the server chassis). Note that this was working fine up to and including 11.1.U4:
Note that when the line referring to /dev/da0 in smartd.conf is commented out, the service starts with no problems and remains running:
Code:
Sep 3 22:15:03 freenas smartd[6108]: smartd 6.6 2017-11-05 r4594 [FreeBSD 11.1-STABLE amd64] (local build) Sep 3 22:15:03 freenas smartd[6108]: Copyright (C) 2002-17, Bruce Allen, Christian Franke, www.smartmontools.org Sep 3 22:15:03 freenas smartd[6108]: Opened configuration file /usr/local/etc/smartd.conf Sep 3 22:15:03 freenas smartd[6108]: Configuration file /usr/local/etc/smartd.conf parsed. Sep 3 22:15:03 freenas smartd[6108]: Device: /dev/ada0, opened Sep 3 22:15:03 freenas smartd[6108]: Device: /dev/ada0, WDC WD20EFRX-68EUZN0, S/N:WD-WCC4M2YRJJ4U, WWN:5-0014ee-20dcc6bd6, FW:82.00A82, 2.00 TB Sep 3 22:15:03 freenas smartd[6108]: Device: /dev/ada0, found in smartd database: Western Digital Red Sep 3 22:15:03 freenas smartd[6108]: Device: /dev/ada0, is SMART capable. Adding to "monitor" list. Sep 3 22:15:03 freenas smartd[6108]: Device: /dev/ada1, opened Sep 3 22:15:03 freenas smartd[6108]: Device: /dev/ada1, WDC WD20EFRX-68EUZN0, S/N:WD-WCC4M4KD80E5, WWN:5-0014ee-20dcbba9c, FW:82.00A82, 2.00 TB Sep 3 22:15:03 freenas smartd[6108]: Device: /dev/ada1, found in smartd database: Western Digital Red Sep 3 22:15:03 freenas smartd[6108]: Device: /dev/ada1, is SMART capable. Adding to "monitor" list. Sep 3 22:15:03 freenas smartd[6108]: Device: /dev/ada2, opened Sep 3 22:15:03 freenas smartd[6108]: Device: /dev/ada2, WDC WD20EFRX-68EUZN0, S/N:WD-WCC4M5ANANUA, WWN:5-0014ee-20dcbdb36, FW:82.00A82, 2.00 TB Sep 3 22:15:03 freenas smartd[6108]: Device: /dev/ada2, found in smartd database: Western Digital Red Sep 3 22:15:03 freenas smartd[6108]: Device: /dev/ada2, is SMART capable. Adding to "monitor" list. Sep 3 22:15:03 freenas smartd[6108]: Device: /dev/ada3, opened Sep 3 22:15:03 freenas smartd[6108]: Device: /dev/ada3, WDC WD20EFRX-68EUZN0, S/N:WD-WCC4M6JVECDF, WWN:5-0014ee-20dcbc728, FW:82.00A82, 2.00 TB Sep 3 22:15:03 freenas smartd[6108]: Device: /dev/ada3, found in smartd database: Western Digital Red Sep 3 22:15:03 freenas smartd[6108]: Device: /dev/ada3, is SMART capable. Adding to "monitor" list. Sep 3 22:15:03 freenas smartd[6108]: Device: /dev/da0, unable to autodetect device type Sep 3 22:15:03 freenas smartd[6108]: Unable to register device /dev/da0 (no Directive -d removable). Exiting. Sep 3 22:15:32 freenas consul[2931]: 2018/09/03 22:15:32 [WARN] agent: Check 'freenas_health' is now warning Sep 3 22:17:33 freenas consul[2931]: 2018/09/03 22:17:33 [WARN] agent: Check 'freenas_health' is now warning
Note that when the line referring to /dev/da0 in smartd.conf is commented out, the service starts with no problems and remains running:
Code:
Sep 3 22:33:09 freenas smartd[8567]: smartd 6.6 2017-11-05 r4594 [FreeBSD 11.1-STABLE amd64] (local build) Sep 3 22:33:09 freenas smartd[8567]: Copyright (C) 2002-17, Bruce Allen, Christian Franke, www.smartmontools.org Sep 3 22:33:09 freenas smartd[8567]: Opened configuration file /usr/local/etc/smartd.conf Sep 3 22:33:09 freenas smartd[8567]: Configuration file /usr/local/etc/smartd.conf parsed. Sep 3 22:33:09 freenas smartd[8567]: Device: /dev/ada0, opened Sep 3 22:33:09 freenas smartd[8567]: Device: /dev/ada0, WDC WD20EFRX-68EUZN0, S/N:WD-WCC4M2YRJJ4U, WWN:5-0014ee-20dcc6bd6, FW:82.00A82, 2.00 TB Sep 3 22:33:09 freenas smartd[8567]: Device: /dev/ada0, found in smartd database: Western Digital Red Sep 3 22:33:09 freenas smartd[8567]: Device: /dev/ada0, is SMART capable. Adding to "monitor" list. Sep 3 22:33:09 freenas smartd[8567]: Device: /dev/ada1, opened Sep 3 22:33:09 freenas smartd[8567]: Device: /dev/ada1, WDC WD20EFRX-68EUZN0, S/N:WD-WCC4M4KD80E5, WWN:5-0014ee-20dcbba9c, FW:82.00A82, 2.00 TB Sep 3 22:33:09 freenas smartd[8567]: Device: /dev/ada1, found in smartd database: Western Digital Red Sep 3 22:33:09 freenas smartd[8567]: Device: /dev/ada1, is SMART capable. Adding to "monitor" list. Sep 3 22:33:09 freenas smartd[8567]: Device: /dev/ada2, opened Sep 3 22:33:09 freenas smartd[8567]: Device: /dev/ada2, WDC WD20EFRX-68EUZN0, S/N:WD-WCC4M5ANANUA, WWN:5-0014ee-20dcbdb36, FW:82.00A82, 2.00 TB Sep 3 22:33:09 freenas smartd[8567]: Device: /dev/ada2, found in smartd database: Western Digital Red Sep 3 22:33:09 freenas smartd[8567]: Device: /dev/ada2, is SMART capable. Adding to "monitor" list. Sep 3 22:33:09 freenas smartd[8567]: Device: /dev/ada3, opened Sep 3 22:33:09 freenas smartd[8567]: Device: /dev/ada3, WDC WD20EFRX-68EUZN0, S/N:WD-WCC4M6JVECDF, WWN:5-0014ee-20dcbc728, FW:82.00A82, 2.00 TB Sep 3 22:33:09 freenas smartd[8567]: Device: /dev/ada3, found in smartd database: Western Digital Red Sep 3 22:33:09 freenas smartd[8567]: Device: /dev/ada3, is SMART capable. Adding to "monitor" list. Sep 3 22:33:09 freenas smartd[8567]: Monitoring 4 ATA/SATA, 0 SCSI/SAS and 0 NVMe devices Sep 3 22:33:09 freenas smartd[8567]: file /var/run/smartd-daemon.pid written containing PID 8567