I am experiencing issues with my sata connection.
Thus, I want to change /sys/class/scsi_host/host*/link_power_management_policy
to max_performance.
For that, I execute on boot a script:
cat /etc/openmediavault/sata_power.sh
for i in /sys/class/scsi_host/host[012345]/link_power_management_policy; do echo max_performance >$i; done
cat /sys/class/scsi_host/host*/link_power_management_policy
I see that this script is running and also the output is max_performance (I get the output by mail).
Nevertheless, if I log in to the machine after boot, I get med_power_with_dipm
for all hosts.
Who is changing that setting?
The only other file that I find in /etc that includes power_management_policy is
/etc/udev/rules.d/hd_power_save.rules
ACTION=="add", SUBSYSTEM=="scsi_host", KERNEL=="host*", ATTR{link_power_management_policy}="max_performance"
Best regards, Hendrik