Technical Tip: Extending disk space
Description
This article describes how to add new virtual disks to extend the disk space in FortiMail VM.
Scope
FortiMail.
Solution
- Before extending the disk space, run the command 'get sys status' to check the current size of the FortiMail VM hard disk.
#get sys status Version: FortiMail-VM v6.4.3(GA), build437, 2020.10.15 Architecture: 64-bit Serial-Number: FEVM320000210901 BIOS version: n/a VM Registration: Valid: License has been successfully authenticated with registration servers. VM License File: License file and resources are valid. VM Resources: 1 CPU/32 allowed, 2003 MB RAM/131072 MB allowed, 249 GB Disk/24576 GB allowed Log disk: Capacity 49 GB, Used 32 MB (0.07%), Free 49 GB Mailbox disk: Capacity 198 GB, Used 309 MB (0.16%), Free 198 GB
- From the output above, FortiMail VM has a 250GB hard disk.
Note: Make sure the VM license can support the hard disk volume after extending the hard disk. For this example, the VM license is able to support up to 24576 GB.
- Back up the current configuration and all necessary data before proceeding. If the intention is to resize the log disk, it is necessary to back up all logs in an external Syslog server. These logs cannot be restored after the procedure so the logs could be lost.
- Shut down the FortiMail VM and add a new virtual disk of 200GB to FortiMail.

- After that, power on the FortiMail VM.
- Run the following command in FortiMail VM.
#exe lvm enable LVM is already enabled in this device #exe lvm extend This will stop all mail services and then extend log and spool devices, are you sure (Y/N)?y Fortimail will REBOOT !!
- The FortiMail hard disk has been successfully extended to 450 GB.
#sys status Version: FortiMail-VM v6.4.3(GA), build437, 2020.10.15 Architecture: 64-bit Serial-Number: FEVM320000210901 BIOS version: n/a VM Registration: Valid: License has been successfully authenticated with registration servers. VM License File: License file and resources are valid. VM Resources: 1 CPU/32 allowed, 2003 MB RAM/131072 MB allowed, 449 GB Disk/24576 GB allowed Log disk: Capacity 89 GB, Used 32 MB (0.04%), Free 89 GB Mailbox disk: Capacity 358 GB, Used 320 MB (0.09%), Free 358 GB