Operating System - HP-UX
1847683 Members
4287 Online
110265 Solutions
New Discussion

Not enough free physical extents available

 
SOLVED
Go to solution
Christian Marquardt_1
Regular Advisor

Not enough free physical extents available

Hello,
I hope everyone can help me with the following:
I've created a logical volume /dev/vginpo1/lvinpo1115_16384 with the following command: lvcreate -D y -s g -n lvinpo1115_16384 vginpo1
Now I've tried an: lvextend -L 16384 /dev/vginpo1/lvinpo1115_16384
and the following error occurs:

lvextend: Not enough free physical extents available.
Logical volume "/dev/vginpo1/lvinpo1115_16384" could not be extended.
Failure possibly caused by PVG-Strict or Distributed allocation policies.

If I run a vgdisplay /dev/vginpo1 it shows the following:

VG Name /dev/vginpo1
VG Write Access read/write
VG Status available, exclusive
Max LV 255
Cur LV 118
Open LV 118
Max PV 16
Cur PV 9
Act PV 9
Max PE per PV 17501
VGDA 18
PE Size (Mbytes) 4
Total PE 113401
Alloc PE 101560
Free PE 11841
Total PVG 2
Total Spare PVs 0
Total Spare PVs in use 0

I see the following: There are 11841 free PE's. Depend on the 4 MB PE-Size there are 47364 MB free in the volume group. Can everyone tell me why I can't increase the size of the logical volume to 16384 MB???

regards
Christian
5 REPLIES 5
Pete Randall
Outstanding Contributor
Solution

Re: Not enough free physical extents available

Christian,

In your lvcreate, you specified Distributed Allocation. To quote the man page,

"When the distributed allocation policy is turned on, only one free extent is allocated from the first available physical volume. The next free extent is allocated from the next available physical volume. Allocation of free extents proceeds in round-robin order on the list of available physical volumes."

So, your answer is most likely that despite the fact you have all kinds of free PE's, they are not located where you need them.


Pete

Pete
Alex Lavrov.
Honored Contributor

Re: Not enough free physical extents available

"vgdisplay -v" will be more helpfull
I don't give a damn for a man that can only spell a word one way. (M. Twain)
Bill Hassell
Honored Contributor

Re: Not enough free physical extents available

pvdisplay -v will also be helpful to show what has already been allocated. With any distributed or striped allocation method, you'll need free extents on all the disks in the distribution range.


Bill Hassell, sysadmin
Doug O'Leary
Honored Contributor

Re: Not enough free physical extents available

Hey;

If you're not using PVGs, as in there is no /etc/lvmpvg, then get rid of the -D and -s flags. If you are, get rid of the -D flag.

lvremove /dev/vginpo1/lvinpo1115_16384
lvcreate [-s g ] -n lvinpo1115_16384 vginpo1
lvextend -L 16384 /dev/vginpo1/lvinpo1115_16384

I assume that you'll be mirroring the LV onto the other PVG after all this if you're using PVGs.

If that doesn't work, you'll have to examine your PVG set up. Assuming an even split of disks in each PVG, you should have 47364/2 = 23682 in each PVG. If you have more than 2 PVGs in that VG, then you're doomed. You'll have to create the LV without the PVGs and mirror it manually.

HTH;

Doug

------
Senior UNIX Admin
O'Leary Computers Inc
linkedin: http://www.linkedin.com/dkoleary
Resume: http://www.olearycomputers.com/resume.html
Christian Marquardt_1
Regular Advisor

Re: Not enough free physical extents available

I've found my problem. The first pvg in the vginpo1 hasn't enough free pe's for the new lvol. Creating the lvol without the "-s g" and "-D" option works fine. Now the lvextend allocates a few pe's in the "little pe"-volumegroup and take all the other pe's from the second pvg.

regards
Christian