I can remember
reading this before. I was hoping you maybe had some
setup with systemd scripts or maybe udev.
Yeah, doing this on boot up would be ideal. I was looking really hard into tuned and
other services that claimed can do it, but required plugins or other stuff did/does not
exist and documentation is close to non-existent.
After spending a couple of days I gave up and went with the simple script-command
version.
If you come across something that allows easy configuration of this at boot-time, please
let me know.
FWIW, doing this at boot-time only doesn’t address drives that are added/replaced without
a reboot. One could simply do so for them manually before deployment, but I thought I
should mention it.
I'm throwing my hat in the ring, though I know
almost nothing about systemd…
In certain ways you’re fortunate ;)
Couldn't you write a script to issue the necessary
commands to the desired drives, then create a system unit that calls it before OSD
initialization?
The systemd unit file I think accepts an ExecStartPre entry for a command to run before
firing up the daemon, eg. /var/lib/ceph/ceph-osd-prestart.sh
a udev rule may be easier
I’m going to pretend that you did *not* just drop the U-bomb in polite company ;)