[linux-lvm] lvcreate does not respect units?

Thomas Voegtle tv at lio96.de
Mon Dec 14 14:28:24 UTC 2009


On Mon, 14 Dec 2009, Alasdair G Kergon wrote:

> On Mon, Dec 14, 2009 at 02:45:21PM +0100, Thomas Voegtle wrote:
>> vgdisplay  Free  PE / Size       6127 / 25.70 GB
>
>> root@(none):~# lvcreate -L 25.50g datavolume -n datavolume
>> lvcreate  Insufficient free extents (6127) in volume group datavolume:
>> 6528 required
>
>> So it seems lvcreate does not respect the unit in power of 1000?
>
> Use either:
>   lvcreate -l 6127
> or
>   lvcreate -l 100%FREE


Yes, thanks. I know.


But I thought you guys would like to hear from bugs?

Why is it possible to use vgdisplay with units power of 1000, if you
cant use lvcreate with that kind of units?

The lvcreate man page says:

      -L, --size LogicalVolumeSize[bBsSkKmMgGtTpPeE]




More information about the linux-lvm mailing list