Operating System - HP-UX
1837958 Members
3561 Online
110124 Solutions
New Discussion

lvextend: Not enough free physical extents available

 
Jagadesh
Frequent Advisor

lvextend: Not enough free physical extents available

Dear All,

When i create a new volume using
#lvcreate -L 10 -n newvol vg00
iam getting the following error message

"lvextend: Warning: The physical volume "/dev/dsk/c2t5d0" is not available for allocation. lvextend: Not enough free physical extents available.
Logical volume "/dev/vg00/newvol" could not be extended.
Failure possibly caused by strict allocation policy.


How can i go about in rectifying the same.

Thanks
S.Jagadesh
10 REPLIES 10
Robert-Jan Goossens
Honored Contributor

Re: lvextend: Not enough free physical extents available

Hi,

# ll /dev/vg00/newvol

Does the newvol volume already exist ?

Regards,
Robert-Jan
Bharat Katkar
Honored Contributor

Re: lvextend: Not enough free physical extents available

Hi jagdesh,
Try doing :
# vgdisplay -v vg00
See whether /dev/dsk/c2t5d0 is listed.

# pvdisplay -v /dev/dsk/c2t5d0

See whether it show any problem in the PV like do you see any stale PE in that.

Hope that helps.
Regards,

You need to know a lot to actually know how little you know
Jagadesh
Frequent Advisor

Re: lvextend: Not enough free physical extents available

Thanks for the reply..

When i exec the command
#vgdisplay -v vg00
it is displaying

VG Name /dev/vg00
VG Write Access read/write
VG Status available
Max LV 255
Cur LV 5
Open LV 5
Max PV 16
Cur PV 1
Act PV 1
Max PE per PV 4350
VGDA 2
PE Size (Mbytes) 4
Total PE 4340
Alloc PE 3881
Free PE 459
Total PVG 0
Total Spare PVs 0
Total Spare PVs in use 0

.
.
.
.

PV Name /dev/dsk/c2t5d0
PV Status available
Total PE 4340
Free PE 459
Autoswitch On


On issuing the command
#pvdisplay -v /dev/dsk/c2t5d0
--- Physical volumes ---
PV Name /dev/dsk/c2t5d0
VG Name /dev/vg00
PV Status available
Allocatable no
VGDA 2
Cur LV 4
PE Size (Mbytes) 4
Total PE 4340
Free PE 459
Allocated PE 3881
Stale PE 0
IO Timeout (Seconds) default
Autoswitch On

--- Distribution of physical volume ---
LV Name LE of LV PE for LV
/dev/vg00/lvol1 75 75
/dev/vg00/lvol2 256 256
/dev/vg00/lvol3 3500 3500
/dev/vg00/datavol 50 50



I hope that there is some problem in physical extend. How can i increase the same??

Thanks
Jagadesh


Bharat Katkar
Honored Contributor

Re: lvextend: Not enough free physical extents available

Hi jagdesh,
Got your problem. See the doc attached, go to chapter 16, Page no. 12 of the PDF.

This should work.
Regards,
You need to know a lot to actually know how little you know
Geoff Wild
Honored Contributor

Re: lvextend: Not enough free physical extents available

You are trying to create a 10MB lvol? your PE size is 4MB - try

lvcreate -L 12 -n newvol vg00

(after lvremove /dev/vg00/newvol)

Rgs...Geoff
Proverbs 3:5,6 Trust in the Lord with all your heart and lean not on your own understanding; in all your ways acknowledge him, and he will make all your paths straight.
Naveej.K.A
Honored Contributor

Re: lvextend: Not enough free physical extents available

hi jagadesh,

Failure possibly caused by strict allocation policy.

itself reveals that you need to reset the allocation policy from strict to normal.

lvchange will do it....

lvchange -s n /dev/vg00/newvol

with best wishes
Naveej
practice makes a man perfect!!!
Franky_1
Respected Contributor

Re: lvextend: Not enough free physical extents available

Hi Jagadesh,

you can extend the PE Size (i.e. to 16) with the following command :

vgcreate -s 16 /dev/vgxx /dev/dsk/c?t?d?

HTH

Franky
Don't worry be happy
Mark Grant
Honored Contributor

Re: lvextend: Not enough free physical extents available

Umm, If this is a mirrored logical volume, which it probably is considering this is vg00 it probably means that you can not extend this any more and keep the mirror on a different physical volume. Taking the strict allocation off will make it work but will mean that the mirror will be on the same disk as the primary data.

If this is the case, then you'll need to look at the mirroring of all the vg00 logical volumes and make sure they are optimally arranged.
Never preceed any demonstration with anything more predictive than "watch this"
Dietmar Konermann
Honored Contributor

Re: lvextend: Not enough free physical extents available

The key to your problem is obviously the "Allocatable no" in your pvdisplay output.

Issue "pvchange -x y /dev/dsk/c2t5d0" and re-try your lvcreate command.

Best regards...
Dietmar.
"Logic is the beginning of wisdom; not the end." -- Spock (Star Trek VI: The Undiscovered Country)
Bruno Ganino
Honored Contributor

Re: lvextend: Not enough free physical extents available

Try to syncronize the extensions.
See "lvsync" command.
Bruno
Torino (Turin) +2H