wiki:Admin/StandardOperatingProcedures/GrowFileSystem

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.

The my-gridfront case

my-gridfront is using the Linux iSCSI iitiator to mount iSCSI targets on mykonas6 and reexport these using NFSv4.

  1. Log on to mykonas6 and increase the size of the LUN for the iSCSI target used.
  2. Log on to my-gridfront and run sudo iscsiadm -m session -R to rescan the iSCSI target in order for the system to pick up the increase in volume size.
  3. Resize the multiparth device by running multipathd resize map NNNNNN
  4. Grow the filesystem by running sudo resize2fs /dev/mapper/NNNNNN where /dev/mapper/NNNN is replaced with the device corresponding to the filesystem you want to increase the size of. N.B. /export/home1 is not always mounted on /dev/sdc, it varies from boot to boot, check with df or mount. If using multi pathing, they will be found as /dev/mapper/something.

In the case of local disks on the machine using lvm2 ===

This is for example the case of my-mgrid and heterobasidion, as well as all my-mgridN machines.

  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

Last modified 5 years ago Last modified on Jan 1, 2019, 11:26:04 PM