Hello,

I am trying to set the /sys/block/rbd*/queue/read_ahead_kb for a
specific device when RBD is mounted on a proxmox node.
However, I am having trouble because /dev/rbd* device paths are not
consistent at reboot.

In researching, I found a nice gist for a udev rule which is halfway there:
KERNEL=="rbd[0-9]*", ENV{DEVTYPE}=="disk", ACTION=="add|change",
ATTR{bdi/read_ahead_kb}="512"
However, I do not want this readahead on all RBD devices, just a specific one.

In digging through /sys/block, I found reference to the rbd device's
image_id, and suspect there is a method to use it for device selection
with udev, but am not finding useful guides or tutorials for the same.

Could someone point me towards a resource where I can learn what I
need to figure this out or provide a helping hand?
I am simply unsure of what knowledge I am lacking, so am having
trouble searching for answers.


Have a great weekend, thank you for your time either way,

~Joshua West
_______________________________________________
ceph-users mailing list -- ceph-users@ceph.io
To unsubscribe send an email to ceph-users-le...@ceph.io

Reply via email to