Operating System - HP-UX
1836894 Members
2312 Online
110111 Solutions
New Discussion

lvextend: Not enough free physical extents available.

 
SOLVED
Go to solution

lvextend: Not enough free physical extents available.

I'm trying to extend a lvol, but I get the following error:

#lvextend -L 5200 /dev/vg01/lvol2
lvextend: Not enough free physical extents available.
Logical volume "/dev/vg01/lvol2" could not be extended.
Failure possibly caused by PVG-Strict or Distributed allocation policie

I have more than 1Gb of free PE:

#vgdisplay vg01
--- Volume groups ---
VG Name /dev/vg01
VG Write Access read/write
VG Status available, exclusive
Max LV 255
Cur LV 8
Open LV 8
Max PV 16
Cur PV 5
Act PV 5
Max PE per PV 1016
VGDA 10
PE Size (Mbytes) 8
Total PE 4375
Alloc PE 4238
Free PE 137
Total PVG 1
Total Spare PVs 0
Total Spare PVs in use 0


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

I need some help to solve this problem.

I attachment i send this command outputs:

#vgdisplay -v vg01
#cat /etc/lvmpvg

6 REPLIES 6
Murat SULUHAN
Honored Contributor

Re: lvextend: Not enough free physical extents available.

Hi Luiz

Excellent thread for you
http://forums12.itrc.hp.com/service/forums/questionanswer.do?threadId=1118436

Best Regards
Murat
Murat Suluhan
Sajjad Sahir
Honored Contributor

Re: lvextend: Not enough free physical extents available.

Dear Luiz

I can't open u attachment, there is no space in u volume group, thats why u are facing such a problem

thanks and rgds

Sajjad
James R. Ferguson
Acclaimed Contributor
Solution

Re: lvextend: Not enough free physical extents available.

Hi:

Your logical volume (lvol2) was built with PVG-strict/distributed allocation. This means that the first free extent was allocated from the first available physical volume, followed by the next free extent from the next available physical volume in a round-robin arrangement.

You can see that your 'lovl2' spans five (5) physical volumes in your 'vgdisplay'.

You don't have any free extents anywhere
other than on disk 'c4t0d3' and 'c4t0d4', and these are only part of the requirement.

In all, you need (5000/8/5) or 125 free extents on *each* of the five physical disks to satisfy the PVG distribution.

To continue to use distributed allocation you need to add *five* new physical volumes.

Your other alternative is to turn off the distributed allocation policy for 'lvol2':

# lvchange -D n /dev/vg01/lvol2

Regards!

...JRF...
Aneesh Mohan
Honored Contributor

Re: lvextend: Not enough free physical extents available.

#lvchange -s n /dev/vg01/lvol2


Thanks,
Aneesh

Re: lvextend: Not enough free physical extents available.

James,

Thank you very much.

Solved.
Sajjad Sahir
Honored Contributor

Re: lvextend: Not enough free physical extents available.

dear

please assign points