Operating System - HP-UX
1846854 Members
2645 Online
110256 Solutions
New Discussion

lvextend: Not enough free physical extents available.

 
Edgar A. Hdez. Cárdenas
Occasional Advisor

lvextend: Not enough free physical extents available.

Hello, Dear HP-UX guru´s

i been creating a LVOL into a existing vg, but when i try to extend this lvol, i get the message "lvextend: Not enough free physical extents available.", i been checking into", this is the output of the lvdisplay, and the vgdisplay,

We have a HA Cluster serviceguard for SAP
this is the principal node,

vgdisplay -v vgdataPRD | grep -i "Free PE"

pisadb:/# vgdisplay -v vgdataPRD | grep -i "Free PE"
Free PE 2387
Free PE 0
Free PE 0
Free PE 0
Free PE 0
Free PE 0
Free PE 0
Free PE 0
Free PE 0
Free PE 0
Free PE 2387

pisadb:/# lvdisplay -v /dev/vgdataPRD/prd_db10 |more
--- Logical volumes ---
LV Name /dev/vgdataPRD/prd_db10
VG Name /dev/vgdataPRD
LV Permission read/write
LV Status available/syncd
Mirror copies 0
Consistency Recovery MWC
Schedule parallel
LV Size (Mbytes) 0
Current LE 0
Allocated PE 0
Stripes 0
Stripe Size (Kbytes) 0
Bad block on
Allocation non-strict
IO Timeout (Seconds) default

vgdisplay -v vgdataPRD | grep -e"VG Status" -e "PV Name" -e "Free PE"

pisadb:/# vgdisplay -v vgdataPRD | grep -e"VG Status" -e "PV Name" -e "Free PE"
VG Status available, exclusive
Free PE 2387
PV Name /dev/dsk/c0t0d5
PV Name /dev/dsk/c11t0d5 Alternate Link
PV Name /dev/dsk/c13t0d5 Alternate Link
PV Name /dev/dsk/c15t0d5 Alternate Link
Free PE 0
PV Name /dev/dsk/c0t0d6
PV Name /dev/dsk/c11t0d6 Alternate Link
PV Name /dev/dsk/c13t0d6 Alternate Link
PV Name /dev/dsk/c15t0d6 Alternate Link
Free PE 0
PV Name /dev/dsk/c0t0d7
PV Name /dev/dsk/c11t0d7 Alternate Link
PV Name /dev/dsk/c13t0d7 Alternate Link
PV Name /dev/dsk/c15t0d7 Alternate Link
Free PE 0
PV Name /dev/dsk/c0t1d0
PV Name /dev/dsk/c11t1d0 Alternate Link
PV Name /dev/dsk/c13t1d0 Alternate Link
PV Name /dev/dsk/c15t1d0 Alternate Link
Free PE 0
PV Name /dev/dsk/c0t1d1
PV Name /dev/dsk/c11t1d1 Alternate Link
PV Name /dev/dsk/c13t1d1 Alternate Link
PV Name /dev/dsk/c15t1d1 Alternate Link
Free PE 0
PV Name /dev/dsk/c0t1d3
PV Name /dev/dsk/c11t1d3 Alternate Link
PV Name /dev/dsk/c13t1d3 Alternate Link
PV Name /dev/dsk/c15t1d3 Alternate Link
Free PE 0
PV Name /dev/dsk/c0t1d4
PV Name /dev/dsk/c11t1d4 Alternate Link
PV Name /dev/dsk/c13t1d4 Alternate Link
PV Name /dev/dsk/c15t1d4 Alternate Link
Free PE 0
PV Name /dev/dsk/c0t1d7
PV Name /dev/dsk/c11t1d7 Alternate Link
PV Name /dev/dsk/c13t1d7 Alternate Link
PV Name /dev/dsk/c15t1d7 Alternate Link
Free PE 0
PV Name /dev/dsk/c13t2d4
PV Name /dev/dsk/c15t2d4 Alternate Link
PV Name /dev/dsk/c0t2d4 Alternate Link
PV Name /dev/dsk/c11t2d4 Alternate Link
Free PE 0
PV Name /dev/dsk/c0t3d2
PV Name /dev/dsk/c11t3d2 Alternate Link
PV Name /dev/dsk/c13t3d2 Alternate Link
PV Name /dev/dsk/c15t3d2 Alternate Link
Free PE 2387

