Other than that, it all works for me.
Hi,
If i understand things correctly, the script in
post #79 is the latest version which is working with FreeNAS 9.1.1. Anyway i am a bit confused with the "
edit each disk and paste in the same description for each member of the pool." ... Did i missed something important while reading the whole thread?
EDIT
Is there way how to delay the sasidled start after boot? I just realized that i have my scripts stored on encrypted pool, so the "sasidle" script will be not accessible until i unlock the pool. So like 15min delay to start the daemon would be more than enough.
/EDIT
Just for the info ... here is my situation:
- I've replaced MoBo to SuperMicro X10SL7-F which has a on-board SAS2 controller (flashed into IT mode) and i have 6x3TB WD green connected to that SAS and all of them are in RAIDZ2 pool ( /dev/da[0-5] ). This pool is used as an archive/backup storage so it is accessed not so frequently -> I'd like to spun all six disks down. All disks have Standby set to 60min and SMART check frequency is set to 120min and "Standby" power mode to avoid spinning the disk up. Smartd is enabled, APM is disabled. This setting worked on previous motherboard where standard onboard controller was used. Now its not because of that SAS2
- I also i have two 2TB WD RED in mirror connected to the standard controlled (/dev/ada[0-1]). This is used for plugins and basically always active.
ataidle is not usable for disks connected to SAS
Code:
[root@HolyNAS] ~# ataidle /dev/da0
Model:
Serial:
Firmware Rev:
ATA revision: unknown/pre ATA-2
LBA 48: no
Geometry: 0 cyls, 0 heads, 0 spt
Capacity: 0MB
SMART Supported: no
Write Cache Supported: no
APM Supported: no
AAM Supported: no
select from storage db:
Code:
sqlite> select * from storage_disk;
1|Disabled|60|||{devicename}da0|1|Disabled|Auto||bay4||1|da0
1|Disabled|60|WD-WMC1XXXXXXXX||{serial}WD-WMC1XXXXXXXX|1|Disabled|Auto||bay3||4|da1
1|Disabled|60|WD-WMC1XXXXXXXX||{serial}WD-WMC1XXXXXXXX|1|Disabled|Auto||bay2||5|da2
1|Disabled|60|WD-WMC1XXXXXXXX||{serial}WD-WMC1XXXXXXXX|1|Disabled|Auto||bay1||6|da3
1|Disabled|60|WD-WMC1XXXXXXXX||{serial}WD-WMC1XXXXXXXX|1|Disabled|Auto||bay6||7|da4
1|Disabled|60|WD-WMC1XXXXXXXX||{serial}WD-WMC1XXXXXXXX|1|Disabled|Auto||bay5||8|da5
No active writes (for all, i did not pasted all 6)
Code:
[root@HolyNAS] ~# iostat -d -w1 da0
da0
KB/t tps MB/s
0.00 0 0.00
0.00 0 0.00
0.00 0 0.00
0.00 0 0.00
0.00 0 0.00
camcontrol output:
Code:
[root@HolyNAS] ~# camcontrol devlist | grep EZRX
<ATA WDC WD30EZRX-00D 0A80> at scbus0 target 0 lun 0 (da0,pass0)
<ATA WDC WD30EZRX-00D 0A80> at scbus0 target 1 lun 0 (da1,pass1)
<ATA WDC WD30EZRX-00D 0A80> at scbus0 target 2 lun 0 (da2,pass2)
<ATA WDC WD30EZRX-00D 0A80> at scbus0 target 3 lun 0 (da3,pass3)
<ATA WDC WD30EZRX-00D 0A80> at scbus0 target 4 lun 0 (da4,pass4)
<ATA WDC WD30EZRX-00D 0A80> at scbus0 target 5 lun 0 (da5,pass5)
stop via camcontrol stop is working
Code:
[root@HolyNAS] ~# camcontrol stop /dev/da0
Unit stopped successfully
[root@HolyNAS] ~# camcontrol stop /dev/da1
Unit stopped successfully
[root@HolyNAS] ~# camcontrol stop /dev/da2
Unit stopped successfully
[root@HolyNAS] ~# camcontrol stop /dev/da3
Unit stopped successfully
[root@HolyNAS] ~# camcontrol stop /dev/da4
Unit stopped successfully
[root@HolyNAS] ~# camcontrol stop /dev/da5
[root@HolyNAS] ~# smartctl -a -n standby /dev/da0
Device is in STANDBY mode, exit(2)
[root@HolyNAS] ~# smartctl -a -n standby /dev/da1
Device is in STANDBY mode, exit(2)
[root@HolyNAS] ~# smartctl -a -n standby /dev/da2
Device is in STANDBY mode, exit(2)
[root@HolyNAS] ~# smartctl -a -n standby /dev/da3
Device is in STANDBY mode, exit(2)
[root@HolyNAS] ~# smartctl -a -n standby /dev/da4
Device is in STANDBY mode, exit(2)
[root@HolyNAS] ~# smartctl -a -n standby /dev/da5
Device is in STANDBY mode, exit(2)
And power drain dropped by 20W ^^