[linux-lvm] How to increase/decrease space
NHELM2 at kumc.edu
Thu Dec 16 21:20:07 UTC 2004
>>> AdabalaP at schneider.com 12/16/04 2:05 PM >>>
>Thanks Nicoya. I was successfully able to increase the size of the
>file system, By using "resize2fs" command.
>Now, that i am able to increase the FS size, how do i go about
>FS size with out the data loss, especially with "/" file system ?
That part I don't have experience with, but obviously the first step is
to reduce the amount of actual data on the FS so that it is less than
the size you want to shrink it to. If you are using LVM 1, you can use
e2fsadm to shrink the LV and the FS in one step, but there is no e2fsadm
for LVM2 . For LVM 2 you have to do the 2-step resize2fs and lvreduce
as described in this post to another list:
>While increasing the space on a LV, Do i need to do lvresize,
>resize2fs or just lvextend and resize2fs ?
You should only need to do lvresize _or_ lvextend, then resize2fs.
Project Manager, Network Services
University of Kansas Medical Center
nhelm2 at kumc.edu
More information about the linux-lvm