lvextend: Not enough free physical extents available
Web Server forum
Back To The Forum Home!Search!Private Messaging System

Web Server Talk Web Server Talk > Unix and Linux reviews > Free Unix support > Unix administration > lvextend: Not enough free physical extents available




  Last Thread   Next Thread Next
  Show Printable Version Email this Page Subscribe to this Thread      Post New Thread    Post A Reply      

    lvextend: Not enough free physical extents available  
yls177


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
01-04-05 07:47 AM

with sam, i could not increase the size of the logical volume with the
error message as belows

lvextend: Not enough free physical extents available. Logical volume
"/dev/vg00/lvol6" could not be extended.  Failure possibly caused by
strict allocation policy.



strict allocation policy means "Mirrors of a logical extent cannot
share the same physical volume."


Based on the information below, my volume group has 2 disks. Also my
logical volume has a mirror copy. Now, i have free space of (163*8) in
the volume group for increasing size in sam but has failed. I can
removed existing logical volumes in this volume group. But will this
help?



# vgdisplay -v vg00
--- Volume groups ---
VG Name                     /dev/vg00
Cur PV                      2
Act PV                      2
Max PE per PV               4350
VGDA                        4
PE Size (Mbytes)            8
Total PE                    8680
Alloc PE                    8517
Free PE                     163
Total PVG                   0
Total Spare PVs             0
Total Spare PVs in use      0


# lvdisplay -v /dev/vg00/lvol6
--- Logical volumes ---
LV Name                     /dev/vg00/lvol6
VG Name                     /dev/vg00
Current LE                  107
Allocated PE                214
Mirror copies               1


lvdisplay -v /dev/vg00/lvol6
the current logical volume has the below info
--- Distribution of logical volume ---
PV Name            LE on PV  PE on PV
/dev/dsk/c1t2d0    107       107
/dev/dsk/c2t2d0    107       107





[ Post a follow-up to this message ]



    Re: lvextend: Not enough free physical extents available  
Doug Freyburger


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
01-04-05 07:47 AM

Time to use pvdisplay on the two drives to see which one
has what logical volumes.  Basically you'll need to move
enough from the fuller drive to the emptierr drive that both
have at least half as much free space as you need so the
mirrors each can get the same amount of space.

What your vgdisplay missed is how many LVs and it is
clear that lvol6 isn't the only one in there: allocated PEs
of 8517 in the VG and only 214 in the LV.

So time to do some shuffling.  Maybe a small LV gets
mirrored then unmirrored to move it.  Maybe use pvmove
with switches to only move one LV to move one.  Maybe
even move a small number of PEs (using pvmove?).






[ Post a follow-up to this message ]



    Re: lvextend: Not enough free physical extents available  
Kevin Collins


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
01-04-05 10:59 PM

In article <c06e4d68.0501031905.321cdc8e@posting.google.com>, yls177 wrote:
> with sam, i could not increase the size of the logical volume with the
> error message as belows
>
> lvextend: Not enough free physical extents available. Logical volume
> "/dev/vg00/lvol6" could not be extended.  Failure possibly caused by
> strict allocation policy.
>
>
>
> strict allocation policy means "Mirrors of a logical extent cannot
> share the same physical volume."
>
>
> Based on the information below, my volume group has 2 disks. Also my
> logical volume has a mirror copy. Now, i have free space of (163*8) in
> the volume group for increasing size in sam but has failed. I can
> removed existing logical volumes in this volume group. But will this
> help?
>
>
>
> # vgdisplay -v vg00
> --- Volume groups ---
> VG Name                     /dev/vg00
> Cur PV                      2
> Act PV                      2
> Max PE per PV               4350
> VGDA                        4
> PE Size (Mbytes)            8
> Total PE                    8680
> Alloc PE                    8517
> Free PE                     163
^^^

With 2 disks in the VG, if all LVs are mirrored, this would be an even numbe
r
unless your disks are not the same size. Use 'pvdisplay' on each disk and ma
ke
sure there are free extents (Free PE) on each one. Since your LV is mirrored
and you have strict allocation (good!), the lvextend will need to allocate t
he
same amount of space on each disk.

> Total PVG                   0
> Total Spare PVs             0
> Total Spare PVs in use      0
>
>
> # lvdisplay -v /dev/vg00/lvol6
> --- Logical volumes ---
> LV Name                     /dev/vg00/lvol6
> VG Name                     /dev/vg00
> Current LE                  107
> Allocated PE                214
> Mirror copies               1
>
>
> lvdisplay -v /dev/vg00/lvol6
> the current logical volume has the below info
>    --- Distribution of logical volume ---
>    PV Name            LE on PV  PE on PV
>    /dev/dsk/c1t2d0    107       107
>    /dev/dsk/c2t2d0    107       107

Kevin





[ Post a follow-up to this message ]



    Re: lvextend: Not enough free physical extents available  
yls177


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
01-08-05 12:47 PM

yes, u are right. There are no free extents in one of my disks. Since
my vg has 2 disks and the allocation policy is strict. When i extend my
filesystem, it will create a miror copy on the other disks. This is the
reason why it fails.
I have resolved this by removing unnecessary lv in the disks which has
no free extents.

cheers

Kevin Collins wrote:
> In article <c06e4d68.0501031905.321cdc8e@posting.google.com>, yls177
wrote: 
the[vbcol=seagreen] 
volume[vbcol=seagreen] 
by[vbcol=seagreen] 
my[vbcol=seagreen] 
in[vbcol=seagreen] 
this[vbcol=seagreen] 
>                               ^^^
>
> With 2 disks in the VG, if all LVs are mirrored, this would be an
even number
> unless your disks are not the same size. Use 'pvdisplay' on each disk
and make
> sure there are free extents (Free PE) on each one. Since your LV is
mirrored
> and you have strict allocation (good!), the lvextend will need to
allocate the
> same amount of space on each disk.
> 
>
> Kevin






[ Post a follow-up to this message ]



    Sponsored Links  




 





   All times are GMT. The time now is 07:55 AM.      Post New Thread    Post A Reply      
  Last Thread   Next Thread Next


Most Popular forums 

Forum Jump:
Rate This Thread:

Forum Rules:
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is OFF
vB code is ON
Smilies are ON
[IMG] code is OFF
 
Medical and Health forum | Computer Games Reviews | Graphics design forum

Back To The Top
Home | Usercp | Faq | Register