Fortinet black logo

CLI reference

execute formatlogdisk

execute formatlogdisk

Use this command to reformat the local hard disk that contains log data. This command also reboots the unit.

Format the disk regularly to improve performance.

Caution

Back up all data on the disks before using this command. This command deletes all files on the disk.

Syntax

execute formatlogdisk

Example

execute formatlogdisk

The CLI displays the following:

This operation will erase all data on the log disk!
Do you want to continue? (y/n)

After you enter y (yes), the CLI displays the following and logs you out of the CLI:

Formatting disk, Please wait a few seconds!

execute formatlogdisk

Use this command to reformat the local hard disk that contains log data. This command also reboots the unit.

Format the disk regularly to improve performance.

Caution

Back up all data on the disks before using this command. This command deletes all files on the disk.

Syntax

execute formatlogdisk

Example

execute formatlogdisk

The CLI displays the following:

This operation will erase all data on the log disk!
Do you want to continue? (y/n)

After you enter y (yes), the CLI displays the following and logs you out of the CLI:

Formatting disk, Please wait a few seconds!