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
How do I actually create a 500GB volume?
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
You just named different, the size is the same. Did you mix up the -L and -n options?
Simon
On Friday, February 25, 2011 08:15:34 am Rudi Ahlers wrote:
[root@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.
On Fri, Feb 25, 2011 at 4:00 PM, Lamar Owen lowen@pari.edu wrote:
On Friday, February 25, 2011 08:15:34 am Rudi Ahlers wrote:
[root@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. _______________________________________________
Cool, thanx for the explanation. Why is there one extend "missing", or no usable?
At Fri, 25 Feb 2011 23:18:43 +0200 CentOS mailing list centos@centos.org wrote:
On Fri, Feb 25, 2011 at 4:00 PM, Lamar Owen lowen@pari.edu wrote:
On Friday, February 25, 2011 08:15:34 am Rudi Ahlers wrote:
[root@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. _______________________________________________
Cool, thanx for the explanation. Why is there one extend "missing", or no usable?
Overhead (LVM meta data needs to be stored someplace) and/or roundoff error. It is not really a 500G partition, it is like a 499.99<mumble>G partition, which is displayed as a 'human readable' 500G.
At Fri, 25 Feb 2011 15:15:34 +0200 CentOS mailing list centos@centos.org 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.
On Fri, Feb 25, 2011 at 4:34 PM, Robert Heller heller@deepsoft.com wrote:
At Fri, 25 Feb 2011 15:15:34 +0200 CentOS mailing list centos@centos.org 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.
hehe, how did I miss that? Thanx for pointing it out to me. I thought I changed the size, not the name.
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.
Ok, this is kinda confusing.
How could I create a 500GB volume this way, but not with specifying the actual size?
[root@francois-pc ~]# lvcreate -l 100%FREE -n 500-gig freenas Logical volume "500-gig" created
[root@francois-pc ~]# pvscan PV /dev/sdd VG freenas lvm2 [500.00 GB / 0 free] PV /dev/sdc VG thecus lvm2 [1010.00 GB / 1010.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 ~]# lvscan ACTIVE '/dev/freenas/500-gig' [500.00 GB] inherit ACTIVE '/dev/VolGroup00/LogVol00' [925.62 GB] inherit ACTIVE '/dev/VolGroup00/LogVol01' [5.62 GB] inherit
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@deepsoft.com Deepwoods Software -- http://www.deepsoft.com/ () ascii ribbon campaign -- against html e-mail /\ www.asciiribbon.org -- against proprietary attachments
CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos