1833888 Members
1954 Online
110063 Solutions
New Discussion

LVM

 
Ramchandra Pawar
Occasional Contributor

LVM

Cannot reduce a LV
Erorr Message is as follows -
lvreduce: "LogicalExtentNumber" is not smaller than current setting;
therefore no logical extents are removed.
9 REPLIES 9
melvyn burnard
Honored Contributor

Re: LVM

and what is trhe commadn string you are using?
And how big is the LV currently?
Looks like you have told it to reduce to a number that is larger than it currently is.
My house is the bank's, my money the wife's, But my opinions belong to me, not HP!
Oviwan
Honored Contributor

Re: LVM

hey

poste lvdisplay and your lvreduce command

Regards
Sajjad Sahir
Honored Contributor

Re: LVM

give complete details lvdisplay and lvreduce
then only peoples will get sound idea regardign u thread
Rasheed Tamton
Honored Contributor

Re: LVM

Do you have onlineJFS installed.
What options of lvreduce you used. Please note sometimes (-l and -L) confuse some people. So, make sure you are using the correct options.

Always, make backup when you do lvreduce. There is a good chance you will lose the data if you do not plan it well.
Ramchandra Pawar
Occasional Contributor

Re: LVM

Below is the lvdisplay and the command lvreduce which I am using

We are not using onlineJFS

# lvdisplay /dev/vg00/lvol9
--- Logical volumes ---
LV Name /dev/vg00/lvol9
VG Name /dev/vg00
LV Permission read/write
LV Status available/syncd
Mirror copies 0
Consistency Recovery MWC
Schedule parallel
LV Size (Mbytes) 4000
Current LE 125
Allocated PE 125
Stripes 0
Stripe Size (Kbytes) 0
Bad block on
Allocation strict
IO Timeout (Seconds) default

#
# lvreduce -l 3200 /dev/vg00/lvol9
lvreduce: "LogicalExtentNumber" is not smaller than current setting;
therefore no logical extents are removed.
#
#
#
Robert-Jan Goossens
Honored Contributor

Re: LVM

try

lvreduce -L 3200 /dev/vg00/lvol9

-L MB

Regards,
Robert-Jan
Oviwan
Honored Contributor

Re: LVM

LV Size (Mbytes) 4000 <-- -L
Current LE 125 <-- -l

with -l 3200 you would say 3200 Mbytes? for this you must use -L. with -l you choose the logicalextentnumber and this is 125.

this should work:
$lvreduce -L 3200 /dev/vg00/lvol9

for more infos check lvreduce manpage

Regards
Sajjad Sahir
Honored Contributor

Re: LVM

command u are given is wrong not small l
but L u have to give then it will
work.
l means logical extends
L means size of the logical volume in MB

lvreduce -L 3200 /dev/vg00/lvol9

Rasheed Tamton
Honored Contributor

Re: LVM

Your lvdisplay output shows LV size is
4000MB

LV Size (Mbytes) 4000

If you want to reduce it to 3200MB
then
you have to use
lvreduce -L 3200 /dev/vg00/lvol9

By using (-l small el) you are saying make the new size to 3200 logical extents. Note that your Current LE is 125 (lvdisplay). So you actually is saying increase from 125 to 3200 LEs instead of reducing.

Your current size 4000MB
Current LE 125
(4000/125 = 32)

how do u see the actual size?
vgdisplay vg00|grep "PE Size"

If you multiply 3200 with your logical extent size which is 32.

3200 * 32 = 102400 MB - which is not correct and possible - that is why you get the error message.