Operating System - HP-UX
1757233 Members
2669 Online
108859 Solutions
New Discussion юеВ

lvextend: Not enough free physical extents available

 
SOLVED
Go to solution
Subentu
Frequent Advisor

lvextend: Not enough free physical extents available

Hi All,

i tried to extend an existing logical volume by adding 10GB. But the lvextend command returns the error:
lvextend: Not enough free physical extents available

The logical volume is NOT mirrored or stripped.

--- Logical volumes ---
LV Name /dev/vgora02/lvol10
VG Name /dev/vgora02
LV Permission read/write
LV Status available/syncd
Mirror copies 0
Consistency Recovery MWC
Schedule parallel
LV Size (Mbytes) 36088
Current LE 4511
Allocated PE 4511
Stripes 0
Stripe Size (Kbytes) 0
Bad block on
Allocation non-strict
IO Timeout (Seconds) default

--- Distribution of logical volume ---
PV Name LE on PV PE on PV
/dev/dsk/c13t4d1 1041 1041
/dev/dsk/c11t4d2 1735 1735
/dev/dsk/c13t4d3 1735 1735

What may be causing this?

Thanks in advance

8 REPLIES 8
Steven E. Protter
Exalted Contributor
Solution

Re: lvextend: Not enough free physical extents available

Shalom,

Something is missing from the output.

Normally this screen shows the amount of free PE's on the physical disk.

Example:

--- Physical volumes ---
PV Name /dev/dsk/c7t6d0
VG Name /dev/vg00
PV Status available
Allocatable yes
VGDA 2
Cur LV 9
PE Size (Mbytes) 16
Total PE 4374
Free PE 1479
Allocated PE 2895
Stale PE 0
IO Timeout (Seconds) default
Autoswitch On
Proactive Polling On


There may simply not be enough free extents. You have 36 GB in the Logical volume. To analyze this problem, we need to see the pvdisplay for the physical volume you wish to extend to.

Please post

vgdisplay

Might want to look at -v output for the same command to see the disk layout.

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: lvextend: Not enough free physical extents available

Hi Subentu:

You show the beginning of a 'lvdisplay -v' for the logical volume. This isn't going to help answer your question.

You need to examine the output of:

# vgdisplay /dev/vgora02

or :

# vgdisplay -v /dev/vgora02

...in order to see how many and where you have free physical extents to extend your logical volume.

Regards!

...JRF...
Raj D.
Honored Contributor

Re: lvextend: Not enough free physical extents available

Subentu,

Please provide following:
- # vgdisplay -v vgora02 | grep -i -e "Free PE" -e "PE Size" -e dsk


- lvdisplay /dev/vgora02/lvol10 | grep "LV Size"


- lvdisplay -v /dev/vgora02/lvol10 | perl -ne 'print if /Distribution/../Logical/' | grep -v Logic


Cheers,
Raj.
" If u think u can , If u think u cannot , - You are always Right . "
Subentu
Frequent Advisor

Re: lvextend: Not enough free physical extents available

Hi guys,

Sorry for the lack of info. Here are more details:

--- Volume groups ---
VG Name /dev/vgora02
VG Write Access read/write
VG Status available, exclusive
Max LV 255
Cur LV 11
Open LV 11
Max PV 60
Cur PV 31
Act PV 31
Max PE per PV 10000
VGDA 62
PE Size (Mbytes) 8
Total PE 53329
Alloc PE 52050
Free PE 1279
Total PVG 0
Total Spare PVs 0
Total Spare PVs in use 0


=============== ######## ===============

PV Name /dev/dsk/c24t0d3
PV Name /dev/dsk/c22t0d3 Alternate Link
PV Name /dev/dsk/c20t0d3 Alternate Link
PV Name /dev/dsk/c18t0d3 Alternate Link
PV Status available
Total PE 1279
Free PE 1279
Autoswitch On
Proactive Polling On


wbscsp02[/]#lvextend -l 53329 /dev/vgora02/lvol10
lvextend: Not enough free physical extents available.
Logical volume "/dev/vgora02/lvol10" could not be extended.
wbscsp02[/]#

wbscsp02[/]#lvdisplay /dev/vgora02/lvol10 | grep "LV Size"
LV Size (Mbytes) 36088


wbscsp02[/]#lvdisplay -v /dev/vgora02/lvol10 | perl -ne 'print if /Distribution/../Logical/' | grep -v Logic
--- Distribution of logical volume ---
PV Name LE on PV PE on PV
/dev/dsk/c13t4d1 1041 1041
/dev/dsk/c11t4d2 1735 1735
/dev/dsk/c13t4d3 1735 1735

wbscsp02[/]#
Subentu
Frequent Advisor

Re: lvextend: Not enough free physical extents available

Steven E. Protter,

When I posted the first out put in my OP, we have removed the newly added physical volumes temporarily. That's why it shows no free PE.
VVS
Regular Advisor

Re: lvextend: Not enough free physical extents available

You can extend LV by 1279 PE.
and your LV siz in terms of extend is 4511.

Use below command,

lvextend -l 5790 /dev/vgora02/lvol10
Work is life, you know, and without it, there's nothing but fear and insecurity.
Subentu
Frequent Advisor

Re: lvextend: Not enough free physical extents available

Thanks VVS and other guys.

It was a very silly mistake. I extended the logical volume successfully.

Regards
Subentu
Subentu
Frequent Advisor

Re: lvextend: Not enough free physical extents available

thanks