current /var/etc/smartd.conf:
Code: Select all
/dev/ada0 -a -d atacam -T permissive -W 0,0,0 -n standby,q
/dev/ada1 -a -d atacam -T permissive -W 0,0,0 -n standby,q
/dev/ada2 -a -d atacam -T permissive -W 0,0,0 -n standby,q
/dev/ada3 -a -d atacam -T permissive -W 0,0,0 -n standby,q
/dev/ada4 -a -d atacam -T permissive -W 0,0,0 -n standby,q
/dev/ada5 -a -d atacam -T permissive -W 0,0,0 -n standby,q
what gets added if I turn on smart for the new drives:
Code: Select all
/dev/da0 -a -d scsi -T permissive -W 0,0,0 -n standby,q -d 3ware,0
/dev/da1 -a -d scsi -T permissive -W 0,0,0 -n standby,q -d 3ware,1
/dev/da2 -a -d scsi -T permissive -W 0,0,0 -n standby,q -d 3ware,2
/dev/da3 -a -d scsi -T permissive -W 0,0,0 -n standby,q -d 3ware,3
/dev/da4 -a -d scsi -T permissive -W 0,0,0 -n standby,q -d 3ware,4
what I would like to see added:
Code: Select all
/dev/twa0 -a -d 3ware,0 -T permissive -W 0,0,0 -n standby,q
/dev/twa0 -a -d 3ware,1 -T permissive -W 0,0,0 -n standby,q
/dev/twa0 -a -d 3ware,2 -T permissive -W 0,0,0 -n standby,q
/dev/twa0 -a -d 3ware,3 -T permissive -W 0,0,0 -n standby,q
/dev/twa0 -a -d 3ware,4 -T permissive -W 0,0,0 -n standby,q
here are two of the disk definitions in my /conf/config.xml, that /etc/rc.d/smartd bulds from. the first is ada5, the last of my five running off themain mobo sata ports. the second is the first of my 3ware drives:
Code: Select all
<disk>
<uuid>XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX</uuid>
<name>ada5</name>
<devicespecialfile>/dev/ada5</devicespecialfile>
<harddiskstandby>5</harddiskstandby>
<acoustic>0</acoustic>
<fstype>zfs</fstype>
<apm>64</apm>
<transfermode>auto</transfermode>
<type>SCSI</type>
<desc>pool 5</desc>
<size>1907730MB</size>
<serial>WD-WCAVY0000000</serial>
<smart>
<enable/>
<extraoptions/>
</smart>
</disk>
<disk>
<uuid>XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX</uuid>
<name>da0</name>
<devicespecialfile>/dev/da0</devicespecialfile>
<harddiskstandby>5</harddiskstandby>
<acoustic>0</acoustic>
<apm>1</apm>
<transfermode>auto</transfermode>
<type>SCSI</type>
<desc>12-0</desc>
<size>1907338MB</size>
<serial/>
<smart>
<extraoptions>-d 3ware,0</extraoptions>
</smart>
</disk>
last night I tried mucking about with string substitution in the rc.d script, but only managed to bork things, so I had to revert.
I was trying something along the lines of:
Code: Select all
_devicespecialfile=${_devicespecialfile/da*/twa0}
but I get
Code: Select all
eval: ${_devicespecialfile/...}: Bad substitution
as I said, I've never tried modifying rc.d scripts before, and my experience is in perl, not bash/sh