pisadb:/# strings /etc/lvmtab
/dev/vg00
/dev/dsk/c1t0d0s2
/dev/vg01
/dev/dsk/c0t0d2
/dev/dsk/c11t0d2
/dev/dsk/c13t0d2
/dev/dsk/c15t0d2
/dev/vgsapPRD
/dev/dsk/c0t0d1
/dev/dsk/c0t0d3
/dev/dsk/c11t0d1
/dev/dsk/c11t0d3
/dev/dsk/c13t0d1
/dev/dsk/c13t0d3
/dev/dsk/c15t0d1
/dev/dsk/c15t0d3
/dev/vgoraPRD
/dev/dsk/c0t0d4
/dev/dsk/c0t1d2
/dev/dsk/c11t0d4
/dev/dsk/c11t1d2
/dev/dsk/c13t0d4
/dev/dsk/c13t1d2
/dev/dsk/c15t0d4
/dev/dsk/c15t1d2
/dev/dsk/c0t2d5
/dev/dsk/c11t2d5
/dev/dsk/c13t2d5
/dev/dsk/c15t2d5
/dev/vgdataPRD
/dev/dsk/c0t0d5
/dev/dsk/c0t0d6
/dev/dsk/c0t0d7
/dev/dsk/c0t1d0
/dev/dsk/c0t1d1
/dev/dsk/c0t1d3
/dev/dsk/c0t1d4
/dev/dsk/c11t0d5
/dev/dsk/c13t0d5
/dev/dsk/c15t0d5
/dev/dsk/c11t0d6
/dev/dsk/c11t0d7
/dev/dsk/c13t0d6
/dev/dsk/c15t0d6
/dev/dsk/c13t0d7
/dev/dsk/c15t0d7
/dev/dsk/c11t1d0
/dev/dsk/c13t1d0
/dev/dsk/c15t1d0
/dev/dsk/c11t1d1
/dev/dsk/c13t1d1
/dev/dsk/c15t1d1
/dev/dsk/c11t1d3
/dev/dsk/c13t1d3
/dev/dsk/c15t1d3
/dev/dsk/c11t1d4
/dev/dsk/c13t1d4
/dev/dsk/c15t1d4
/dev/dsk/c0t1d7
/dev/dsk/c11t1d7
/dev/dsk/c13t1d7
/dev/dsk/c15t1d7
/dev/dsk/c13t2d4
/dev/dsk/c15t2d4
/dev/dsk/c0t2d4
/dev/dsk/c11t2d4
/dev/dsk/c0t3d2
/dev/dsk/c11t3d2
/dev/dsk/c13t3d2
/dev/dsk/c15t3d2
/dev/vglogsPRD
/dev/dsk/c0t1d5
/dev/dsk/c0t1d6
/dev/dsk/c11t1d5
/dev/dsk/c11t1d6
/dev/dsk/c13t1d5
/dev/dsk/c13t1d6
/dev/dsk/c15t1d5
/dev/dsk/c15t1d6
/dev/dsk/c0t2d6
/dev/dsk/c0t2d7
/dev/dsk/c11t2d6
/dev/dsk/c13t2d6
/dev/dsk/c15t2d6
/dev/dsk/c11t2d7
/dev/dsk/c13t2d7
/dev/dsk/c15t2d7
/dev/vgtmp
/dev/dsk/c0t2d0
/dev/dsk/c11t2d0
/dev/dsk/c13t2d0
/dev/dsk/c15t2d0
/dev/vgoracle
/dev/dsk/c0t2d1
/dev/dsk/c11t2d1
/dev/dsk/c13t2d1
/dev/dsk/c15t2d1
/dev/vgdms
/dev/dsk/c0t2d2
/dev/dsk/c11t2d2
/dev/dsk/c13t2d2
/dev/dsk/c15t2d2
/dev/dsk/c0t2d3
/dev/dsk/c11t2d3
/dev/dsk/c13t2d3
/dev/dsk/c15t2d3

