Re: can't create large LVM, even though pvscan shows enough space left

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



At Fri, 25 Feb 2011 15:15:34 +0200 CentOS mailing list <centos@xxxxxxxxxx> wrote:

> 
> I'm trying to create a 500GB lv volume on a 500GB physical volume, but can't:
> 
> [root@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@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@francois-pc ~]# lvcreate -L 500gig -n 450G freenas
>   Insufficient free extents (127999) in volume group freenas: 128000 required

'-n' is the *name*, -L is the size.  You are still asking for a 500G
sized volume.

Try this:

lvcreate -l 100%FREE -n volume freenas

This will create a logical volume (named volume) that uses all of the
*available* free space, which will be *slightly* less than the 500B of
the VG.

> 
> 
> 
> How do I actually create a 500GB volume?

You can't. There is one extent's worth of space used for LVM meta data.

> 
> 
> 
> 

-- 
Robert Heller             -- 978-544-6933 / heller@xxxxxxxxxxxx
Deepwoods Software        -- http://www.deepsoft.com/
()  ascii ribbon campaign -- against html e-mail
/\  www.asciiribbon.org   -- against proprietary attachments


                                               
_______________________________________________
CentOS mailing list
CentOS@xxxxxxxxxx
http://lists.centos.org/mailman/listinfo/centos


[Index of Archives]     [CentOS]     [CentOS Announce]     [CentOS Development]     [CentOS ARM Devel]     [CentOS Docs]     [CentOS Virtualization]     [Carrier Grade Linux]     [Linux Media]     [Asterisk]     [DCCP]     [Netdev]     [Xorg]     [Linux USB]
  Powered by Linux