FortiMail
FortiMail provides advanced, multi-layer protection against the full spectrum of email-borne threats
cysaw
Staff
Staff
Article Id 195297
Description
This article explains how to add new virtual disk to extend the disk space to FortiMail-VM log disk only. 

Solution
1) Before extending the disk space, you may run the command #get sys status to check the current size of FortiMail-VM log disk.
# get sys status
Version:                                 FortiMail-VM v6.4.4(GA), build446, 2021.02.04
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/1048576 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 273 MB (0.14%), Free 198 GB
2) From the output above, FortiMail-VM has 49 GB for log disk.
Note: make sure the VM license can support the hard disk volume after extending the hard disk.

For this example, the VM license can support up to 24576 GB.

 
3) Take a VM snapshot, backup the current configuration and all necessary data before proceeding.

4) Shutdown the FortiMail-VM and add a new virtual disk 100GB to FortiMail.





5) After that, please power on the FortiMail-VM.

6) Run the following command in
FortiMail-VM.
# exe lvm enable 100   
LVM is already enabled in this device      
Note: By default, it will allocate 20% to log disk and 80% to mailbox disk.
Set '100' which means 100% for log disk and all the hard disk space will be allocated to log disk.
# exe lvm extend 100
This will stop all mail services and then extend log and spool devices, are you sure (Y/N)?y
Fortimail will REBOOT !!

7) Now the Fortimail log disk is successfully extended to 149 GB.
# get sys status

Version:                                 FortiMail-VM v6.4.4(GA), build446, 2021.02.04
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/1048576 MB allowed, 349 GB Disk/24576 GB allowed
Log disk:                              Capacity 149 GB, Used 32 MB (0.03%), Free 149 GB
Mailbox disk:                       Capacity 198 GB, Used 318 MB (0.16%), Free 198 GB

Contributors