S.M.A.R.T no longer working for USB drive
Posted: 26 Sep 2017 10:59
SMART used to work for my USB drive, but no longer does.
Currently running
I went through a bit of troubleshooting and the following is my trace:
From the S.M.A.R.T Info page:
So the device type needs to be specified.
I try from SSH:
works with no problem.
So, on the Disk Management page, I add to the "S.M.A.R.T. extra options" value, thinking it would work.
But when I do that, smartd fails to restart due to error in the /var/etc/smartd.conf file:
It was changed from:
to:
As you can see, it added "-d -d" and then "sat" at the end.
That didn't work out.
Then I take a look at the /usr/rc.d/smartd script and notice that it's rebuilding the smartd.conf file from the config.xml file, so I take a look at that.
Notice that <devicetype> and <devicetypearg> are both empty.
Looking further, I see that config.xml get regenerated everytime I "Clear Config and Import Disks" from the HDD Management GUI. So something in this process is not working right.
I also see in /var/scripts/CONFIG2 the following:
Seeing UNAVAILABLE here for da0, when the others show as atacam indicate to me that somethings not working quite right on the import.
But I should be able to overcome all this with those "S.M.A.R.T. extra options" on the disk configuration.
There seem to be a couple of issues/bugs, but not sure where to go from here.
Any help would be appreciated.
Currently running
Code: Select all
11.1.0.4 - Atomics (revision 4551)From the S.M.A.R.T Info page:
Code: Select all
/dev/da0: Unknown USB bridge 0x1058:0x25a1 (0x1013)
Please specify device type with the -d option.I try from SSH:
Code: Select all
# smartctl -a -d sat /dev/da0
smartctl 6.5 2016-05-07 r4318 FreeBSD 11.1-RELEASE-p1 amd64 (local build)
Copyright (C) 2002-16, Bruce Allen, Christian Franke, www.smartmontools.org
=== START OF INFORMATION SECTION ===
Model Family: Western Digital Elements / My Passport (USB, AF)
Device Model: WDC WD20NMVW-11EDZS7
Serial Number: WD-WXE1A47C9NHZ
LU WWN Device Id: 5 0014ee 2b9589fd0
Firmware Version: 01.01A01
User Capacity: 2,000,398,934,016 bytes 2.00 TB
Sector Sizes: 512 bytes logical, 4096 bytes physical
Rotation Rate: 5200 rpm
Device is: In smartctl database for details use: -P show
ATA Version is: ACS-2 (minor revision not indicated)
SATA Version is: SATA 3.0, 3.0 Gb/s (current: 3.0 Gb/s)
Local Time is: Tue Sep 26 01:37:04 2017 PDT
SMART support is: Available - device has SMART capability.
SMART support is: Enabled
...So, on the Disk Management page, I add
Code: Select all
-d satBut when I do that, smartd fails to restart due to error in the /var/etc/smartd.conf file:
It was changed from:
Code: Select all
/dev/da0 -a -T permissive -s (S/../.././01) -W 3,40,50 -n never,q -m <email> -M exec /etc/mail/smartdreport.sh
Code: Select all
/dev/da0 -a -d -d -T permissive -s (S/../.././01) -W 3,40,50 -n never,q -m <email> -M exec /etc/mail/smartdreport.sh sat
That didn't work out.
Then I take a look at the /usr/rc.d/smartd script and notice that it's rebuilding the smartd.conf file from the config.xml file, so I take a look at that.
Code: Select all
<disk>
<uuid>ae60b9a0-4772-4c1c-a275-1295c62d20a9</uuid>
<name>da0</name>
<id></id>
<devicespecialfile>/dev/da0</devicespecialfile>
<model>WD Elements 25A1 1013</model>
<desc>WD Elements 25A1 1013</desc>
<type>SCSI</type>
<serial>5758453141343743394E485A</serial>
<size>2.00TB</size>
<harddiskstandby>0</harddiskstandby>
<acoustic>0</acoustic>
<apm>0</apm>
<fstype>geli</fstype>
<transfermode>auto</transfermode>
<controller>umass-sim</controller>
<controller_id>0</controller_id>
<controller_desc>XHCI (generic) USB 3.0 controller</controller_desc>
<smart>
<devicefilepath>/dev/da0</devicefilepath>
<devicetype/>
<devicetypearg/>
<enable type="bool">1</enable>
<extraoptions/>
</smart>
</disk>
Looking further, I see that config.xml get regenerated everytime I "Clear Config and Import Disks" from the HDD Management GUI. So something in this process is not working right.
I also see in /var/scripts/CONFIG2 the following:
Code: Select all
MOUNT1DISK0_DEVICETYPEARG=UNAVAILABLE
MOUNT1DISK0=da0
MOUNT2=zfsPool01
MOUNT2VDEVICE0=zfsPool01_raidz1_1
MOUNT2DISK0_DEVICE=ada0
MOUNT2DISK0_DEVICETYPEARG=atacam
MOUNT2DISK0=ada0
MOUNT2DISK1_DEVICE=ada1
MOUNT2DISK1_DEVICETYPEARG=atacam
MOUNT2DISK1=ada1
MOUNT2DISK2_DEVICE=ada2
MOUNT2DISK2_DEVICETYPEARG=atacam
MOUNT2DISK2=ada2
But I should be able to overcome all this with those "S.M.A.R.T. extra options" on the disk configuration.
There seem to be a couple of issues/bugs, but not sure where to go from here.
Any help would be appreciated.