[CentOS] LVM

Mon Mar 19 15:56:48 UTC 2012
Gordon Messmer <yinyang at eburg.com>

On 03/18/2012 10:34 AM, madunix at gmail.com wrote:
> I need to shrink /home(755G) to 150GB and use free space to add to the
> existing /(50G).
...
> Need to have the step, can this be done online or need to go offline
> (umount) the file systems.

To shink an ext3 filesystem, it'll have to be offline.

Start by identifying and terminating any applications with files open on 
/home using "fuser -vm /home/".

Once there are no open files, you can unmount the filesystem and use 
"fsadm resize /dev/mapper/vg_web-lv_home755G 150G" to shrink the filesystem.