LVM and VxVM

lvextend: Not enough free physical extents available.

 
Rob van Buiten
Regular Advisor

lvextend: Not enough free physical extents available.

L.S.

Why can't I extend lvindx
I have free extend, but I can't extend lv "lvindx_eproifl6"

VG:
Free PE 802

LV:
LV Size (Mbytes) 3072
Current LE 384
Allocated PE 768

but:
root@un2007 [/root] # lvextend -l 800 /dev/vgora02/lvindx_eproifl6
lvextend: Not enough free physical extents available.
Logical volume "/dev/vgora02/lvindx_eproifl6" could not be extended.

Also:
root@un2007 [/root] # lvextend -L 3080 /dev/vgora02/lvindx_eproifl6
lvextend: Not enough free physical extents available.
Logical volume "/dev/vgora02/lvindx_eproifl6" could not be extended.




Complete output ov "vgdisplay -v vgora02" is attached

9 REPLIES 9
Rob van Buiten
Regular Advisor

Re: lvextend: Not enough free physical extents available.

OS is HPUX 11.31

Paul Ettema.
Torsten.
Acclaimed Contributor

Re: lvextend: Not enough free physical extents available.

Please post a "vgdisplay -v" of that VG and the first 30 lines of a "lvdisplay -v".

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!   
Rob van Buiten
Regular Advisor

Re: lvextend: Not enough free physical extents available.

second try to post (as attachment) vgdisplay.

And added lvdisplay output.

Paul Ettema.
Torsten.
Acclaimed Contributor

Re: lvextend: Not enough free physical extents available.

Try the lvextend with "-l 400" instead, because disks are mirrored.

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!   
Rob van Buiten
Regular Advisor

Re: lvextend: Not enough free physical extents available.

More info:

We use mirroring by PVgroup (/etc/lvmpvg)
And gues... PV's are gone. Not in lvmpvg.

VG /dev/vg00
PVG XP17108
/dev/disk/disk213
PVG XP75049
/dev/disk/disk87
VG /dev/vgexphist02
PVG XP17108
/dev/disk/disk124
/dev/disk/disk123
PVG XP75049
/dev/disk/disk114
/dev/disk/disk113
VG /dev/vgexphist03
PVG XP17108
/dev/disk/disk125
/dev/disk/disk126
PVG XP75049
/dev/disk/disk117
/dev/disk/disk118
VG /dev/vgexphist04
PVG XP17108
/dev/disk/disk127
PVG XP75049
/dev/disk/disk121


Paul Ettema.
Aneesh Mohan
Honored Contributor

Re: lvextend: Not enough free physical extents available.

Yes Paul, I think that could be the issue .

a) You can add pvg groups in the /etc/lvmpvg @ update lvmtab

b) Or you can change the PVG strict policy .


Aneesh
Rob van Buiten
Regular Advisor

Re: lvextend: Not enough free physical extents available.

@ Aneesh

Yes I did already add, lvmpvg shows now
..
VG /dev/vgora02
PVG XP17108
/dev/disk/disk103
PVG XP75049
/dev/disk/disk93


data extracted from xpinfo:
root@un2007 [/root] # xpinfo -ipo | grep -e c13t0d5 -e c19t0d5
/dev/rdsk/c19t0d5 e1 00 05 CL1B 02:02 OPEN-V 00017108
/dev/rdsk/c13t0d5 e1 00 05 CL1B 02:02 OPEN-V 00075049
root@un2007 [/root] #
root@un2007 [/root] # xpinfo -ip | grep -e 02:02
/dev/rdisk/disk93 d3 00 05 CL2B 02:02 OPEN-V 00075049
/dev/rdisk/disk103 d3 00 05 CL2B 02:02 OPEN-V 00017108
root@un2007 [/root] #


Now lvextend:
root@un2007 [/root] # lvextend -L 4096 /dev/vgora02/lvindx_eproifl6
Information in "/etc/lvmtab" differs from that in "/etc/lvmpvg".
Physical volume "/dev/disk/disk103" does not belong
to volume group "/dev/vgora02".
lvextend: Error detected when reading from file "/etc/lvmpvg".

So, How to check / solve (also how to update lvmtab? )


Paul Ettema.
Torsten.
Acclaimed Contributor

Re: lvextend: Not enough free physical extents available.

Each disk has 401PEs free, so you cannot extend to 800. 400 (effective) + 400 mirror is already 800.

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!   
Aneesh Mohan
Honored Contributor

Re: lvextend: Not enough free physical extents available.

Hi Paul

1)

#mv /etc/lvmtab /etc/lvmtab.old
#vgscan -N -v -- create lvmtab using Persistent Device file

If there are volume groups activated that are
using legacy DSFs, then vgscan will populate
/etc/lvmtab or /etc/lvmtab_p using legacy DSFs for those physical volumes.

--- OR -----------

2) Update lvmpvg with legacy device file

Aneesh