LVM and VxVM
cancel
Showing results for 
Search instead for 
Did you mean: 

lvextend: Not enough free physical extents available.

 
SOLVED
Go to solution
Indrajit Bhagat
Regular Advisor

lvextend: Not enough free physical extents available.

Need to Extend Volume:

 

abcd:/root#lvdisplay -v /dev/vgprod1/sldapplv|more

--- Logical volumes ---

LV Name                     /dev/vgprod1/sldapplv

VG Name                     /dev/vgprod1

LV Permission               read/write

LV Status                   available/syncd

Mirror copies               1

Consistency Recovery        MWC

Schedule                    parallel

LV Size (Mbytes)            150000

Current LE                  9375

Allocated PE                18750

Stripes                     0

Stripe Size (Kbytes)        0

Bad block                   NONE

Allocation                  PVG-strict/distributed

IO Timeout (Seconds)        default

 

   --- Distribution of logical volume ---

   PV Name            LE on PV  PE on PV

   /dev/dsk/c10t0d0   2344      2344

   /dev/dsk/c10t0d1   2344      2344

   /dev/dsk/c10t0d2   2344      2344

   /dev/dsk/c10t0d3   2343      2343

   /dev/dsk/c12t0d0   2344      2344

   /dev/dsk/c12t0d1   2344      2344

   /dev/dsk/c12t0d2   2344      2344

   /dev/dsk/c12t0d3   2343      2343

 

 

There is free space in Disk:

aukbarah:/root#vgdisplay -v /dev/vgprod1|grep -e"VG Status" -e "PV Name" -e "Free PE"
VG Status                   available, exclusive
Free PE                     27502
   PV Name                     /dev/dsk/c10t0d0
   PV Name                     /dev/dsk/c4t0d0  Alternate Link
   Free PE                     1113
   PV Name                     /dev/dsk/c10t0d1
   PV Name                     /dev/dsk/c4t0d1  Alternate Link
   Free PE                     1113
   PV Name                     /dev/dsk/c10t0d2
   PV Name                     /dev/dsk/c4t0d2  Alternate Link
   Free PE                     1113
   PV Name                     /dev/dsk/c10t0d3
   PV Name                     /dev/dsk/c4t0d3  Alternate Link
   Free PE                     1115

   PV Name                     /dev/dsk/c12t0d0
   PV Name                     /dev/dsk/c6t0d0  Alternate Link
   Free PE                     1113
   PV Name                     /dev/dsk/c12t0d1
   PV Name                     /dev/dsk/c6t0d1  Alternate Link
   Free PE                     1113
   PV Name                     /dev/dsk/c12t0d2
   PV Name                     /dev/dsk/c6t0d2  Alternate Link
   Free PE                     1113
   PV Name                     /dev/dsk/c12t0d3
   PV Name                     /dev/dsk/c6t0d3  Alternate Link
   Free PE                     1115

 

 

Even we tried to increase with 1 PE, it is not extending.

 

lvextend -L  150016 /dev/vgprod1/sldapplv /dev/dsk/c10t0d0 /dev/dsk/c10t0d1 /dev/dsk/c10t0d2 /dev/dsk/c10t0d3 /dev/dsk/c12t0d0 /dev/dsk/c12t0d1 /dev/dsk/c12t0d2 /dev/dsk/c12t0d3

lvextend: Not enough free physical extents available.

Logical volume "/dev/vgprod1/sldapplv" could not be extended.

 

 

On Host abcd:

/etc/lvmpvg file is of 0 byte, which is not contaning any entry of PVG group

 

On Failover host xyz:

/etc/lvmpvg contains entry of few PVG group, but not of above all disk.

 

 

Please suggest where would be the mistake?

 

5 REPLIES 5
Torsten.
Acclaimed Contributor

Re: lvextend: Not enough free physical extents available.

Because the allocation is pvg-strict I would first create a lvmpvg file that matches the current configuration, then do

 

lvextend -L  150016 /dev/vgprod1/sldapplv


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!   
Indrajit Bhagat
Regular Advisor

Re: lvextend: Not enough free physical extents available.

Hi Torsten,

 

I had created the lvmpvg file on hostA and extended the Logical Volume, do I still need to created the relavant lvmpvg file entry on HostB.

Torsten.
Acclaimed Contributor
Solution

Re: lvextend: Not enough free physical extents available.

No need, but good practice.

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!   
Patrick Wallek
Honored Contributor

Re: lvextend: Not enough free physical extents available.

If you don't care about the PVG-strict allocation that can be changed with the 'lvchange' command and the '-s' option.

 

lvchange -s y /dev/vgprod1/sldapplv

 

will change it so it is just a 'strict' allocation policy rather than PVG-strict.

 

I agree that since it was PVG-strict the best solution is to create the /etc/lvmpvg file.

 

 

Highlighted
Torsten.
Acclaimed Contributor

Re: lvextend: Not enough free physical extents available.

but since this is distributed AND mirrored, you should NOT change anything!

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!