[CentOS] can't create large LVM, even though pvscan shows enough space left

Fri Feb 25 14:00:26 UTC 2011
Lamar Owen <lowen at pari.edu>

On Friday, February 25, 2011 08:15:34 am Rudi Ahlers wrote:
> [root at francois-pc ~]# lvcreate -L 500gig -n 500G freenas
>   Insufficient free extents (127999) in volume group freenas: 128000 required

> How do I actually create a 500GB volume?

try
lvcreate -l 127999 -n 500G freenas

The default '500G' size is 12,800 extents, but you only have 12,799 extents free; which gets rounded *up* to 500G by the free space display.  And that's a lower-case 'L' option, not an upper-case 'I' option.