Operating System - HP-UX
1836553 Members
1972 Online
110102 Solutions
New Discussion

Re: lvextend: Not enough free physical extents available.

 
anilezfa
Advisor

lvextend: Not enough free physical extents available.

# lvextend -L 3072 /dev/vg03/lvol3
I'm trying to extend a lv on and 11.11 box which has OnLine JFS Installed:

I am getting the following error message:

lvextend: Not enough free physical extents available.
Logical volume "/dev/vg03/lvol3" could not be extended.

# vgdisplay vg03
--- Volume groups ---
VG Name /dev/vg03
VG Write Access read/write
VG Status available
Max LV 255
Cur LV 11
Open LV 11
Max PV 100
Cur PV 24
Act PV 24
Max PE per PV 4500
VGDA 48
PE Size (Mbytes) 4
Total PE 83304
Alloc PE 59884
Free PE 23420
Total PVG 0
Total Spare PVs 0
Total Spare PVs in use 0
6 REPLIES 6
Ralph Grothe
Honored Contributor

Re: lvextend: Not enough free physical extents available.

What's the allocation policy of LV /dev/vg03/lvol3 ?
Could it be contiguous?
Then LVM cannot allocat further free PEs on next a free basis.
Is the LV mirrored (with policy strict)?
Has one of the mirror disk fewer free PEs than what you require?
Please post the dump of

lvdisplay /dev/vg03/lvol3
Madness, thy name is system administration
anilezfa
Advisor

Re: lvextend: Not enough free physical extents available.

# lvdisplay /dev/vg03/lvol3
--- Logical volumes ---
LV Name /dev/vg03/lvol3
VG Name /dev/vg03
LV Permission read/write
LV Status available/syncd
Mirror copies 0
Consistency Recovery MWC
Schedule parallel
LV Size (Mbytes) 2000
Current LE 500
Allocated PE 500
Stripes 0
Stripe Size (Kbytes) 0
Bad block off
Allocation PVG-strict
IO Timeout (Seconds) default
Stf
Esteemed Contributor

Re: lvextend: Not enough free physical extents available.

Hello,

can you give pvdisplay of disks that are in vg03 please?

Stf ;-)
Ralph Grothe
Honored Contributor

Re: lvextend: Not enough free physical extents available.

Ah, the allocation policy of this LV is physical volume (PVG) strict.
So the one who created this LV must have invoked lvcreate with "-s g".
To be honest, I've never used this allocation policy with our LVs, and I cannot tell for what reasons one does so,
and what the implications are.

I only found this hint from lvcreate's manpage


g Set a PVG-strict allocation policy.
Mirrors of a logical extent cannot
share the same physical volume
group. A PVG-strict allocation
policy cannot be set on a logical
volume in a volume group that does
not have a physical volume group
defined.


On the other hand Mirror Copies say 0 in your dump.
Did you intend to mirror this LV?
Anyway, you could shed more light if you also posted a verbose dump of this VG
(e.g. vgdisplay -v vg03)


Madness, thy name is system administration
Ralph Grothe
Honored Contributor

Re: lvextend: Not enough free physical extents available.

To take up Stf's suggestion,
please also post output from something like this:

/usr/sbin/pvdisplay $(/usr/sbin/vgdisplay -v vg03|awk '/PV Name/{print$NF}')
Madness, thy name is system administration
Fred Ruffet
Honored Contributor

Re: lvextend: Not enough free physical extents available.

Could you please post output for :
vgdisplay -v vg03

This would help to see what PV are in which PVG.

Regards,

Fred
--

"Reality is just a point of view." (P. K. D.)