I just installed FreeNAS on a cheap server I bought for my home. It has a SuperMicro X8DTN+ motherboard and a 12 drive backplane connected to a 3ware 9750. When I first booted I was getting an Amber light in the FreeNAS GUI telling me that Smartd was not started. After further investigation it seems that my /usr/local/etc/smartd.conf file was empty. I did some greps and finds to see that that file gets created by the /etc/ix.rc.d/ix-smartd script. While skimming through the script I found a section for 3ware:
# 3ware 9750se
${disk}:tws*)
port=`/usr/local/sbin/tw_cli /c${CONTROLLER_ID}/u${CHANNEL_NO} show | egrep "^u" | sed -E 's/.*p([0-9]+).*/\1/'`
propdev="/dev/${DRIVER}${CONTROLLER_ID} -d 3ware,${port}"
break
;;
I copied my new mods to /conf/base/etc/ix.rc.d/ix-smartd and restarted. Smartd now starts properly and my smart.conf is properly configured.
My only issue now is my drive serial numbers are not populating in the View Disks menu.
A) Is the above fix to the ix-smartd script valid.
B) What other files do I need to modify to get the Serial Numbers and other data that I'm likely missing.
PS: I am using FreeNAS-9.3-STABLE-201506292332
# 3ware controller
${disk}:twa*)
port=`/usr/local/sbin/tw_cli /c${CONTROLLER_ID}/u${CHANNEL_NO} show | egrep "^u" | sed -E 's/.*p([0-9]+).*/\1/'`
propdev="/dev/${DRIVER}${CONTROLLER_ID} -d 3ware,${port}"
break
;;
Unfortunately, my controller maps to /dev/tws* instead of /dev/twa* so the script is not finding my controller. I added the following case and restarted the service which seems to work:${disk}:twa*)
port=`/usr/local/sbin/tw_cli /c${CONTROLLER_ID}/u${CHANNEL_NO} show | egrep "^u" | sed -E 's/.*p([0-9]+).*/\1/'`
propdev="/dev/${DRIVER}${CONTROLLER_ID} -d 3ware,${port}"
break
;;
# 3ware 9750se
${disk}:tws*)
port=`/usr/local/sbin/tw_cli /c${CONTROLLER_ID}/u${CHANNEL_NO} show | egrep "^u" | sed -E 's/.*p([0-9]+).*/\1/'`
propdev="/dev/${DRIVER}${CONTROLLER_ID} -d 3ware,${port}"
break
;;
I copied my new mods to /conf/base/etc/ix.rc.d/ix-smartd and restarted. Smartd now starts properly and my smart.conf is properly configured.
My only issue now is my drive serial numbers are not populating in the View Disks menu.
A) Is the above fix to the ix-smartd script valid.
B) What other files do I need to modify to get the Serial Numbers and other data that I'm likely missing.
PS: I am using FreeNAS-9.3-STABLE-201506292332