Operating System - HP-UX
1833784 Members
2725 Online
110063 Solutions
New Discussion

Assign Free PE to a Logical Volume

 
Adeel Zia
Occasional Advisor

Assign Free PE to a Logical Volume

I have created a vg and lv, The vg has 12876 Free PE,I want them to be assigned to the lv that I have created,how to do that

# vgdisplay -v /dev/vg_junk
--- Volume groups ---
VG Name /dev/vg_junk
VG Write Access read/write
VG Status available
Max LV 255
Cur LV 1
Open LV 1
Max PV 16
Cur PV 2
Act PV 2
Max PE per PV 17000
VGDA 4
PE Size (Mbytes) 64
Total PE 13076
Alloc PE 200
Free PE 12876
Total PVG 0
Total Spare PVs 0
Total Spare PVs in use 0

--- Logical volumes ---
LV Name /dev/vg_junk/lv_junk
LV Status available/syncd
LV Size (Mbytes) 12800
Current LE 200
Allocated PE 200
Used PV 1


--- Physical volumes ---
PV Name /dev/dsk/c0t1d3
PV Name /dev/dsk/c6t1d3 Alternate Link
PV Status available
Total PE 6538
Free PE 6338
Autoswitch On


PV Name /dev/dsk/c0t1d4
PV Name /dev/dsk/c6t1d4 Alternate Link
PV Status available
Total PE 6538
Free PE 6538
Autoswitch On
3 REPLIES 3
Torsten.
Acclaimed Contributor

Re: Assign Free PE to a Logical Volume

You can extend the existi8ng LVOL by using lvextend.

Hope this helps!
Regards
Torsten.

__________________________________________________
There are only 10 types of people in the world -
those who understand binary, and those who don't.

__________________________________________________
No support by private messages. Please ask the forum!

If you feel this was helpful please click the KUDOS! thumb below!   
Adeel Zia
Occasional Advisor

Re: Assign Free PE to a Logical Volume

Thanks I used the -l tag to extend the LE in the lvextend command.
Adeel Zia
Occasional Advisor

Re: Assign Free PE to a Logical Volume

lvextend -l 13076 /dev/vg_junk