Operating System - HP-UX
1820071 Members
2558 Online
109608 Solutions
New Discussion юеВ

what is the Maximum Disk Size I can create using lvcreate ?

 
SOLVED
Go to solution
Muthyala
Frequent Advisor

what is the Maximum Disk Size I can create using lvcreate ?

Hi

What is the maximum disk size i can create using lvcreate in HP-UX 11i.I want to create disk size of 1.5TB but it always rounds off with 1TB disk size only.Eventhough i gave PE size to be 32.Can i create a disk size more than 1TB?.

TIA
Sri
12 REPLIES 12
IT_2007
Honored Contributor
Solution

Re: what is the Maximum Disk Size I can create using lvcreate ?

while creating Volume Group, you have to use -e option. See below.

Set the maximum number of physical extents
that can be allocated from any of the physical volumes in the volume group. The default value for max_pe is 1016. However,
if the size of any physical volume exceeds
1016 times the pe_size, the default value for max_pe is adjusted to match the physical volume size. The maximum number of physical extents can be a value in the range 1 to 65535.
Muthyala
Frequent Advisor

Re: what is the Maximum Disk Size I can create using lvcreate ?

hi

I have created the volume group by giving

#vgcreate -s 32 -p 32 disk1 /dev/dsk/c18t0d0

My question is can i create a logical volume for 1.5TB disk size.Since it does not allow more than 1TB disk size.I have SAN disk with 1.6TB presented to server.
Steven E. Protter
Exalted Contributor

Re: what is the Maximum Disk Size I can create using lvcreate ?

Shalom Sri,

You have several limitations to think about, which makes the answer "It depends"

1) Your standard volume group configuration permits up to 255 disks in the volume group. This limits the number of PE's that can be distributed to one disk. The volume group will probably need to be re-created with vgcreate including the -p ## dash p number of maximum physical disks. You need to set the number to permit growth, but too high and you will suffer fom a PE shortage.

2) You may need a larer PE size as well.

3) I believe the maximum filesize limit is 128 TB so that is not a factor. I believe items 1 and 2 are the issue.

4) Please post any error message you get.

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
James R. Ferguson
Acclaimed Contributor

Re: what is the Maximum Disk Size I can create using lvcreate ?

Hi:

When you did:

# vgcreate -s 32 -p 32 disk1 /dev/dsk/c18t0d0

...you created a volume group with one disk. You can/need to do a 'vgextend' to add more physical volumes.

Regards!

...JRF...
Robert-Jan Goossens
Honored Contributor

Re: what is the Maximum Disk Size I can create using lvcreate ?

Hi Dri,

max file size and filesystem size are 2TB, if you are on JFS version 3.3 and higher with layout version 3 and higher.

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

Regards,
Robert-Jan
Muthyala
Frequent Advisor

Re: what is the Maximum Disk Size I can create using lvcreate ?

Hi

I can re create the Volume group but my question is what i need to do to create a logical volume to be more than 1.5TB.

since i am able to create 1.5TB VG with PE size of 32.

Do I need to increase the PE size more than 32 in order to create 1.5TB of LV.Since PE size of 32 does not allow me to create LV more than 1TB
Robert-Jan Goossens
Honored Contributor

Re: what is the Maximum Disk Size I can create using lvcreate ?

Hi Sri,

Yes recreate it with a pe_size of 64.

64 * 32 = 2 TB, the max supported size.

Regards,
Robert-Jan
IT_2007
Honored Contributor

Re: what is the Maximum Disk Size I can create using lvcreate ?

Try with PE size 128 then you would able to create logical volume of 1.5TB.
James R. Ferguson
Acclaimed Contributor

Re: what is the Maximum Disk Size I can create using lvcreate ?

Hi (again):

Do a 'vgdisplay /dev/disk1' and examine the "Total PE" value you have. This is the number of extents of 32MB you defined.

If this number times 32MB equals or exceeds 1.5TB, then your 'lvcreate' should work, since the maximum number of extents that can be specified with 'lvcreate' is 65,535.

Regards!

...JRF...
Muthyala
Frequent Advisor

Re: what is the Maximum Disk Size I can create using lvcreate ?

Hi

This what i done to create 1.5 TB of mount point .IT can be done only thru commands , Some how it was not allowing me to do this thru SAM.I have Online JFS installed.

Creating Disk with more than 1TB

#vgcreate ├в e 65535 ├в s 32 /dev/dsk/vg02
#lvcreate ├в L 1535744 vg02

Note:1535744 is 1.5 TB of disk size arrived from calculating PE Size X Total PE

#newfs -F vxfs /dev/vg02/rlvol1
version 4 layout
1572601856 sectors, 1572601856 blocks of size 1024, log size 16384 blocks
unlimited inodes, largefiles not supported
1572601856 data blocks, 1572189480 free data blocks
47992 allocation units of 32768 blocks, 32768 data blocks
#mkdir /disk1
#mount /dev/vg02/lvol1 /disk1

Note : this has to be carried out Command only NOT THRU SAM.
Patrick Wallek
Honored Contributor

Re: what is the Maximum Disk Size I can create using lvcreate ?

That does not surprise me. I do all VG/LV work through command line. There are, or at least used to be, other options that were not available through SAM.
Muthyala
Frequent Advisor

Re: what is the Maximum Disk Size I can create using lvcreate ?

Check this doc