From: Peter Rajnoha <prajnoha@redhat.com>
To: dwittman@gmail.com
Cc: LVM general discussion and development <linux-lvm@redhat.com>
Subject: Re: [linux-lvm] Setting readahead for Logical Volumes via udev
Date: Tue, 20 May 2014 09:03:06 +0200 [thread overview]
Message-ID: <537AFE2A.50704@redhat.com> (raw)
In-Reply-To: <CAA-yaus6NpUkJYr3k9FSJ9KOiPQt2E+KdhK1D-dht7zgewAezQ@mail.gmail.com>
On 05/19/2014 05:58 PM, David Wittman wrote:
> Hey all,
>
> I'm having an issue tuning the readahead value for my Logical Volumes
> via udev. In short, I'm trying to create a rule that sets the readahead
> attribute for each of my Logical Volumes at boot time or upon the
> creation of a new volume. udev seems like the perfect place to do this,
> but for some reason or another LVM seems to be overriding these settings.
>
> Here's the udev rule I'm using, followed by an example:
>
> ```
> # cat /etc/udev/rules.d/83-readahead.rules
> # Set the readahead on non-spinning disks to 8kb (16 512b sectors)
> ACTION=="add", KERNEL=="dm-*", ATTR{queue/rotational}=="0",
> ATTR{bdi/read_ahead_kb}="8"
>
Try ACTION=="change", KERNEL=="dm-*", ENV{DM_ACTIVATION}=="1", ATTR ....
Anyway, there's direct way to set the readahead value using LVM tools with:
lvcreate/lvchange -r/--readahead (see man lvcreate and lvchange for more info).
--
Peter
next prev parent reply other threads:[~2014-05-20 7:03 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-05-19 15:58 [linux-lvm] Setting readahead for Logical Volumes via udev David Wittman
2014-05-20 7:03 ` Peter Rajnoha [this message]
2014-05-20 15:37 ` David Wittman
2014-05-22 7:07 ` Marian Csontos
2014-05-22 21:37 ` David Wittman
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=537AFE2A.50704@redhat.com \
--to=prajnoha@redhat.com \
--cc=dwittman@gmail.com \
--cc=linux-lvm@redhat.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.