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

Fri Feb 25 13:27:17 UTC 2011
Simon Matter <simon.matter at invoca.ch>

> I'm trying to create a 500GB lv volume on a 500GB physical volume, but
> can't:
>
> [root at francois-pc ~]# pvscan
>   PV /dev/sdd                  VG freenas      lvm2 [500.00 GB / 500.00 GB
> free]
>   PV /dev/sdc                  VG thecus       lvm2 [1010.00 GB /
> 910.00 GB free]
>   PV /dev/mapper/ddf1_RAIDp2   VG VolGroup00   lvm2 [931.25 GB / 0
> free]
>   Total: 3 [2.38 TB] / in use: 3 [2.38 TB] / in no VG: 0 [0   ]
> [root at francois-pc ~]# lvcreate -L 500gig -n 500G freenas
>   Insufficient free extents (127999) in volume group freenas: 128000
> required
>
> Even dropping the size a bit, I get this:
>
> [root at francois-pc ~]# lvcreate -L 500gig -n 450G freenas

You just named different, the size is the same. Did you mix up the -L and
-n options?

Simon