1753534 Members
6000 Online
108795 Solutions
New Discussion юеВ

error when extend lvol

 
SOLVED
Go to solution
Alberto Hurtado
Frequent Advisor

error when extend lvol

Hi to all. please if somebody cans help me with this error when i was trying extend an lvol.
913:/ => lvextend -L 94864 /dev/vg05/lvol1
lvextend: Not enough free physical extents available.
Logical volume "/dev/vg05/lvol1" could not be extended.
Failure possibly caused by strict allocation policy

7 REPLIES 7
Steven E. Protter
Exalted Contributor

Re: error when extend lvol

pvdisplay -v the disk, or vgdisplay -v the volume group.

There may simply not be enough space in the volume group.

What also might have happened is that logical volume lvol1 has strict allocation set.

This means to extend it, there must be contiguous space, right on the end of the lvol.

If this is not the case, you can rebuild the volume group or:

lvchange -C n /dev/vg05/lvol1

This will turn off the struck allocation policy.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Alberto Hurtado
Frequent Advisor

Re: error when extend lvol

here are displays of lvol and volumegroup:

913:/dev/vg05 => vgdisplay /dev/vg05
--- Volume groups ---
VG Name /dev/vg05
VG Write Access read/write
VG Status available
Max LV 255
Cur LV 2
Open LV 2
Max PV 50
Cur PV 21
Act PV 21
Max PE per PV 6144
VGDA 42
PE Size (Mbytes) 4
Total PE 23716
Alloc PE 22638
Free PE 1078
Total PVG 0
Total Spare PVs 0
Total Spare PVs in use 0

913:/dev/vg05 => lvdisplay /dev/vg05/lvol1
--- Logical volumes ---
LV Name /dev/vg05/lvol1
VG Name /dev/vg05
LV Permission read/write
LV Status available/syncd
Mirror copies 0
Consistency Recovery MWC
Schedule parallel
LV Size (Mbytes) 90052
Current LE 22513
Allocated PE 22513
Stripes 0
Stripe Size (Kbytes) 0
Bad block on
Allocation strict
IO Timeout (Seconds) default
Rajeev  Shukla
Honored Contributor

Re: error when extend lvol

That shows you dont have 9.4GB disk space left in the VG05 where you are creating the lvol
Can you have a look at vgdisplay /dev/vg05 and see how much free physical extents you have or post it over here
malay boy
Trusted Contributor

Re: error when extend lvol

Hi,
You have set you LV to be strcit allocation meaning you need a free continous space to expand.It's not adviceable to change this allocation policy.I think lvchange can do but I won't recommend.

regards
mB
There are three person in my team-Me ,myself and I.
Rajeev  Shukla
Honored Contributor
Solution

Re: error when extend lvol

There you are that answers
look at
Free PE 1078 which means you have only 1078x4 = 4312MB space leftin the VG and you are trying to extend the lvol by 4812MB, hope that answers
Rajeev  Shukla
Honored Contributor

Re: error when extend lvol

So you need to either add one more disk to the VG or extend the LV only to 94364MB so use this command
lvextend -L 94364 /dev/vg05/lvol1
that will work
Steven E. Protter
Exalted Contributor

Re: error when extend lvol

If this is for say an oracle database don't change the allocation policy as I showed you.

some unrelated reading.
http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=140137

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com