i hope , you can help me.

Or if, this lvol is not possible to extend inside this vg, could you please tell, to create another new vg and mounted on it.

Thanks in advance.
Edgar
15 REPLIES 15
Torsten.
Acclaimed Contributor

Re: lvextend: Not enough free physical extents available.

Please post a full "vgdisplay -v" output together with your lvextend command.

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!   
Suraj K Sankari
Honored Contributor

Re: lvextend: Not enough free physical extents available.

Hi,

Just post full output of

#vgdisplay -v vgdataPRD

Suraj
Aneesh Mohan
Honored Contributor

Re: lvextend: Not enough free physical extents available.

>> "lvextend: Not enough free physical extents available.".

Sufficient PE is not available to accomplish your lvextend .

As asked above post your vgdisplay -v vgdataPRD and lvextend command which you executed.

Regards,
Aneesh

Edgar A. Hdez. Cárdenas
Occasional Advisor

Re: lvextend: Not enough free physical extents available.

Hey Thanks so much for your answer, this is the output of "vgdisplay -v vgdataPRD"

pisadb:/# vgdisplay -v vgdataPRD
--- Volume groups ---
VG Name /dev/vgdataPRD
VG Write Access read/write
VG Status available, exclusive
Max LV 255
Cur LV 8
Open LV 8
Max PV 16
Cur PV 10
Act PV 10
Max PE per PV 31999
VGDA 20
PE Size (Mbytes) 16
Total PE 102700
Alloc PE 100313
Free PE 2387
Total PVG 0
Total Spare PVs 0
Total Spare PVs in use 0

--- Logical volumes ---
LV Name /dev/vgdataPRD/prd_db01
LV Status available/syncd
LV Size (Mbytes) 115008
Current LE 7188
Allocated PE 7188
Used PV 3

LV Name /dev/vgdataPRD/prd_db04
LV Status available/syncd
LV Size (Mbytes) 100000
Current LE 6250
Allocated PE 6250
Used PV 1

LV Name /dev/vgdataPRD/prd_db05
LV Status available/syncd
LV Size (Mbytes) 300000
Current LE 18750
Allocated PE 18750
Used PV 1

LV Name /dev/vgdataPRD/prd_db06
LV Status available/syncd
LV Size (Mbytes) 40000
Current LE 2500
Allocated PE 2500
Used PV 1

LV Name /dev/vgdataPRD/prd_db07
LV Status available/syncd
LV Size (Mbytes) 500000
Current LE 31250
Allocated PE 31250
Used PV 1

LV Name /dev/vgdataPRD/prd_db08
LV Status available/syncd
LV Size (Mbytes) 50000
Current LE 3125
Allocated PE 3125
Used PV 1

LV Name /dev/vgdataPRD/prd_db09
LV Status available/syncd
LV Size (Mbytes) 500000
Current LE 31250
Allocated PE 31250
Used PV 10

LV Name /dev/vgdataPRD/prd_db10
LV Status available/syncd
LV Size (Mbytes) 0
Current LE 0
Allocated PE 0
Used PV 0


--- Physical volumes ---
PV Name /dev/dsk/c0t0d5
PV Name /dev/dsk/c11t0d5 Alternate Link
PV Name /dev/dsk/c13t0d5 Alternate Link
PV Name /dev/dsk/c15t0d5 Alternate Link
PV Status available
Total PE 4159
Free PE 0
Autoswitch On
Proactive Polling On

PV Name /dev/dsk/c0t0d6
PV Name /dev/dsk/c11t0d6 Alternate Link
PV Name /dev/dsk/c13t0d6 Alternate Link
PV Name /dev/dsk/c15t0d6 Alternate Link
PV Status available
Total PE 6398
Free PE 0
Autoswitch On
Proactive Polling On

PV Name /dev/dsk/c0t0d7
PV Name /dev/dsk/c11t0d7 Alternate Link
PV Name /dev/dsk/c13t0d7 Alternate Link
PV Name /dev/dsk/c15t0d7 Alternate Link
PV Status available
Total PE 19197
Free PE 0
Autoswitch On
Proactive Polling On

