1. To shrink or reduce a logical volume by resizing the filesystem on the device. See the /ResizeXFS and /ResizeReiserFS pages for details.

  2. To shrink a logical volume, use the lvreduce command. This example shrinks the logical volume media in the volume group data by 65GB:

 tony@omega:~$ sudo lvreduce -L -65G data/media
Password:
{{{
  WARNING: Reducing active logical volume to 458.96 GB
  THIS MAY DESTROY YOUR DATA (filesystem etc.)
Do you really want to reduce media? [y/n]: y
  Reducing logical volume media to 458.96 GB
  Logical volume media successfully resized

}}}

  1. To expand or grow a logical volume, use the lvextend command. This example extends the logical volume media in the volume group data by 65GB:

tony@omega:~$ sudo lvextend -L +65G data/media
  Extending logical volume media to 100.00 GB
  Logical volume media successfully resized
  1. The filesystem on the logical volume must then be expanded to make use of the extra space on the device. See the /ResizeXFS and /ResizeReiserFS pages for details.

LogicalVolumeManagement/ResizingDevices (last edited 2006-10-14 07:15:30 by 81)