1752800 Members
5505 Online
108789 Solutions
New Discussion юеВ

Re: lvextend command

 
SOLVED
Go to solution
Eli Daniel
Super Advisor

lvextend command

good moorning,
I have a problem running this command.

sback900:/> lvextend -L 3072 /dev/vg00/lvignite
lvextend: "LogicalExtentsNumber" is not bigger than current setting.

any suggestions?
8 REPLIES 8
Torsten.
Acclaimed Contributor
Solution

Re: lvextend command

You need to say

"extend to" but not
"extend by" ...

So increase the number (3072 + x) !

Hope this helps!
Regards
Torsten.

__________________________________________________
There are only 10 types of people in the world -
those who understand binary, and those who don't.

__________________________________________________
No support by private messages. Please ask the forum!

If you feel this was helpful please click the KUDOS! thumb below!   
Eli Daniel
Super Advisor

Re: lvextend command

hi torsten, I do not understand the argument.
R.O.
Esteemed Contributor

Re: lvextend command

Hi,

You are trying to "extend" a logical volume to a smaller size, which it is not possible. If you want to extend the lvol (increase its size) you have to put a bigger size than its current size. In the command "lvextend" the "-L SIZE" means the TOTAL size (its current size plus the amount of space you want to add)

Regards,
"When you look into an abyss, the abyss also looks into you"
Torsten.
Acclaimed Contributor

Re: lvextend command

Yes, if the size is currently "x", you need to specify "x+y=new total size" with lvextend:

lvextend -L ...

Hope this helps!
Regards
Torsten.

__________________________________________________
There are only 10 types of people in the world -
those who understand binary, and those who don't.

__________________________________________________
No support by private messages. Please ask the forum!

If you feel this was helpful please click the KUDOS! thumb below!   
Raj D.
Honored Contributor

Re: lvextend command

Daniel,

> lvextend -L 3072 /dev/vg00/lvignite
> LogicalExtentsNumber" is not bigger than current setting.

Seems your command to extend the FS is wrong, and not more than the current size of the LV.





Following to be check/done:
- What is the current size of the LV lvignite

# To check with :
# lvdisplay /dev/vg00/lvignite

Suppose 2GB



- What size you want to add more to it.
suppose 2GB. (Check free space on the vg as well)



- So your command will be:
# Syn# lvextend -L <(2GB+2GB)M> lvol_name
i.e
# lvextend -L 4096M /dev/vg00/lvignite



I Hope this helps,
Raj.
" If u think u can , If u think u cannot , - You are always Right . "
atul2701
Frequent Advisor

Re: lvextend command

you need to use below command

lvextend -L (current size + how much you want to extend) < lv name>
Atul Gupta
Eli Daniel
Super Advisor

Re: lvextend command

really sorry, you are right.
Eli Daniel
Super Advisor

Re: lvextend command

thanks and sorry.