Operating System - HP-UX
1834053 Members
2219 Online
110063 Solutions
New Discussion

LVEXTEND - NOT FREE PHYSICAL EXTENTS !!!!

 
SOLVED
Go to solution
Raja_2
Advisor

LVEXTEND - NOT FREE PHYSICAL EXTENTS !!!!

Hi,

I'm not sure about lvextend. I have to increase my oracle LV.
However, I got this message after lvextend -L 13000 /dev/vg01/lvol1
----------
lvextend: Not enough free physical extents available.
Logical volume "/dev/vg01/lvol1" could not be extended.
Failure possibly caused by strict allocation policy
----------
There is my ...
vgdisplay -v vg01
--- Volume groups ---
VG Name /dev/vg01
VG Write Access read/write
VG Status available
Max LV 255
Cur LV 4
Open LV 4
Max PV 16
Cur PV 4
Act PV 4
Max PE per PV 4342
VGDA 8
PE Size (Mbytes) 4
Total PE 17360
Alloc PE 14000
Free PE 3360
Total PVG 0
Total Spare PVs 0
Total Spare PVs in use 0

--- Logical volumes ---
LV Name /dev/vg01/lvol1
LV Status available/syncd
LV Size (Mbytes) 10000
Current LE 2500
Allocated PE 5000
Used PV 4

LV Name /dev/vg01/lvol2
LV Status available/syncd
LV Size (Mbytes) 3000
Current LE 750
Allocated PE 1500
Used PV 2
LV Name /dev/vg01/lvol3
LV Status available/syncd
LV Size (Mbytes) 6000
Current LE 1500
Allocated PE 3000
Used PV 3

LV Name /dev/vg01/lvol9
LV Status available/syncd
LV Size (Mbytes) 9000
Current LE 2250
Allocated PE 4500
Used PV 3


--- Physical volumes ---
PV Name /dev/dsk/c4t0d0
PV Status available
Total PE 4340
Free PE 0

PV Name /dev/dsk/c4t1d0
PV Status available
Total PE 4340
Free PE 0

PV Name /dev/dsk/c4t8d0
PV Status available
Total PE 4340
Free PE 0

PV Name /dev/dsk/c4t9d0
PV Status available
Total PE 4340
Free PE 3360

---------------------------


Can I run extendfs /dev/vg01 ? Will be everything alright ?

Please, fast help ....

Many thanks

Radim
5 REPLIES 5
harry d brown jr
Honored Contributor

Re: LVEXTEND - NOT FREE PHYSICAL EXTENTS !!!!

Are you mirroring you lv's?
Live Free or Die
Alex Glennie
Honored Contributor

Re: LVEXTEND - NOT FREE PHYSICAL EXTENTS !!!!

reply ..if you are try looking on the ITRC Technical knowledge base for DOC KBRC00000984
lvextend on a striped lvol gives error
Raja_2
Advisor

Re: LVEXTEND - NOT FREE PHYSICAL EXTENTS !!!!

Harry :
Yes, I mirror this LV.

Alex : No, I'll try it



Radim
Stefan Farrelly
Honored Contributor
Solution

Re: LVEXTEND - NOT FREE PHYSICAL EXTENTS !!!!


Your problem is trying to extend a mirrored lvol by 3 GB (6 GB including the mirror copy) but all your free 6 GB is on the same disk - which you cannot do with mirroring. You need to move some extents off this disk to free up 3 GB on another disk.

eg. use pvmove to try to move either lvol 2 or 3 to the disk with all the free space (/dev/dsk/c4t9d0) then you should be able to do the extend of lvol1.
Im from Palmerston North, New Zealand, but somehow ended up in London...
Raja_2
Advisor

Re: LVEXTEND - NOT FREE PHYSICAL EXTENTS !!!!

Hi,
Stefan :

You mean something like this ?

pvmove -A /dev/dsk/c4t0d0 dev/dsk/c4t9d0

I think another possibility is cancel mirroring, but I guess after extend I'll get the same error message, isn't ?

Radim