1834093 Members
2398 Online
110063 Solutions
New Discussion

Re: LV Size limits

 
Marco Santerre
Honored Contributor

LV Size limits

Hello everyone,

It must be Monday! I can't seem to figure this one out. This weekend I've added a couple of disks in one of my VGs. But for some reason whenever I try to extend the LV, it won't let me. All it keeps saying is "Not enough free PE available. I've tried some searches but came up empty handed so far..

The command I'm issuing is
lvextend -l 13042 /dev/vgdbPRD_4/lvdata2 /dev/dsk/c58t3d1

The answer I'm getting is
lvextend: Not enough free physical extents available.
Logical Volume "/dev/vgdbPRD_4/lvdata2" could not be extended.

I'm sure this has to do with some physical limitation of my VG or LV, but I can't seem to find the answer.

Thanks
Cooperation is doing with a smile what you have to do anyhow.
9 REPLIES 9
Jeff Schussele
Honored Contributor

Re: LV Size limits

Hi Marco,

What is the extent size in that VG/LV?

Why don't you use -L & give the new size in MB?
Then you don't have to remember the extent size.

Rgds,
Jeff
PERSEVERANCE -- Remember, whatever does not kill you only makes you stronger!
A. Clay Stephenson
Acclaimed Contributor

Re: LV Size limits

I am going to make the assumption that you do, in fact, have enough free extents IN TOTAL on the VG to perform the operation. That being the case, the most likely problem is lack of enough free extents to allocate additional spacer and to make certain no mirror extents share a common physical volume. You are probably dealing with physical extent allocation policy issues.
If it ain't broke, I can fix that.
Marco Santerre
Honored Contributor

Re: LV Size limits

ooops! I wante dto attach this and forgot..

PE Size is 4 Mg
Cooperation is doing with a smile what you have to do anyhow.
Hazem Mahmoud_3
Respected Contributor

Re: LV Size limits

Well, it seems that the answer is in your vgdisplay output. There are 8,628 Free PE, while you are trying to expand it by 13,042. Try with something like 8,600 or like what was suggested before, use MB (with -L) instead. It's easier that way:)

-Hazem
Jeff Schussele
Honored Contributor

Re: LV Size limits

Hi (again) Marco,

An lvdisplay -v on that LV would be useful.

Jeff
PERSEVERANCE -- Remember, whatever does not kill you only makes you stronger!
Jeff Schussele
Honored Contributor

Re: LV Size limits

Hi Hazem,

Nope - the -l is the new *total* extents & just has to be larger than current & with his free count of 8K the ~5K addition *should* fit.

Rgds,
Jeff
PERSEVERANCE -- Remember, whatever does not kill you only makes you stronger!
Marco Santerre
Honored Contributor

Re: LV Size limits

Sorry guys,

without knowing it I steered you in the wrong direction.. it's just me not able to use the calculator on Windows, thinking it'd be faster by hand. I added a one when it wasn't needed. everything works fine now that I'm using -l 12942 instead of 13042.

Thanks guys..

P.S. lvdisplay was at the bottom of the vg display.
Cooperation is doing with a smile what you have to do anyhow.
Jeff Schussele
Honored Contributor

Re: LV Size limits

Ooops - sorry - scrolled right by it.
Glad you solved it - now give yourself a bunny.

Cheers,
Jeff
PERSEVERANCE -- Remember, whatever does not kill you only makes you stronger!
Hazem Mahmoud_3
Respected Contributor

Re: LV Size limits

You're right about that Jeff, thanks for correcting me. It works the same way for the -L option where you specify the total MB you want and not the increment. I wasn't thinking straight. Looks like the Monday symptoms are hitting me too:)
Glad to hear you figured it out Marco!

-Hazem (no points for this post please)