SOLVED Can't start Smartd

Status
Not open for further replies.

depasseg

FreeNAS Replicant
Joined
Sep 16, 2014
Messages
2,874
I get the following in /var/log/messages when I try to start Smartd. I'm Running 9.3-RELEASE (updated to 12/10/2014).

Code:
[root@freenas1] ~# tail /var/log/messages
Dec 10 21:12:48 freenas1 notifier: Starting smartd.
Dec 10 21:12:48 freenas1 smartd[11390]: Unable to register SCSI device /dev/da0 at line 4 of file /usr/local/etc/smartd.conf
Dec 10 21:12:48 freenas1 smartd[11390]: Unable to register device /dev/da0 (no Directive -d removable). Exiting.
Dec 10 21:12:48 freenas1 root: /usr/local/etc/rc.d/smartd: WARNING: failed to start smartd
Dec 10 21:12:48 freenas1 notifier: /usr/local/etc/rc.d/smartd: WARNING: failed to start smartd
[root@freenas1] ~#


I can view the Smart data from the drive:

Code:
[root@freenas1] ~# smart
smartctl smartd  
[root@freenas1] ~# smartctl -a /dev/da0
smartctl 6.3 2014-07-26 r3976 [FreeBSD 9.3-RELEASE-p5 amd64] (local build)
Copyright (C) 2002-14, Bruce Allen, Christian Franke, www.smartmontools.org

=== START OF INFORMATION SECTION ===
Vendor:               WD
Product:              WD4001FYYG-01SL3
Revision:             VR07
Compliance:           SPC-4
User Capacity:        4,000,787,030,016 bytes [4.00 TB]
Logical block size:   512 bytes
Rotation Rate:        7200 rpm
Form Factor:          3.5 inches
Logical Unit id:      0x50000c0f012b10d0
Serial number:        WMCdeleted99
Device type:          disk
Transport protocol:   SAS (SPL-3)
Local Time is:        Wed Dec 10 21:20:17 2014 EST
SMART support is:     Available - device has SMART capability.
SMART support is:     Disabled
Temperature Warning:  Enabled

=== START OF READ SMART DATA SECTION ===
SMART Health Status: OK

Current Drive Temperature:     28 C
Drive Trip Temperature:        69 C

Manufactured in week 10 of year 2014
Specified cycle count over device lifetime:  1048576
Accumulated start-stop cycles:  407
Specified load-unload count over device lifetime:  1114112
Accumulated load-unload cycles:  2
Elements in grown defect list: 0

Error counter log:
           Errors Corrected by           Total   Correction     Gigabytes    Total
               ECC          rereads/    errors   algorithm      processed    uncorrected
           fast | delayed   rewrites  corrected  invocations   [10^9 bytes]  errors
read:       9108       33        33      9141         33      35283.562           0
write:         0        0         0         0          0          0.144           0

Non-medium error count:      890

SMART Self-test log
Num  Test              Status                 segment  LifeTime  LBA_first_err [SK ASC ASQ]
     Description                              number   (hours)
# 1  Background short  Completed                   -    1100                 - [-   -    -]

Long (extended) Self Test duration: 31120 seconds [518.7 minutes]

[root@freenas1] ~# 



SMART is enabled:
upload_2014-12-10_21-30-4.png


Code:
[root@freenas1] ~# more /usr/local/etc/smartd.conf
################################################
# smartd.conf generated by /etc/ix.rc.d/ix-smartd
################################################
/dev/da0 -a -n never -W 0,0,0 -s S/(00)/../(7)/.. 
/dev/da1 -a -n never -W 0,0,0 -s S/(00)/../(7)/.. 
/dev/da2 -a -n never -W 0,0,0 -s S/(00)/../(7)/.. 
/dev/da3 -a -n never -W 0,0,0 -s S/(00)/../(7)/.. 
/dev/da4 -a -n never -W 0,0,0 -s S/(00)/../(7)/.. 
/dev/da5 -a -n never -W 0,0,0 -s S/(00)/../(7)/.. 
/dev/da6 -a -n never -W 0,0,0 -s S/(00)/../(7)/.. 
/dev/da7 -a -n never -W 0,0,0 -s S/(00)/../(7)/.. 
/dev/da8 -a -n never -W 0,0,0 -s S/(00)/../(7)/.. 
/dev/da9 -a -n never -W 0,0,0 -s S/(00)/../(7)/.. 
/dev/da10 -a -n never -W 0,0,0 -s S/(00)/../(7)/.. 
/dev/da11 -a -n never -W 0,0,0 -s S/(00)/../(7)/.. 
/dev/da12 -a -n never -W 0,0,0 -s S/(00)/../(7)/.. 
/dev/ada0 -a -n never -W 0,0,0 -s S/(00)/../(7)/.. 
/dev/ada1 -a -n never -W 0,0,0 -s S/(00)/../(7)/.. 
[root@freenas1] ~# 
 

