Hi Milhouse,
Thank you for the script. It looks great. I've modified it by swapping out the sas commands with the ataidle commands (since I'm using the N36L onboard sata but still have problems with my drives not spinning down via the script and the FreeNAS GUI (9.1 release) can't make my Hitachi drives spin down. However, I'm a bit stuck. Everything looks good until the execution of the spindown.
My current output is as follows:
Feb 13 21:44:25 storage100 sasidle[2302]: 005: capacity operations bandwidth
Feb 13 21:44:25 storage100 sasidle[2302]: 005: pool alloc free read write read write
Feb 13 21:44:25 storage100 sasidle[2302]: 005: ---------- ----- ----- ----- ----- ----- -----
Feb 13 21:44:25 storage100 sasidle[2302]: 005: storage100 13.3T 363G 11 59 49.4K 230K
Feb 13 21:45:25 storage100 sasidle[2302]: 005: storage100 13.3T 363G 0 3 273 7.62K
Feb 13 21:45:25 storage100 sasidle[2310]: 005: storage100_ssd 2.28G 55.2G 32 13 852K 332K
Feb 13 21:46:25 storage100 sasidle[2302]: 004: storage100 13.3T 363G 0 0 0 0
Feb 13 21:46:25 storage100 sasidle[2310]: 005: storage100_ssd 2.28G 55.2G 0 2 68 13.6K
Feb 13 21:47:25 storage100 sasidle[2302]: 003: storage100 13.3T 363G 0 0 0 0
Feb 13 21:47:25 storage100 sasidle[2310]: 005: storage100_ssd 2.28G 55.2G 0 1 0 14.7K
Feb 13 21:48:25 storage100 sasidle[2302]: 002: storage100 13.3T 363G 0 0 0 0
Feb 13 21:48:25 storage100 sasidle[2310]: 005: storage100_ssd 2.28G 55.2G 0 1 0 6.73K
Feb 13 21:49:25 storage100 sasidle[2302]: 001: storage100 13.3T 363G 0 0 0 0
Feb 13 21:49:25 storage100 sasidle[2310]: 005: storage100_ssd 2.28G 55.2G 0 1 0 6.73K
Feb 13 21:50:25 storage100 sasidle[2302]: 000: storage100 13.3T 363G 0 0 0 0
Feb 13 21:50:25 storage100 sasidle[2302]: ** Stopping devices in pool "storage100" **
Feb 13 21:50:25 storage100 sasidle[2302]: ataidle -S 5 /dev/ada0
Feb 13 21:50:25 storage100 sasidle[2302]: ataidle -S 5 /dev/ada1
Feb 13 21:50:25 storage100 sasidle[2302]: ataidle -S 5 /dev/ada2
Feb 13 21:50:25 storage100 sasidle[2302]: ataidle -S 5 /dev/ada3
Feb 13 21:50:25 storage100 sasidle[2302]: ataidle -S 5 /dev/ada5
Feb 13 21:50:25 storage100 sasidle[2310]: 005: storage100_ssd 2.28G 55.2G 0 4 0 40.8K
Feb 13 21:51:25 storage sasidle[2302]: 000: storage100 13.3T 363G 0 0 0 0
The correct pool and devices are recognised. Everything works until I get to the ataidle -S 5 /dev/ada0 command.
This command works via the cli so I'm not sure why it's not spinning down the drives?
Any thought would be really helpful.
Thank you for the script. It looks great. I've modified it by swapping out the sas commands with the ataidle commands (since I'm using the N36L onboard sata but still have problems with my drives not spinning down via the script and the FreeNAS GUI (9.1 release) can't make my Hitachi drives spin down. However, I'm a bit stuck. Everything looks good until the execution of the spindown.
My current output is as follows:
Feb 13 21:44:25 storage100 sasidle[2302]: 005: capacity operations bandwidth
Feb 13 21:44:25 storage100 sasidle[2302]: 005: pool alloc free read write read write
Feb 13 21:44:25 storage100 sasidle[2302]: 005: ---------- ----- ----- ----- ----- ----- -----
Feb 13 21:44:25 storage100 sasidle[2302]: 005: storage100 13.3T 363G 11 59 49.4K 230K
Feb 13 21:45:25 storage100 sasidle[2302]: 005: storage100 13.3T 363G 0 3 273 7.62K
Feb 13 21:45:25 storage100 sasidle[2310]: 005: storage100_ssd 2.28G 55.2G 32 13 852K 332K
Feb 13 21:46:25 storage100 sasidle[2302]: 004: storage100 13.3T 363G 0 0 0 0
Feb 13 21:46:25 storage100 sasidle[2310]: 005: storage100_ssd 2.28G 55.2G 0 2 68 13.6K
Feb 13 21:47:25 storage100 sasidle[2302]: 003: storage100 13.3T 363G 0 0 0 0
Feb 13 21:47:25 storage100 sasidle[2310]: 005: storage100_ssd 2.28G 55.2G 0 1 0 14.7K
Feb 13 21:48:25 storage100 sasidle[2302]: 002: storage100 13.3T 363G 0 0 0 0
Feb 13 21:48:25 storage100 sasidle[2310]: 005: storage100_ssd 2.28G 55.2G 0 1 0 6.73K
Feb 13 21:49:25 storage100 sasidle[2302]: 001: storage100 13.3T 363G 0 0 0 0
Feb 13 21:49:25 storage100 sasidle[2310]: 005: storage100_ssd 2.28G 55.2G 0 1 0 6.73K
Feb 13 21:50:25 storage100 sasidle[2302]: 000: storage100 13.3T 363G 0 0 0 0
Feb 13 21:50:25 storage100 sasidle[2302]: ** Stopping devices in pool "storage100" **
Feb 13 21:50:25 storage100 sasidle[2302]: ataidle -S 5 /dev/ada0
Feb 13 21:50:25 storage100 sasidle[2302]: ataidle -S 5 /dev/ada1
Feb 13 21:50:25 storage100 sasidle[2302]: ataidle -S 5 /dev/ada2
Feb 13 21:50:25 storage100 sasidle[2302]: ataidle -S 5 /dev/ada3
Feb 13 21:50:25 storage100 sasidle[2302]: ataidle -S 5 /dev/ada5
Feb 13 21:50:25 storage100 sasidle[2310]: 005: storage100_ssd 2.28G 55.2G 0 4 0 40.8K
Feb 13 21:51:25 storage sasidle[2302]: 000: storage100 13.3T 363G 0 0 0 0
The correct pool and devices are recognised. Everything works until I get to the ataidle -S 5 /dev/ada0 command.
This command works via the cli so I'm not sure why it's not spinning down the drives?
Any thought would be really helpful.