1752794 Members
5958 Online
108789 Solutions
New Discussion юеВ

lvextend error

 
SOLVED
Go to solution
arkie
Super Advisor

lvextend error

Hi All,

I am trying to extend an LV (/dev/vgqs_sapdata/sapdata) but getting the following message:-

lvextend -L 229264 /dev/vgqs_sapdata/sapdata
Warning: rounding up logical volume size to extent boundary at size "229280" MB for striping.
lvextend: Not enough free physical extents available.
Logical volume "/dev/vgqs_sapdata/sapdata" could not be extended.
Failure possibly caused by strict allocation policy

There are 4094 Free PEs available also (which I have just allocated from storage). vgdisplay output is given below:-

root@qx01smx:/>vgdisplay /dev/vgqs_sapdata
--- Volume groups ---
VG Name /dev/vgqs_sapdata
VG Write Access read/write
VG Status available
Max LV 255
Cur LV 1
Open LV 1
Max PV 255
Cur PV 14
Act PV 14
Max PE per PV 2048
VGDA 28
PE Size (Mbytes) 8
Total PE 28658
Alloc PE 24564
Free PE 4094
Total PVG 0
Total Spare PVs 0
Total Spare PVs in use 0
VG Version 1.0.0

What might be the problem?

Pl extend your help
21 REPLIES 21
stephen peng
Valued Contributor

Re: lvextend error

post lvdisplay -v /dev/vgqs_sapdata/sapdata. I just wondering whether the lv was mirrored and the actual size of the lv was not 196512m before.
stephen peng
Valued Contributor

Re: lvextend error

maybe you've got lv sapdata mirrored, so you could not extend the lv size by allocating the space using by mirrored copy.
stephen peng
Valued Contributor

Re: lvextend error

and please do not post all the lvdisplay -v output, it would be so huge, just two pages.
singh sanjeev
Trusted Contributor
Solution

Re: lvextend error

Post the Lvdisplay -v ,information, it will provide us the more info to look at LVM struacture..like strict/pv-strict or distrubuted logic is used.

Sanjeev Singh
Aneesh Mohan
Honored Contributor

Re: lvextend error

Hi,


You have only total free PE 32752 MB and you are trying to allocate 229280 MB , ofcourse you have tried to allocated more than what you are avilable with.

Reduce the LV size < 32752 MB


Aneesh
R.K. #
Honored Contributor

Re: lvextend error

Hi Arkie,

>> lvextend -L 229264 /dev/vgqs_sapdata/sapdata

>> lvextend: Not enough free physical extents available.


>> PE Size (Mbytes) 8
>> Free PE 4094

As said..
You have only 4094*8 = 32752Mb free
So you have only about 32 Gb free in your VG..and you are trying to extend it to 229Gb....need to extend the VG...add a disk/lun, then proceed.
Don't fix what ain't broke
arkie
Super Advisor

Re: lvextend error

Hi Everyone,

root@qx01smx:/>lvdisplay /dev/vgqs_sapdata/sapdata
--- Logical volumes ---
LV Name /dev/vgqs_sapdata/sapdata
VG Name /dev/vgqs_sapdata
LV Permission read/write
LV Status available/syncd
Mirror copies 0
Consistency Recovery MWC
Schedule striped
LV Size (Mbytes) 196512
Current LE 24564
Allocated PE 24564
Stripes 4
Stripe Size (Kbytes) 4096
Bad block on
Allocation strict
IO Timeout (Seconds) default

Sorry, I wont be able to post the 'lvdisplay -v /dev/vgqs_sapdata/sapdata' anymore, as the LV has been extended.

Here, I would request your inputs:-

Initially 2 LDEVs were allocated and I was trying to `lvextend` with them and it was not happening. (NB: the vg got extended). Later, observing the `strict allocation policy` violation, checked the above 'lvdisplay' output and marked the following:-
...
Stripes 4
...
Allocation strict

So, I tried by allocating 2 more LDEVs from the XP12k - extended the VG vgqs_sapdata with the same. And this time `lvextend` worked.

I would like to gather your inputs on this - Is what was done correct?

Where can I learn about the various allocation policies?
arkie
Super Advisor

Re: lvextend error

Someone pls help me with this...

Could this LVOL have been created with something like :-

lvcreate -s y -i 4 -d p -n sapdata /dev/vgqs_sapdata

I am trying to figure out how the LVOL was created... as this is the first i faced such a situation. This is my understanding - have to assign new disks in groups of 4, if we have to add space (after consuming all allocated PEs)

Will appreciate inputs very much
stephen peng
Valued Contributor

Re: lvextend error

post vgdisplay -v vgqs_sapdata.
why you could not post lvdisplay -v /dev/vgqs_sapdata/sapdata when it was extended?