Milhouse
Guru
- Joined
- Jun 1, 2011
- Messages
- 564
For what it's worth, I would avoid setting APM in addition to HDD Standby - as you say, it's one or the other but in my experience setting HDD Standby and forgetting about APM is the sanest approach. As you have determined, some APM settings are waaay too aggressive and unpredictable (particularly on "Green" drives) so best just leave it off, and let HDD Standby do it's spin-down thing according to your own schedule.
It is a bit annoying that ATAidle spins down the disks when setting the timeout values, but I think that's the price to be paid since the idle timer has to be set on the drive and the only way to do it seems to result in an immediate spin-down. However, with a regular SATA controller I haven't had any problems with ATAidle - I'm not sure why your disks would be spinning back up again if you have APM disabled and HDD Standby enabled.
For what it's worth, I created the iostat script because the FreeNAS built-in spin-down doesn't work at all with some (all?) add-in HBA controllers, and in my opinion that's down to a problem with the HBA drivers (not supporting SATA spin-down) rather than any deficiency of FreeNAS, and as such I don't see this problem ever being resolved to anyone's satisfaction. Hence this rather hackish script... if the built-in ATAidle isn't working then give the script a go as a (hopefully) more predictable alternative! :)
It is a bit annoying that ATAidle spins down the disks when setting the timeout values, but I think that's the price to be paid since the idle timer has to be set on the drive and the only way to do it seems to result in an immediate spin-down. However, with a regular SATA controller I haven't had any problems with ATAidle - I'm not sure why your disks would be spinning back up again if you have APM disabled and HDD Standby enabled.
For what it's worth, I created the iostat script because the FreeNAS built-in spin-down doesn't work at all with some (all?) add-in HBA controllers, and in my opinion that's down to a problem with the HBA drivers (not supporting SATA spin-down) rather than any deficiency of FreeNAS, and as such I don't see this problem ever being resolved to anyone's satisfaction. Hence this rather hackish script... if the built-in ATAidle isn't working then give the script a go as a (hopefully) more predictable alternative! :)