Skip to main content
alebay
Staff
Staff
June 15, 2018

Technical Tip: How to extend the disk space for log in FortiGate VM Model

  • June 15, 2018
  • 0 replies
  • 10226 views

Description

 
This article describes how to extend the disk space for the log in FortiGate VM Model.
 
Scope
 
FortiGate.


Solution

 

For FortiGate VM model in FortiOS version 5.6.x, log share disk with both wanopt and webcache.
From the screenshots below, it is possible to see that the disk space for the log is only about 20% for the full disk.
 
Iriz-kvm19 #get hardware status
Iriz-kvm19 #get system status
 
extendFGmodel.png
 
Similarly, the disk usage can be checked on the FortiGate UI.
 
FGscreeen.png
  
By default, WanOpt and WebCache will occupy about 80-85% of the disk space.
 
cmdFG.png
 
In order to extend the disk space for log, it is necessary to change the disk size of wanopt and webcace. The minimum hardcoded size that must be assigned to WanOpt is 512MB.
 
To reduce the disk size of WanOpt:
 
Iriz-kvm19 # config wanopt storage
Iriz-kvm19 (storage) # edit Virtual-Disk
Iriz-kvm19 (Virtual-Disk) # set size 512
Iriz-kvm19 (Virtual-Disk) # end
 
To verify: 
 
Iriz-kvm19 # get wanopt storage
== [ Virtual-Disk ]
name: Virtual-Disk   size: 512   webcache-storage-percentage: 0
 
Lastly, perform a reboot on the FortiGate unit. After the reboot, it is possible to observe that the disk size for the log has increased.
 
FGscreeen2.png
 
Note:
The only officially supported way to extend the log disk is by redeploying the VM with a larger disk size or assigning a larger virtual disk size can be assigned to the VM, but it is needed to format the log disk.
 
execute formatlogdisk
 
Any other methods used to extend the log disk and issues caused as a consequence will not be supported by the Fortinet Support team. Refer to the article for more information: Technical Tip: Extend log disk FortiGate-VM running on VM ESXi.