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.
echo 1>/sys/class/block/sda/device/rescan
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.
sudo lsblk
sudo pvresize /dev/sda3
sudo lvextend -l +100%FREE /dev/mapper/ubuntu--vg-ubuntu--lv
sudo resize2fs /dev/mapper/ubuntu--vg-ubuntu--lv
df -Th
References for more information on Logical Volume Management (LVM):
FortiClient EMS 7.4 (Linux-based) system requirements: |