depasseg

FreeNAS Replicant
Joined
Sep 16, 2014
Messages
2,874
I posted it in the OP. Is there another smartd.conf?
 

depasseg

FreeNAS Replicant
Joined
Sep 16, 2014
Messages
2,874
I thought I forgot, but fortunately for me, my view of the trees was from the other side of the forest - that is - your post was right below the bottom of mine, which is where the file was. :smile:
 

depasseg

FreeNAS Replicant
Joined
Sep 16, 2014
Messages
2,874
Anyone? This this isn't going to get live data until SMART is working. :smile:
 

cyberjock

Inactive Account
Joined
Mar 25, 2012
Messages
19,526
You running the hardware in your sig? If so the LSI 3008 is supported, but not really thoroughly tested (and for that reason not recommended). My guess is something about the controller and/or its driver makes the disks appear to be "removeable" which is confusing SMART.

I don't think there is a fix for your situation except to get something like a controller based on the SAS 2008 chipset and use that in the meantime. Obviously going on without SMART isn't the world's best plan, but it is an option.
 

depasseg

FreeNAS Replicant
Joined
Sep 16, 2014
Messages
2,874
Yes I am. That's what I thought, but @AltecBX has the same MB with the LSI 3008 and he believes his is working but he has a different backplane (SAS2 which is giving him a weird drive/enclosure ID issue).

Any idea where the "-d removable" is coming from? It's not in my smartd.conf. -Thx
 

cyberjock

Inactive Account
Joined
Mar 25, 2012
Messages
19,526
It sounds like SMART is upset because it's somehow expecting a -d option to be included. Of course one isn't included and I think that's what's tripping it up. It does seem odd that it would trip up on the automated stuff but when you run it from the CLI it works fine. No clue why that is the case or how to troubleshoot it though.
 

mjws00

Guru
Joined
Jul 25, 2014
Messages
798
In the meantime I'd just build a script that writes a file and emails it or something via cron. SMART itself is happy. So at least that is a start. Did you try 9.2.1.9 as well?
 

depasseg

FreeNAS Replicant
Joined
Sep 16, 2014
Messages
2,874
J

jkh

Guest
Heh. Josh is right - that "Disabled" should have been a tip-off. :rolleyes:
 

Attachments

  • Screen Shot 2014-12-15 at 4.56.01 PM.png
    Screen Shot 2014-12-15 at 4.56.01 PM.png
    13.3 KB · Views: 996

depasseg

FreeNAS Replicant
Joined
Sep 16, 2014
Messages
2,874
I saw that, but didn't know how to I enable it. It's enabled in the GUI. Screenshot is in the OP. Do I have to enable it somewhere else?
 

mjws00

Guru
Joined
Jul 25, 2014
Messages
798
Very nice.
 

depasseg

FreeNAS Replicant
Joined
Sep 16, 2014
Messages
2,874
Enabling via the CLI resolved the issue of smartd not starting - yea!
(smartctl --smart=on /dev/da0)

However, is it normal to have to enable smart via the CLI? The GUI reported every drive had smart enabled. I even tried disabling and enabling to toggle it to no avail.
 
J

jkh

Guest
It is a per-drive setting. If the GUI reported every drive had smart enabled, then perhaps there's a bug in the GUI since /dev/da0 very clearly had smart *disabled* until you enabled it via smartctl.
 

depasseg

FreeNAS Replicant
Joined
Sep 16, 2014
Messages
2,874
I think the ticket needs to address the GUI issue. Look in my OP. It has every drive listed as smart enabled. I've updated the ticket to include that info.
 
Status
Not open for further replies.
Top