Operating System - HP-UX
1832864 Members
2917 Online
110048 Solutions
New Discussion

Re: lvextents number is not bigger than current setting

 
SOLVED
Go to solution
khilari
Regular Advisor

lvextents number is not bigger than current setting

Hi guys, i was increasing the size of an lv. And i used lvextend and got the error.lvextents number is not bigger than current setting.
i am using lvextend -L 8192 /dev/vgname/lvname
when i do vgdisplay i get
free PE=595
PE SIZE=16
that means i have over 9 gigs of space.. Max PE per PV is 3474...
wHAT Do u guys think is happening here.. I have online jfs....
4 REPLIES 4
James R. Ferguson
Acclaimed Contributor

Re: lvextents number is not bigger than current setting

Hi:

If the *current* size of the logical volume isn't smaller than 8192 megabytes, you will get this message. The '-L' argument is a specification in megabytes. The '-l' argument is a specification in logical extents. The new value of either must be larger than the old value.

Regards!

...JRF...
Mridul Shrivastava
Honored Contributor

Re: lvextents number is not bigger than current setting

while executing the command the value needs to be specified is the new value,i e the new LV size which its going to have not the value by which you want to increase the LV.

So this error message is ur current LV size is equal or more than to 8192 bytes, hence you are getting this message.

Check the current LV size and then extend it accordingly.

In lvdisplay o/p for this LV Check for the "LV Size (Mbytes)"
Time has a wonderful way of weeding out the trivial
Khairy
Esteemed Contributor
Solution

Re: lvextents number is not bigger than current setting

hi,

lvextend with -L must be use with new lv size.

examples to increase from 1gb to 2gb logical volume:
# lvextend -L 2000M /dev/vg01/lvol2
# extendfs -F vxfs /dev/vg01/rlvol2

if you have online jfs, it would much simpler
# fsadm -F vxfs -b

eg: increase to 2gb for /data fs
# fsadm -F vxfs -b 4194304 /data

appreciate if you cld assign some points if this answer your question, thanks!
Michael Steele_2
Honored Contributor

Re: lvextents number is not bigger than current setting

Simpler than that. MAX_PE * PE_SIZE, or, 16 mg * 3474 = 55584 mb / 56 GB total space available on the disk.

Additionally, 9 GB / 16 MB = ~576. Close enough. Its never exact. So 9 GB is correct.

So, as pointed out above, use lvextend -L 57344 /dev/vg01/lvol1 /dev/dsk/cXtXdX (* all 56 GB *), -or- lvextend -l 3474. Same difference.
Support Fatherhood - Stop Family Law