Operating System - HP-UX
1832367 Members
2965 Online
110041 Solutions
New Discussion

Re: Creating a LARGE VG HPUX 11.23

 
Darren Etheridge_2
Super Advisor

Creating a LARGE VG HPUX 11.23

I want to create a large VG from our XP 20K. I would like to use 18 * 73GB drives(roughly 1.3TB) carved from the XP, but am unsure what PE size to use and what other parameters would be needed to created such a large VG. In addition, I only want 1 LV for the 1.3TB of space. Any suggestions would be appreciated in creating the VG and LV. Thanks!

D
5 REPLIES 5
P Arumugavel
Respected Contributor

Re: Creating a LARGE VG HPUX 11.23

Hi,

Here size is not an issue. Version 1.0 Volume groups supports upto 2TB size of LV in 11.11 and 11.23. In 11.23 size of LV can be upto 16TB with superseding Patshes PHCO_36744, PHKL_36745 and PHCO_37939 installed.

Set the maximum number of physical volumes that the volume group is allowed to contain. The default value for max_pv is 16. The maximum number of physical volumes can be a value in the range 1 to 255.
#vgcreate -p 'max_pv'


pe_size is expressed in units of megabytes (MB) in the range 1 to 256. pe_size must be equal to a power of 2 (1, 2, 4, 8, etc.). The default value for pe_size is 4 (four megabytes).
#vgcreate -s 'pe_size'

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.
#vgcreate -e 'max_pe'

Refer the attchment for more details.
Chandrahasa s
Valued Contributor

Re: Creating a LARGE VG HPUX 11.23

Hi,

11.23 will support 2TB default.

If you need upto 16TB you can update your 11.23
with recent patches.

pvcreate -f pvname

mkdir /dev/vgname

mknod /dev/vgname/group c 64 0x050000

vgcreate -e 12500 -s 64 -p 60 vgname pvname

lvcreate -L sizeinMB vgname

newfs -F vxfs -o largefiles /dev/vgname/rlvname

chandra
AZayed
Super Advisor

Re: Creating a LARGE VG HPUX 11.23

Hi,

This is my try, I cannot create 2TB LV.

#
# lvdisplay /dev/vgDATA01/DATA01
--- Logical volumes ---
LV Name /dev/vgDATA01/DATA01
VG Name /dev/vgDATA01
LV Permission read/write
LV Status available/syncd
Mirror copies 0
Consistency Recovery MWC
Schedule parallel
LV Size (Mbytes) 1048544
Current LE 32767
Allocated PE 32767
Stripes 0
Stripe Size (Kbytes) 0
Bad block on
Allocation strict
IO Timeout (Seconds) default


#
# vgdisplay -v /dev/vgDATA01
--- Volume groups ---
VG Name /dev/vgDATA01
VG Write Access read/write
VG Status available
Max LV 255
Cur LV 1
Open LV 1
Max PV 16
Cur PV 1
Act PV 1
Max PE per PV 65504
VGDA 2
PE Size (Mbytes) 32
Total PE 65495
Alloc PE 32767
Free PE 32728
Total PVG 0
Total Spare PVs 0
Total Spare PVs in use 0

Success seems to be connected with action. Successful people keep moving. They make mistakes, but they don't quit.
James R. Ferguson
Acclaimed Contributor

Re: Creating a LARGE VG HPUX 11.23

Hi:

> AZayed: I cannot create 2TB LV.

No, of course you can't. Look at the 'PE Size' (32MB) and the number of allocated extents you chose (32767) for the logical volume. The product of the two is 1,048,544 which is what you achieved.

On 11.23 you could have up to 65,535 logical extents in a logical volume.

Regards!

...JRF...





Steven E. Protter
Exalted Contributor

Re: Creating a LARGE VG HPUX 11.23

Shalom,

If you can recreate the vg.

-p 16

This vgcreate parm reduces the number of disks the PE's have to be spread across allowing larger groups.

You can if you wish go for a larger PE size. It will have no impact on disk performance.

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