lvchange -r 256 lv-name does not work

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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

_______________________________________________
linux-lvm mailing list
linux-lvm@sistina.com
http://lists.sistina.com/mailman/listinfo/linux-lvm
read the LVM HOW-TO at http://tldp.org/HOWTO/LVM-HOWTO/

[Index of Archives]     [Gluster Users]     [Kernel Development]     [Linux Clusters]     [Device Mapper]     [Security]     [Bugtraq]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]

  Powered by Linux