|
Home > Archive > Unix administration > January 2005 > lvextend: Not enough free physical extents available
You are viewing an archived Text-only version of the thread.
To view this thread in it's original format and/or if you want to reply to
this thread please [click here]
| Author |
lvextend: Not enough free physical extents available
|
|
| yls177 2005-01-04, 2: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
| |
| Doug Freyburger 2005-01-04, 2: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?).
| |
| Kevin Collins 2005-01-04, 5: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 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.
> 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
| |
| yls177 2005-01-08, 7:47 am |
| 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
|
|
|
|
|