PV Name /dev/dsk/c0t1d0
PV Name /dev/dsk/c11t1d0 Alternate Link
PV Name /dev/dsk/c13t1d0 Alternate Link
PV Name /dev/dsk/c15t1d0 Alternate Link
PV Status available
Total PE 2559
Free PE 0
Autoswitch On
Proactive Polling On

PV Name /dev/dsk/c0t1d1
PV Name /dev/dsk/c11t1d1 Alternate Link
PV Name /dev/dsk/c13t1d1 Alternate Link
PV Name /dev/dsk/c15t1d1 Alternate Link
PV Status available
Total PE 31995
Free PE 0
Autoswitch On
Proactive Polling On

PV Name /dev/dsk/c0t1d3
PV Name /dev/dsk/c11t1d3 Alternate Link
PV Name /dev/dsk/c13t1d3 Alternate Link
PV Name /dev/dsk/c15t1d3 Alternate Link
PV Status available
Total PE 3199
Free PE 0
Autoswitch On
Proactive Polling On

PV Name /dev/dsk/c0t1d4
PV Name /dev/dsk/c11t1d4 Alternate Link
PV Name /dev/dsk/c13t1d4 Alternate Link
PV Name /dev/dsk/c15t1d4 Alternate Link
PV Status available
Total PE 12798
Free PE 0
Autoswitch On
Proactive Polling On

PV Name /dev/dsk/c0t1d7
PV Name /dev/dsk/c11t1d7 Alternate Link
PV Name /dev/dsk/c13t1d7 Alternate Link
PV Name /dev/dsk/c15t1d7 Alternate Link
PV Status available
Total PE 12798
Free PE 0
Autoswitch On
Proactive Polling On

PV Name /dev/dsk/c13t2d4
PV Name /dev/dsk/c15t2d4 Alternate Link
PV Name /dev/dsk/c0t2d4 Alternate Link
PV Name /dev/dsk/c11t2d4 Alternate Link
PV Status available
Total PE 3199
Free PE 0
Autoswitch On
Proactive Polling On

PV Name /dev/dsk/c0t3d2
PV Name /dev/dsk/c11t3d2 Alternate Link
PV Name /dev/dsk/c13t3d2 Alternate Link
PV Name /dev/dsk/c15t3d2 Alternate Link
PV Status available
Total PE 6398
Free PE 2387
Autoswitch On
Proactive Polling On

i hope this works for the analisys of my problem.

Thanks.
Edgar.
Edgar A. Hdez. Cárdenas
Occasional Advisor

Re: lvextend: Not enough free physical extents available.

Sorry, i forgot to add the lvextend command output,

pisadb:/# lvextend -L 250000 /dev/vgdataPRD/prd_db10
lvextend: Not enough free physical extents available.
Logical volume "/dev/vgdataPRD/prd_db10" could not be extended.

Thanks.
johnsonpk
Honored Contributor

Re: lvextend: Not enough free physical extents available.

Hello,

The total available free space in your VG is only 38192 MBytes (PE Size x Free PE)

ie 16 x 2387 = 38192

PE Size (Mbytes) 16
Free PE 2387

So you can extend your LV upto 38192 MB
#lvextend -L 38192 /dev/vgdataPRD/prd_db10

For extending further more add Disk to you Volume group.


Rgds
Johnson
Vivek Bhatia
Trusted Contributor

Re: lvextend: Not enough free physical extents available.

Hi Edgar,

Free Space: 16 x 2387 = 38192MB
ANd you are trying to extend to 250000MB which is not possible.

So that maximum that you can extend to is 38192MB

pisadb:/# lvextend -L 250000 /dev/vgdataPRD/prd_db10
lvextend: Not enough free physical extents available.

Regards,
Vivek

N dont Forget to assign points to all the people who have replied
Edgar A. Hdez. Cárdenas
Occasional Advisor

Re: lvextend: Not enough free physical extents available.

Hey Guys, thanks for the clarification, i see that coming, now i saw my real problem, the max_pv paramter is on 16, and i have 11 pv on this vg, you know if there is a possible way to change the max_px parameter without destroying the current vg ???

