Operating System - HP-UX
1830898 Members
2234 Online
110017 Solutions
New Discussion

How to create large logical volumes

 
SOLVED
Go to solution
Carles Viaplana
Valued Contributor

How to create large logical volumes

Hello,

I've a volume group of around 410 GB and I want to mount it in only one logical volume.

Can I do this? I'm trying through SAM and it said size exceed limit.

VG info:

VG Name /dev/vg10
VG Write Access read/write
VG Status available
Max LV 255
Cur LV 0
Open LV 0
Max PV 16
Cur PV 1
Act PV 1
Max PE per PV 51199
VGDA 2
PE Size (Mbytes) 8
Total PE 51192
Alloc PE 0
Free PE 51192
Total PVG 0
Total Spare PVs 0
Total Spare PVs in use 0

Thanks in advance for your help.
Regards,

Carles
4 REPLIES 4
Marvin Strong
Honored Contributor
Solution

Re: How to create large logical volumes

lvcreate -L 409536 /dev/vg10

that should create at 410GB logical volume named lvol1 in vg10.

James R. Ferguson
Acclaimed Contributor

Re: How to create large logical volumes

Hi Carles:

You are too close. LVM needs space for its headers -- VGRA & PVRA (Volume Group Reserved Area and Physical Volume Reserved Area). This requires one physical extent.

Regards!

...JRF...
Sandman!
Honored Contributor

Re: How to create large logical volumes

Hi Carles,

You might have to recreate vg10 by specifying a higher PE size of say 64 Mbytes (instead of the current PE size of 8 Mbytes) and lowering the Max PE per PV value to 6560 (instead of 51199). Reason is that the VGRA should be able to fit exactly into a single PE. Steps are given below:

1. remove vg10
# vgexport /dev/vg10

2. re-create vg10 with the new LVM parameters
# vgcreate -s 64 -e 6560 /dev/vg10 /dev/dsk/cXtYdZ

3. create the desired size lvol
# lvcreate -L 419840 /dev/vg10

~hope it helps
Carles Viaplana
Valued Contributor

Re: How to create large logical volumes

I've created volumen group succesfully.

Thanks to all for your help.
Regards,

Carles