Dear Maintainer,
TL;DR: could /usr/lib/udev/hdparm maybe log to journald?
I added the following entry to /etc/hdparm.conf
/dev/sda {
read_ahead_sect = 4096
}
But apparently there were no changes to the disk after reboot (hdparm -a
/dev/sda showed no changes).
I executed DEVNAME=/dev/sda bash /usr/lib/udev/hdparm manually without
any luck.
When looking into the script I noticed that errors are ignored.
https://sources.debian.org/src/hdparm/9.65%2Bds-1.1/debian/udev-scripts/hdparm#L46
/usr/sbin/hdparm -q $OPTIONS $DEVNAME 2>/dev/null
When running the command by hand I got the error:
/usr/sbin/hdparm -q -a4096 /dev/sda
-a: bad/missing filesystem-read-ahead value (0..2048)
So I had to adjust the config value.
If I would have seen the error message, maybe I would have noticed earlier.
Maybe the script could log errors to journald? Maybe something like this?
/usr/sbin/hdparm -q $OPTIONS $DEVNAME 2>&1 | systemd-cat
--identifier=hdparm.conf --priority=warning
Thank you,
Ben