1829304 Members
2398 Online
109989 Solutions
New Discussion

lvextend problem

 
SOLVED
Go to solution
rajesh73_1
Frequent Advisor

lvextend problem

Hi

I have extend logical volume

VG Name /dev/testvg01
VG Write Access read/write
VG Status available
Max LV 255
Cur LV 4
Open LV 4
Max PV 16
Cur PV 1
Act PV 1
Max PE per PV 3199
VGDA 2
PE Size (Mbytes) 32
Total PE 3199
Alloc PE 2528
Free PE 671
Total PVG 0
Total Spare PVs 0
Total Spare PVs in use 0

/dev/testvg01/lvol1 24117248 21438332 2637064 89% /test
i have to increase 5gb to /dev/testvg01/lvol1

I have tried this command

#lvextend -L 900 /dev/testvg01/lvol1
Warning: rounding up logical volume size to extent boundary at size "928" MB.
lvextend: "LogicalExtentsNumber" is not bigger than current setting.

ps suggest any one urgent
7 REPLIES 7
Torsten.
Acclaimed Contributor
Solution

Re: lvextend problem

You need to specify the total size at the end with lvextend, not "increase by".

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!   
Matti_Kurkela
Honored Contributor

Re: lvextend problem

"lvextend -L 900 /dev/testvg01/lvol1" means "increase the size of /dev/testvg01/lvol1 to 900 MB".

The upper-case option "-L" specifies the new size in megabytes; the lower-case "-l" specifies the new size as a number of extents.

Your "bdf" output indicates the LV is already bigger than that (its current size is about 24 000 MB), so your command makes no sense.

First lvextend tells you it must round the value 900 MB to the nearest multiple of 32 MB (the PE size), then it notices the problem (you're asking to make the LV smaller than it already is) and stops before doing anything.

I guess you wanted "lvextend -l 900 /dev/testvg01/lvol1"?

MK
MK
Vijaykumar_1
Valued Contributor

Re: lvextend problem

If you want to increase the size by 5 Gb then,

lvextend -L 5120 /dev/testvg01/lvol1

Provided you have space in the VG.

-L specifies the resultant LV size in MB
rajesh73_1
Frequent Advisor

Re: lvextend problem

Hi sorry

I have done one mistake

i have lvextend -L 900 /dev/testvg01/lvol1
given pv size but normally we given byttes size know! that is the problem

after i given below command

#lvextend -L 28672 /dev/testvg01/lvol1Logical volume "/dev/vg00/lvol6" has been successfully extended.
Volume Group configuration for /dev/testvg has been saved in /etc/lvmconf/vg00.con

before this is 23gb now i extend 28gb

now lvextended

i sorry
thanku for all helping
Deepankar Panda
Advisor

Re: lvextend problem

try this...
#lvextend -L 5120 /dev/testvgo1/lvol1

or else if you want do do in extent no level
#lventend -l 160 /dev/testvgo1/lvol1..

i hope this will work out and make your LV as 5GB
& dont forget to increase the file system too...
Deepankar Panda
Advisor

Re: lvextend problem

well done Rajesh... mistakes provide exposure to learn more... cheers
rajesh73_1
Frequent Advisor

Re: lvextend problem

thank u for all