Some users are unable to restore configuration on FortiGate and get the error, 'unable to restore due to error Cannot store config due to short of flash space!'.
This article describes how to clear short of flash space in FortiGate Disk partition.
|FortiGate v6.4.X and v7.0.X.
This error is shown because of the full flash space in the FortiGates Disk Partition.
FortiGate has two disk partitions and the space can be verified using the following CLI command:
di sys flash list
If the 100% flash space is used, then collect the following debugs:
# fnsysctl ls -la /data/etc
As shown in the following debug outputs, There were a lot of TopologyReport being generated:
FGT # fnsysctl ls /data/node-scripts/report-runner/results -la
These reports are generated from FortiManager FortiAiOPs.
Once FortiAiOPs are disabled from FortiManager, the report generation will stop and it is necessary to manually clear the Flash space on FortiGate using the following CLI command:
diag report-runner clean
Also if the Customer does not want to disable FortiManager FortiAiOPs, run 'di sys flash format' daily as a workaround.
This was a known issue in FortiOS 6.4.x and 7.0.X and it has been fixed in 7.0.6 and 7.2.1 already.