Hello FreeNAS forum,
I have a problem not being able to start smartd.
FreeNAS 11.0 running on a Dell PowerEdge 1850, 8 GB ECC memory, Xeon 64bit processor. I have one SCSI disk as boot, 36 GB. Then two external 3 TB usb-disk in ZFS mirror config.
smartctl -a /dev/da1
gives error:
Code:
40:SU:freenas:~anders> smartctl -a /dev/da1
smartctl 6.5 2016-05-07 r4318 [FreeBSD 11.0-STABLE amd64] (local build)
Copyright (C) 2002-16, Bruce Allen, Christian Franke, www.smartmontools.org
/dev/da1: Unknown USB bridge [0x0bc2:0x3322 (0x100)]
Please specify device type with the -d option.
Use smartctl -h to get a usage summary
But command:
smartctl -a -d scsi /dev/da1
works fine:
Code:
42:SU:freenas:~anders> smartctl -a -d scsi /dev/da1
smartctl 6.5 2016-05-07 r4318 [FreeBSD 11.0-STABLE amd64] (local build)
Copyright (C) 2002-16, Bruce Allen, Christian Franke, www.smartmontools.org
=== START OF INFORMATION SECTION ===
Vendor: Seagate
Product: Expansion Desk
Revision: 9401
Compliance: SPC-4
User Capacity: 3,000,592,981,504 bytes [3.00 TB]
Logical block size: 512 bytes
Physical block size: 4096 bytes
Logical Unit id: 0x5000000000000001
Device type: disk
Local Time is: Wed Aug 2 14:26:31 2017 CEST
SMART support is: Available - device has SMART capability.
SMART support is: Disabled
Temperature Warning: Disabled or Not Supported
=== START OF READ SMART DATA SECTION ===
SMART Health Status: OK
Current Drive Temperature: 0 C
Drive Trip Temperature: 0 C
Error Counter logging not supported
Device does not support Self Test logging
I tried to insert
-d scsi
in the
/usr/local/etc/smartd.conf, but then I get error
Code:
Aug 1 16:47:12 freenas smartd[10166]: Unable to register SCSI device /dev/da1 at line 4 of file /usr/local/etc/smartd.conf
Aug 1 16:47:12 freenas smartd[10166]: Unable to register device /dev/da1 (no Directive -d removable). Exiting.
when I try to start
smartd
manually.
Original contents of
/usr/local/etc/smartd.conf:
Code:
################################################
# smartd.conf generated by /etc/ix.rc.d/ix-smartd
################################################
/dev/da1 -a -n standby -W 0,0,0 -m anders@biox.kth.se -M exec /usr/local/www/freenasUI/tools/smart_alert.py
/dev/da2 -a -n standby -W 0,0,0 -m anders@biox.kth.se -M exec /usr/local/www/freenasUI/tools/smart_alert.py
I realise that changes of this file will be erased at the next boot, but it should be good to test it when the system is up and running.
In the man page for
smartd.conf
the
-d TYPE
is listed, but it seems not to be accepted when
smartd
reads it.
Output from
smartd -V
:
smartd 6.5 2016-05-07 r4318 [FreeBSD 11.0-STABLE amd64] (local build)
Copyright (C) 2002-16, Bruce Allen, Christian Franke,
www.smartmontools.org
smartd comes with ABSOLUTELY NO WARRANTY. This is free
software, and you are welcome to redistribute it under
the terms of the GNU General Public License; either
version 2, or (at your option) any later version.
See
http://www.gnu.org for further details.
smartmontools release 6.5 dated 2016-05-07 at 11:17:46 UTC
smartmontools SVN rev 4318 dated 2016-05-07 at 11:18:20
smartmontools build host: amd64-portbld-freebsd11.0
smartmontools build with: C++98, GCC 4.2.1 Compatible FreeBSD Clang 4.0.0 (tags/RELEASE_400/final 297347)
smartmontools configure arguments: '--disable-dependency-tracking' '--enable-sample' '--with-nvme-devicescan=yes' '--with-initscriptdir=/usr/local/etc/rc.d' '--prefix=/usr/local' '--localstatedir=/var' '--mandir=/usr/local/man' '--disable-silent-rules' '--infodir=/usr/local/info/' '--build=amd64-portbld-freebsd11.0' 'build_alias=amd64-portbld-freebsd11.0' 'CXX=c++' 'CXXFLAGS=-pipe -g -fstack-protector -fno-strict-aliasing ' 'LDFLAGS= -fstack-protector' 'LIBS=' 'CPPFLAGS=' 'CC=cc' 'CFLAGS=-pipe -g -fstack-protector -fno-strict-aliasing'
Best wishes
Anders Liljeborg