tuned
tuned copied to clipboard
Multiple disk instances targetting same devices with different rules does not work
I configured a profile with multiple instances of the disk plugin:
[disk-apm]
type=disk
devices=sda,sdb,sdc
apm=255
[disk-spindown]
type=disk
devices=sda,sdb,sdc,sdd
spindown=0
The problem is only sdd gets the spindown=0 applied.
I tried using replace=1 and the same happens.
The log always show:
2025-02-11 18:56:54,708 INFO tuned.plugins.base: instance disk-apm (disk): assigning devices sda,sdb,sdc
2025-02-11 18:56:54,722 INFO tuned.plugins.base: instance disk-spindown (disk): assigning devices sdd
Is there a way to apply different instance rules to same devices?
tuneD: 2.15.0 system: Linux 6.6.0-1-amd64 Debian 6.6.52-1
This is not supported, each device can be handled by max one instance, you can set it e.g.:
[disk-powersave]
type=disk
devices=sda,sdb,sdc
apm=255
[disk-powersave-spindown]
type=disk
devices=sdd
apm=255
spindown=0
In todo we have "instance include" which should work similarly like the profile include, but on instances and would allow you to write it the following way:
[disk-apm]
type=disk
devices=sda,sdb,sdc
apm=255
[disk-spindown]
include=disk-apm
devices=sdd
spindown=0
But it isn't implemented yet.