Operating System - HP-UX
1753626 Members
5402 Online
108797 Solutions
New Discussion юеВ

Re: "LogicalExtentsNumber" is not bigger than current setting

 
Tim Jaster
Advisor

"LogicalExtentsNumber" is not bigger than current setting

I've added another PV (5GB) to a volume group that has multiple logical volumes. I was able to increase the size of one of the logical volumes by 2GB, but when attempting to add 1GB to a different lvol, I received this error instead.

Any idea what's wrong?

The outputs of pvdisplay -v and lvdisplay are attached.

Thanks,
Tim
7 REPLIES 7
Tim Jaster
Advisor

Re: "LogicalExtentsNumber" is not bigger than current setting

I just realized that I posted the wrong lvol's lvdisplay. Please see the corrected attachment for lvol2...

Thanks,
Tim
Mark Grant
Honored Contributor

Re: "LogicalExtentsNumber" is not bigger than current setting

Looks OK to me are you sure you are remembering to add the number of LE's you are extending by to the existing number of LE's?
Never preceed any demonstration with anything more predictive than "watch this"
Jeff Schussele
Honored Contributor

Re: "LogicalExtentsNumber" is not bigger than current setting

Hi Tim,

In that command the LE # should be the new *total* # of LEs. So add old to new addition for the new total.

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

Re: "LogicalExtentsNumber" is not bigger than current setting

What was the exact command you used? Note that lvextend -l 500, for example, does not increase the current size by 500 extents but rather sets the total size to 500 extents. I suspect that you used a value to indicate an increase rather than the desired total size.
In general, the -L option is easier to use.
If it ain't broke, I can fix that.
Fabio Ettore
Honored Contributor

Re: "LogicalExtentsNumber" is not bigger than current setting

Hi Tim,

check this thread:

http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=184562

Phelix explains very well that message.

Best regards,
Ettore
WISH? IMPROVEMENT!
Marvin Strong
Honored Contributor

Re: "LogicalExtentsNumber" is not bigger than current setting

As the other have said.

if you want to add 1gb by LE you need to add 256 (per your vgdisplay) to the logical volume

lvextend -l $((1800 + 256)) /dev/vgp08/lvol2

if you wanted to do it by MB

lvextend -L $((7200 + 1024)) /dev/vgp08/lvol2


Tim Jaster
Advisor

Re: "LogicalExtentsNumber" is not bigger than current setting

I figured out the problem...

I was originally using sam to extend the lvol since it also automatically extends the file system associated with it (we're using Online JFS). I then tried from the command line and found that the source of the problem was that the file system's lost+found directory had been deleted (not by me), so the fsadm command was failing. By recreating it the directory, fsadm worked fine.

Thanks for the help,
Tim