1833451 Members
2994 Online
110052 Solutions
New Discussion

File Size

 
SOLVED
Go to solution
MikeL_4
Super Advisor

File Size


I have a VG that is 572304 in size and want to create a single LV within it to use ALL the
space. When I try I get message:
The command used to extend logical volumes, /sbin/lvextend,
failed. The stderr output from the command is shown below.
logical volume has not been extended.


Usage: lvextend
[-A Autobackup]
{-l LogicalExtentsNumber |
-L LogicalVolumeSize}
LogicalVolumePath [ PhysicalVolumePath... |
PhysicalVolumeGroupName... ]
"LogicalExtentsNumber": Must be a value between 1 and 65535

The unlimit is set to unlimited, is this possible to do or is the size to large ?

3 REPLIES 3
Slawomir Gora
Honored Contributor

Re: File Size

Hi,

when you want to create single LV you have to use command lvcreate not lvextend

ex:
lvcreate -l your_size_in_MB vgname
or
lvcreate -L number_of_PE vgname

if you want mirror try add option -m 1
Pete Randall
Outstanding Contributor
Solution

Re: File Size

Mike,

You need to specify a large PE size when you create the VG because you can only have up to 65535 logical extents within your LV. Do a vgdisplay of your VG to see what the extent size is currently.


Pete

Pete
MikeL_4
Super Advisor

Re: File Size

Thanks, I had forgotten about the PE size....