1833189 Members
2824 Online
110051 Solutions
New Discussion

max lvol size

 
SOLVED
Go to solution
Eli_pok
Frequent Advisor

max lvol size

Hi,
I ran into a problem increasing a lvol over 250 giga.
I looked in the man and it was spesified that the max size is a 65535 logical extends per lvol, we use a 4 mbyte logical extent as default.
I'm sure the max size per lvol is much larger then 250 giga. How can I increase the lvol size over 250 giga????
Thanks
7 REPLIES 7
Michal Toth
Regular Advisor

Re: max lvol size

well, that's true:

65535*4MB equals roughly 250GB,

you have to migrate your data to a new vg with larger PE, also make sure to set the vg parameters correctly (plan ahead)
IT_2007
Honored Contributor
Solution

Re: max lvol size

Also see man page for lvcreate

-L lv_size Allocate space to the logical volume,
specified in megabytes. lv_size is a
decimal value in the range 1 to 16777216
(the implementation limit). lv_size is
rounded up to the nearest multiple of
the logical extent size, equivalent to
the physical extent size defined for the
volume group by the vgcreate command
(see vgcreate(1M)). The default is
described above.

Either the -l or the -L option can be
specified, but not both.


It has range max. to 16777216 in decimals. You can't go beyond that value. As said in the above post, your value comes to nearly 250GB. Or increase PE size to get bigger logical volumes.
Robert-Jan Goossens_1
Honored Contributor

Re: max lvol size

Hi,

Recreate your volume group with a larger PE size. (use the vgcreate -s option)

max_extends X PE_size = max_size_fs

65535 X 4 = 262152 MB

65535 X 16 = 1048560 MB = =/- 1 TB

Regards,
Robert-Jan
Pete Randall
Outstanding Contributor

Re: max lvol size

Michael is correct you're going to need to re-create. For reference purposes, here are the file and file system size limitations:

http://www.docs.hp.com/en/5971-2383/5971-2383.pdf


Pete

Pete
Steven E. Protter
Exalted Contributor

Re: max lvol size

Shalom,

This is probably a volume group problem, not a logical volume problem.

The default configuration for a vg spreads the available PE's over a max of 255 disks. Since most vg's don't have that a lot of capacity is wasted.

The vg should be rebuilt with the vgcreate command and the -p parameter. Set max physical volumes at a reasonable level. Make sure you set it high enough, rebuilding a vg is no fun and it can't be modified on the fly.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Eli_pok
Frequent Advisor

Re: max lvol size

Thank for the replys!
Eli_pok
Frequent Advisor

Re: max lvol size

I've resived an answer to my problem