BUG: Smartd Shuts Down on Startup Detecting USB Boot D (11.1.U5 - 11.1.U6)

Status
Not open for further replies.

iposner

Explorer
Joined
Jul 16, 2011
Messages
55
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:

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
 

m0nkey_

MVP
Joined
Oct 27, 2015
Messages
2,739
This is due to a change smartmontools works. You need to turn off "Enable SMART" for your USB device, located under Storage > Volumes > View Disks > Edit.
 

iposner

Explorer
Joined
Jul 16, 2011
Messages
55
Thanks for the prompt and great response. Your fix worked.
 
Status
Not open for further replies.
Top