Technical Tip: How to repair or format logdisk if status shows not available
Description
This article describes how to repair or format logdisk if the status shows not available.
Â
Scope
Â
FortiWeb.
Solution
From CLI, check the sessions using the following commands:
Â
diagnose system mount listÂ
Check for var/log, which is not showing in this case in the output below.

Â
Try to repair the log disk by below command:
Â
FortiWeb-A # execute fscklogdiskÂ
Try to rebuild the database using the following command:
Â
 FortiWeb-A # execute db rebuildÂ
If this resolves the issue and shows var/log and log disk as available, otherwise log disk needs to be formatted by the following command:
Note: This command will delete logs on FortiWeb, and as of version 7.2.1, will lead to rebooting FortiWeb (a maintenance window is required as a reboot will be triggered, causing service interruption):
Â
FortiWeb-A # execute formatlogdiskÂ
When executing this command, the FortiWeb appliance displays the following message:
This operation will clear all data on the log disk and take a few minutes according to the disk size!!
Do you want to continue? (y/n)
Enter 'y' to continue. Enter 'n' if you want to abort the operation.Output post fscklogdisk command.
Â

Related documents:
