Linux LVM users
 help / color / mirror / Atom feed
From: Sachin Sant <sachinp@in.ibm.com>
To: linux-lvm@sistina.com
Subject: [linux-lvm] lvchange -r 256 lv-name does not work
Date: Thu Nov 27 07:48:05 2003	[thread overview]
Message-ID: <3FC5F552.A494A0AA@in.ibm.com> (raw)

Hi , i came across a problem with lvchange command.

I have a VG with 3 pv and a lv created using command 

lvcreate -i3 -I32 -l98 -nmy_lv my_vg
lvdisplay shows 1024 as the value for Read Ahead Sectors.

When i use the command lvchange to change the value of read ahead
sector with value more that or equal to 256 i get following error..

linux# lvchange -r 340 /dev/my_vg/my_lv
lvchange -- ERROR "Invalid Argument" read ahead sector change
linux#
linux#

After debugging i found that in drivers/block/blkpg.c file blk_ioctl( )

Case BLKRASET :

	if (arg > 0xff )
		return -EINVAL;

Effectively this does not allow value greater that 255 for read ahead.
Is there a limitation that the read ahead sectors can't have value more
than 255 ? If yes then why lvdisplay shows 1024 as the default value for
read ahead sectors.

Thanks
-Sachin

             reply	other threads:[~2003-11-27  7:48 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-11-27  7:48 Sachin Sant [this message]
  -- strict thread matches above, loose matches on Subject: below --
2003-12-01  7:57 [linux-lvm] lvchange -r 256 lv-name does not work Sachin Sant

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=3FC5F552.A494A0AA@in.ibm.com \
    --to=sachinp@in.ibm.com \
    --cc=linux-lvm@sistina.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox