On Sun, 2021-06-13 at 14:38 -0600, Chris Murphy wrote:
I actually use a udev rule for idle spin down:
$ cat /etc/udev/rules.d/69-hdparm.rules ACTION=="add", SUBSYSTEM=="block", \ KERNEL=="sd*[!0-9]", \ ENV{ID_SERIAL_SHORT}=="WDZ47F0A", \ RUN+="/usr/sbin/hdparm -B 100 -S 252 /dev/disk/by-id/wwn- 0x5000c500a93cae8a" $
BTW, the reason I don't do this is that one of the drives doesn't accept the APM spin-down command:
$ sudo hdparm -B 100 -S 24 /dev/disk/by-id/wwn-0x50014ee058f952e1
/dev/disk/by-id/wwn-0x50014ee058f952e1: setting Advanced Power Management level to 0x64 (100) HDIO_DRIVE_CMD failed: Input/output error setting standby to 24 (2 minutes) APM_level = not supported
poc