<div dir="ltr">Hey Peter,<div><br></div><div>Thanks for the response. I've previously tried the "change" action, and adding the specifier for the DM_ACTIVATION environment variable had no effect. I'm also aware of the capability to set the readahead on a per-volume basis, but I'm looking for a solution which handles setting these values at boot time and/or volume creation time.</div>

<div><br></div><div>Dave</div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Tue, May 20, 2014 at 2:03 AM, Peter Rajnoha <span dir="ltr"><<a href="mailto:prajnoha@redhat.com" target="_blank">prajnoha@redhat.com</a>></span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="">On 05/19/2014 05:58 PM, David Wittman wrote:<br>
> Hey all,<br>
><br>
> I'm having an issue tuning the readahead value for my Logical Volumes<br>
> via udev. In short, I'm trying to create a rule that sets the readahead<br>
> attribute for each of my Logical Volumes at boot time or upon the<br>
> creation of a new volume. udev seems like the perfect place to do this,<br>
> but for some reason or another LVM seems to be overriding these settings.<br>
><br>
> Here's the udev rule I'm using, followed by an example:<br>
><br>
> ```<br>
> # cat /etc/udev/rules.d/83-readahead.rules<br>
> # Set the readahead on non-spinning disks to 8kb (16 512b sectors)<br>
> ACTION=="add", KERNEL=="dm-*", ATTR{queue/rotational}=="0",<br>
> ATTR{bdi/read_ahead_kb}="8"<br>
><br>
<br>
</div>Try ACTION=="change", KERNEL=="dm-*", ENV{DM_ACTIVATION}=="1", ATTR ....<br>
<br>
Anyway, there's direct way to set the readahead value using LVM tools with:<br>
  lvcreate/lvchange -r/--readahead (see man lvcreate and lvchange for more info).<br>
<span class="HOEnZb"><font color="#888888"><br>
--<br>
Peter<br>
</font></span></blockquote></div><br></div>