1833055 Members
2494 Online
110049 Solutions
New Discussion

increse size of lv

 
sachit patil
Regular Advisor

increse size of lv

hi guys i wann increse size of lvm .But lvm size is 2000mb .i wann add to 92mb .that give lvm size in not increasing . so pls help me to increse size . it is giving error logical extended number is not bigger than current settings
7 REPLIES 7
Arunvijai_4
Honored Contributor

Re: increse size of lv

Hi Sachit,

Do you want to increase size of a LV ? If you have installed OnlineJFS, you can do it online,

# swlist -l product|grep -i online

and use "fsadm" command to increase size of a LV.

-Arun
"A ship in the harbor is safe, but that is not what ships are built for"
sachit patil
Regular Advisor

Re: increse size of lv

hi arun
i am using i didn't hv jfs . iam using vxfs .
Arunvijai_4
Honored Contributor

Re: increse size of lv

Hi Sachit,

Since you don't have OnlineJFS,

# umount /dev/vg00/lvolx
# extendfs /dev/vg00/rlvolx
# mount /dev/vg00/lvolx

-Arun

P.S Remember to assign points.

"A ship in the harbor is safe, but that is not what ships are built for"
Bill Hassell
Honored Contributor

Re: increse size of lv

Increasing the size of an lvol is separate from increasing a filesystem. You increase the lvol with lvextend. Note that the size (-L or -l) is the new size, not the amount to increase. So -L 92 will fail because the new size would be 92, not 2092. Use lvextend -L 2092 ...

Once extended, if there is a filesystem, you'll need to umount the filesystem, use extendfs and then mount the filesystem. If you have the extra cost product called Online JFS, you can extend the filesystem without unmounting it.


Bill Hassell, sysadmin
Shahul
Esteemed Contributor

Re: increse size of lv

Here you go,

If you do not have Online JFS, follow below steps.

1. Unmount the filesystem
#umount /filesystem

2. Extend the logical volume (Remember the final size is considered as 2092MB)
#lvextend -L 2092 /dev/vgxx/lvolxx

3. Extend filesystem (Remember to use raw device file, ie. rlovolxx)
#extendfs /dev/vgxx/rlvolxx

4. Mount filesystem
#mount /filesystem

If you do have Online JFS, follow below steps.

1. Extend logical volume,
#lvextend -L 2092 /dev/vgxx/lvolxx

2. Extend filesystem (Remember it uses /etc/default/fs as the default filesystem)
#fsadm -b 2092M /filesystem


Hope this helps,

Best of luck
Shahul
Senthil Kumar .A_1
Honored Contributor

Re: increse size of lv

Hi Sachit,

The error "logical extended number is not bigger than current settings " is due to the wrong usage of lvextend command.

Here is the explaination. You informed us that the LV is 2000MB. let it be lvol6.To get the above error I guess you would have tyoed the following..

lvextend -L 92 /dev/vg00/lvol6

since 92 is less than 2000, hence the error message.

Please rember "lvextend" takes the final size(2092) and not difference in increase (92).

Your command to succeed should be...

lvextend -L 2092 /dev/vg00/lvol6


Regards,
Senthil Kumar .A
Let your effort be such, the very words to define it, by a layman - would sound like a "POETRY" ;)
sachit patil
Regular Advisor

Re: increse size of lv

thanks
I got solved problem from ur information . thanks for all