Thanks for all you valuable help.
Edgar.
James R. Ferguson
Acclaimed Contributor

Re: lvextend: Not enough free physical extents available.

Hi Edgar:

> now i saw my real problem, the max_pv paramter is on 16, and i have 11 pv on this vg, you know if there is a possible way to change the max_px parameter without destroying the current vg ???

You can use 'vgmodify' if you are running 11.23 or 11.31 to change the 'max_pv' value. You need a patch for 11.23 but on 11.31 the command is available by default.

Regards!

...JRF...

Edgar A. Hdez. Cárdenas
Occasional Advisor

Re: lvextend: Not enough free physical extents available.

Hi James,

Thanks so much for your answer this is going to help me a lot, but i need to ask you something else, i run the command in the preview mode, but it show a message that told me this :

vgmodify -v -r -e 32508 -p 24 /dev/vgdataPRD
pisaapp5:/# vgmodify -v -r -e 32508 -p 24 /dev/vgdataPRD
Volume Group configuration for /dev/vgdataPRD has been saved in /etc/lvmconf/vgdataPRD.conf

Current Volume Group settings:
Max LV 255
Max PV 16
Max PE per PV 31999
PE Size (Mbytes) 16
VGRA Size (Kbytes) 4192
vgmodify: This operation can only be completed if PE number zero on "/dev/rdsk/c1t0d7" is freed
vgmodify: Physical Extent renumbering (-n) required to accomplish task
vgmodify: This operation can only be completed if PE number zero on "/dev/rdsk/c1t1d0" is freed
vgmodify: This operation can only be completed if PE number zero on "/dev/rdsk/c1t1d1" is freed
vgmodify: This operation can only be completed if PE number zero on "/dev/rdsk/c1t1d2" is freed
vgmodify: This operation can only be completed if PE number zero on "/dev/rdsk/c1t1d3" is freed
vgmodify: This operation can only be completed if PE number zero on "/dev/rdsk/c1t1d4" is freed
vgmodify: This operation can only be completed if PE number zero on "/dev/rdsk/c1t1d5" is freed
vgmodify: This operation can only be completed if PE number zero on "/dev/rdsk/c1t0d5" is freed
vgmodify: This operation can only be completed if PE number zero on "/dev/rdsk/c1t0d4" is freed
vgmodify: This operation can only be completed if PE number zero on "/dev/rdsk/c1t0d6" is freed
pisaapp5:/#

i don´t know what i have to do, to achive the goal of modify the parameter max_pv and the max_PE, could you please help me more.

Thanks in advance.
Edgar.
James R. Ferguson
Acclaimed Contributor

Re: lvextend: Not enough free physical extents available.

HI (again) Edgar:

See if this helps:

http://docs.hp.com/en/5992-6591/vgmodify_wp.pdf

Regards!

...JRF...
Vivek Bhatia
Trusted Contributor

Re: lvextend: Not enough free physical extents available.

Hi Edgar,

You need to use pvmove to move the PE 0 to run the vgmodify command successfully.

Regards
Vivek

Edgar A. Hdez. Cárdenas
Occasional Advisor

Re: lvextend: Not enough free physical extents available.

Hi vivek, thanks for your comment, i been reading the doc that James suggest, i was wondering, if there any chance to do the change on the max_pv value, without deactivating the VG, because this is going to make a downtime. Do you think this is the only way to solve this issue ??
According to what i understand from the doc,
1.- I need to deactivate the VG,
2.- then move the PE to 0
3.- run the vgmodify to make the changes
4.- Activate again the VG, with the new values,
is the a risk to lose some information making this movement ??

Thanks again for your help.
Edgar.
Vivek Bhatia
Trusted Contributor

Re: lvextend: Not enough free physical extents available.

Hi

is the a risk to lose some information making this movement ??
No as only the PE is moving and data will be intact.

Regards
Vivek
Edgar A. Hdez. Cárdenas
Occasional Advisor

Re: lvextend: Not enough free physical extents available.

Ok, Vivek
So if i need to move the PE, and the max_pv parameter, what would be the better process for achive this goal ??, the better and minor risk involve, cause this are on my production system.

Thanks again.