Services -> SMART could not be started
|Reported by:||willytenner||Owned by:||william|
I am using FreeNAS 8.0.4 64-Bit on a HP ProLiant? DL380 G5 server with 8 GB RAM and a Smart Array P400 controller with 8 internal SAS ports. Every single data disk is configured as a RAID0 disk, so the data disks were shown as /dev/da0, /dev/da1, /dev/da2, and so on.
Issue: In the "Services" menu the SMART service could not be started, when the disks are behind a HP Smart Array Controller.
The disks are all SMART compatible, but the script ix-smartd is generating the wrong entries in smartd.conf.
I did some investigations and found two more problems within the script ix-smartd:
- There is a line checking the output from smartctl with grep, searching for string "SMART support is: Enabled". In smartctl version 5.41 this string must be "Device supports SMART and is Enabled".
- Changing the Internal Field Separator (IFS) to the pipe symbol obviously confuses the smartctl utility. Restoring the original IFS short before using smartctl is a workaround.
- I wrote some code to patch /conf/base/etc/rc.d/ix-smartd so it will generate the correct entries in smartd.conf when the disks are behind a HP Smart Array Controller or a Highpoint Rocket Raid Controller. See the attached file.
Use the patch as follows for the embedded version of FreeNAS 8.0.4:
Copy the patchfile to any writeable directory, e.g. /var/tmp
mount -w /
patch /conf/base/etc/rc.d/ix-smartd < /var/tmp/ix-smartd.patch
mount -r /
- There is another issue with the SMART service: Using the GUI to change the SMART feature of a single disk:
Storage -> Active Volumes -> View Disks -> Edit (Disk) -> check or uncheck Enable S.M.A.R.T. does not recreate the correct smartd.conf. Obviously some actions are performed in the wrong order:
- Recreate smartd.conf using the not updated data base.
- Restart SMART service
- Update data base.
but it must be
- Update data base.
- Recreate smartd.conf now using the updated data base.
- Restart SMART service.
Workaround: After changing the SMART feature of a single disk you have to stop and start the SMART service from the GUI.
Change History (9)
Changed 13 months ago by willytenner
comment:4 Changed 9 months ago by william
- Milestone changed from 8.0.4-RELEASE-p2 to 8.3.0-RELEASE
- Owner set to william
- Status changed from new to accepted