I'd like to have my hard drives spin down when idle for, let's say 20 minutes. Any number of minutes is fine, as this NAS is rarely used.
What I've tried and didn't work:
ataidle -S 20 /dev/ada0simply spins down the drive immediately and the timer has no effect. Once drives are spun back up due to an access they stay spinning.
camcontrol standby /dev/ada0 -t 1200same behavior as
FreeNAS UI's Storage -> Disks -> Adv. Power Manager setting simply calls
camcontroland similarly the timer has no effect. If a power setting that allows standby is selected (such as 127) then drives spin down nearly immediately (potentially after 8 seconds), and get constantly spun up and down if there are any accesses. UPDATE: See How to get FreeNAS to spin down disks? for instructions on how to make this work and skip the manual scripts.
How can I get the normal expected "stand by if not used in a while" behavior?
FreeBSD 11.2-STABLE via
FreeNAS 11.2. Drives are 4x Samsung 2TB 2.5" .T2000LM003`
# smartctl -P show /dev/ada0 smartctl 6.6 2017-11-05 r4594 [FreeBSD 11.2-STABLE amd64] (local build) Copyright (C) 2002-17, Bruce Allen, Christian Franke, www.smartmontools.org Drive found in smartmontools Database. Drive identity strings: MODEL: ST2000LM003 HN-M201RAD FIRMWARE: 2BC10007 match smartmontools Drive Database entry: MODEL REGEXP: ST(1500|2000)LM0(03|04|06|07|10) HN-M[0-9]*RAD FIRMWARE REGEXP: .* MODEL FAMILY: Seagate Samsung SpinPoint M9T ATTRIBUTE OPTIONS: None preset; no -v options are required.