wiki:Admin/StandardOperatingProcedures/GrowFileSystem

Version 1 (modified by Mikael Brandström Durling, 13 years ago) (diff)

--

Increase file system size on Linux server

Filesystems residing in the logical volume manager can easily be grown, as long as there is free space in the volume group.

  1. Log in to the machine which has the data
  2. Run sudo vgdisplay -C to check that there is free space in the volume group
  3. Run sudo lvextend -L +nnnG /dev/vg1/volume_name to grow the logical volume
  4. Run sudo resize2fs /dev/vg1/volume_name to grow the filesystem in order to make the additional space available.

To list volumes and their sizes within a volume group use sudo lvdisplay -C vg1