FortiClient
FortiClient proactively defends against advanced attacks. Its tight integration with the Security Fabric enables policy-based automation to contain threats and control outbreaks. FortiClient is compatible with Fabric-Ready partners to further strengthen enterprises’ security posture.
MZBZ
Staff
Staff
Article Id 357593
Description

This article explains how to increase free disk space on a Linux system running FortiClient EMS on Ubuntu 22.04 LTS. One scenario where this guide is useful is when the error message 'Failed to create Deployment Package: Not enough disk space' appears in the EMS WebUI during the creation of an installer.

 

This error is often due to the system not having sufficient resources allocated during the initial creation and installation of the virtual machine.

Scope FortiClient EMS on Ubuntu 22.04 LTS.
Solution

As a general rule, it is crucial to have a healthy recoverable backup (either as full disk or as VM snapshots) of the server before proceeding with these changes.

 

To increase root disk size of the original OVF VM image (EMS 7.4.1), start directly from step 4. If the virtual disk space is increased (changing the VM settings e.g. to 200GB disk), start from step 1. Step 1 forces the Linux kernel to rescan and read the updated disk size, which makes it possible to increase the disk size without a reboot.

 

  1. Force a disk rescan on the Kernel: (Must be done from root shell by sudo -s or sudo -i)

 

echo 1>/sys/class/block/sda/device/rescan

 

  1. Use cfdisk or growpart to expand sda3 partition (or any other partition needed. name can be found by lsblk command) and use unallocated space. The growpart allocates all possible free space by default. cfdisk has a TUI environment that allows custom allocation of the available free space.

 

sudo cfdisk

or

sudo growpart /dev/sda 3 <- There should be a space between sda and 3!

 

When the tool opens, select sda3, then use the Resize function, and do not forget to write before quitting.

  1. Make sure the new partition size is applied for sda3:

 

sudo lsblk

 

  1. Increase the PV (Physical Volume) size:

sudo pvresize /dev/sda3

 

  1. Extend the LV (Logical Volume) size to 100%FREE space:

sudo lvextend -l +100%FREE /dev/mapper/ubuntu--vg-ubuntu--lv

 

  1. Expand the EXT4 filesystem:

 

sudo resize2fs /dev/mapper/ubuntu--vg-ubuntu--lv

 

  1. Confirm the free disk space:

 

df -Th

 

  1. Reboot and ensure the system is bootable and the changes are applied after the reboot by running df -Th again.

References for more information on Logical Volume Management (LVM):

 

FortiClient EMS 7.4 (Linux-based) system requirements: