Fortinet white logo
Fortinet white logo

CLI Reference

format

format

Format the hard disk on the FortiAnalyzer system. You can select to perform a secure (deep-erase) format which overwrites the hard disk with random data. You can also specify the number of times to erase the disks.

To format the disk, FortiAnalyzer must be in Standalone mode, not HA active-active or HA active-passive.

Syntax

execute format disk <RAID level> [<group>] [deep-erase] [<erase-times>]

When you run this command, you will be prompted to confirm the request.

Executing this command will erase all device settings/images, databases, and log data on the FortiAnalyzer system’s hard drive. The FortiAnalyzer device’s IP address, and routing information will be preserved.

Variable

Description

disk

Format the hard disk (ext4).

[deep-erase]

Overwrite the hard disk with random data. Selecting this option will take longer than a standard format.

[<erase-times>]

Number of times to overwrite the hard disk with random data (1 - 35, default = 1).

[<group>]

Enter the number of RAID groups to be used in the RAID array (default = 2). To view the available options, use an asterisk (*). For example:

execute format disk 50 *

The number of groups can only be selected for RAID 50 and RAID 60.

Tooltip

When building a RAID array, select a number of groups that will use all disks.

For example, consider a RAID array with 15 disks. Using the default 2 groups (7 disks per group) would leave 1 disk unused. In order to use all disks, it would be better to select 3 groups (5 disks per group).

<RAID level>

Enter the RAID level to be set on the device. This option is only available on FortiAnalyzer models that support RAID.

Enter * to show available RAID levels.

format

format

Format the hard disk on the FortiAnalyzer system. You can select to perform a secure (deep-erase) format which overwrites the hard disk with random data. You can also specify the number of times to erase the disks.

To format the disk, FortiAnalyzer must be in Standalone mode, not HA active-active or HA active-passive.

Syntax

execute format disk <RAID level> [<group>] [deep-erase] [<erase-times>]

When you run this command, you will be prompted to confirm the request.

Executing this command will erase all device settings/images, databases, and log data on the FortiAnalyzer system’s hard drive. The FortiAnalyzer device’s IP address, and routing information will be preserved.

Variable

Description

disk

Format the hard disk (ext4).

[deep-erase]

Overwrite the hard disk with random data. Selecting this option will take longer than a standard format.

[<erase-times>]

Number of times to overwrite the hard disk with random data (1 - 35, default = 1).

[<group>]

Enter the number of RAID groups to be used in the RAID array (default = 2). To view the available options, use an asterisk (*). For example:

execute format disk 50 *

The number of groups can only be selected for RAID 50 and RAID 60.

Tooltip

When building a RAID array, select a number of groups that will use all disks.

For example, consider a RAID array with 15 disks. Using the default 2 groups (7 disks per group) would leave 1 disk unused. In order to use all disks, it would be better to select 3 groups (5 disks per group).

<RAID level>

Enter the RAID level to be set on the device. This option is only available on FortiAnalyzer models that support RAID.

Enter * to show available RAID levels.