Fortinet white logo
Fortinet white logo

CLI Reference

system disk

system disk

Use these commands to show a list of logical and physical disks, and to show and run SMART disk and RAID monitoring and tests.

Syntax

diagnose system disk

diagnose system disk {enable | disable}

diagnose system disk summary ['<disk_str>']

diagnose system disk health ['<disk_str>']

diagnose system disk attributes ['<disk_str>']

diagnose system disk short-test ['<disk_str>']

diagnose system disk long-test ['<disk_str>']

diagnose system disk stop-tests ['<disk_str>']

diagnose system disk test-results ['<disk_str>']

diagnose system disk errors ['<disk_str>']

diagnose system disk raw ['<disk_str>']

Variable

Description

Default

{enable | disable}

Enable or disable SMART disk tests.

'<disk_str>'

Enter the path of a disk that supports SMART controls, such as /dev/sda. If you omit the disk, then the command applies to all disks within the scope of the command.

To get a list of disks, enter the command:

diagnose system disk

Example

FortiMail # diagnose system disk

System Time:  2025-05-28 09:27:36 PDT (Uptime: 2d 1h 56m)
Smartctl Results
Overall       Realloc Pending Seek
Device       Health        Sectors Sectors Count   Last Run Test
--------------------------------------------------------------------------
/dev/sda     PASSED        0       0       0       no tests run
/dev/sda     PASSED        0       0       0       no tests run
/dev/sda     PASSED        0       0       0       no tests run
/dev/sda     PASSED        0       0       0       no tests run
/dev/sdb     NOT-SUPPORTED

FortiMail # diagnose system disk health

System Time:  2025-05-28 09:44:09 PDT (Uptime: 2d 2h 13m)
smartctl 6.3 2014-07-26 r3976 [x86_64-linux-5.10.218-900f] (local build)
Copyright (C) 2002-14, Bruce Allen, Christian Franke, www.smartmontools.org
/dev/sda [megaraid_disk_00] [SAT]: Device open changed type from 'megaraid,0' to 'sat+megaraid,0'
=== START OF READ SMART DATA SECTION ===
SMART Status not supported: ATA return descriptor not supported by controller firmware
SMART overall-health self-assessment test result: PASSED
Warning: This result is based on an Attribute check.
...

FortiMail # diagnose system disk errors

System Time:  2025-05-28 09:45:38 PDT (Uptime: 2d 2h 14m)
smartctl 6.3 2014-07-26 r3976 [x86_64-linux-5.10.218-900f] (local build)
Copyright (C) 2002-14, Bruce Allen, Christian Franke, www.smartmontools.org
/dev/sda [megaraid_disk_00] [SAT]: Device open changed type from 'megaraid,0' to 'sat+megaraid,0'
=== START OF READ SMART DATA SECTION ===
SMART Error Log Version: 1
No Errors Logged
...

FortiMail # diagnose system disk short-test

System Time:  2025-05-28 09:54:12 PDT (Uptime: 2d 2h 23m)

FortiMail # diagnose system disk test-results

System Time:  2025-05-28 09:54:25 PDT (Uptime: 2d 2h 23m)
smartctl 6.3 2014-07-26 r3976 [x86_64-linux-5.10.218-900f] (local build)
Copyright (C) 2002-14, Bruce Allen, Christian Franke, www.smartmontools.org
/dev/sda [megaraid_disk_00] [SAT]: Device open changed type from 'megaraid,0' to 'sat+megaraid,0'
=== START OF READ SMART DATA SECTION ===
SMART Self-test log structure revision number 1
Num  Test_Description    Status                  Remaining  LifeTime(hours)  LBA_of_first_error
# 1  Short offline       Self-test routine in progress 80%         0         -

...

Related topics

checklogdisk

checkmaildisk

system raid-status

system disk-clear

system disk-usage

system file-system

system flash

hardware

lvm

system disk

system disk

Use these commands to show a list of logical and physical disks, and to show and run SMART disk and RAID monitoring and tests.

Syntax

diagnose system disk

diagnose system disk {enable | disable}

diagnose system disk summary ['<disk_str>']

diagnose system disk health ['<disk_str>']

diagnose system disk attributes ['<disk_str>']

diagnose system disk short-test ['<disk_str>']

diagnose system disk long-test ['<disk_str>']

diagnose system disk stop-tests ['<disk_str>']

diagnose system disk test-results ['<disk_str>']

diagnose system disk errors ['<disk_str>']

diagnose system disk raw ['<disk_str>']

Variable

Description

Default

{enable | disable}

Enable or disable SMART disk tests.

'<disk_str>'

Enter the path of a disk that supports SMART controls, such as /dev/sda. If you omit the disk, then the command applies to all disks within the scope of the command.

To get a list of disks, enter the command:

diagnose system disk

Example

FortiMail # diagnose system disk

System Time:  2025-05-28 09:27:36 PDT (Uptime: 2d 1h 56m)
Smartctl Results
Overall       Realloc Pending Seek
Device       Health        Sectors Sectors Count   Last Run Test
--------------------------------------------------------------------------
/dev/sda     PASSED        0       0       0       no tests run
/dev/sda     PASSED        0       0       0       no tests run
/dev/sda     PASSED        0       0       0       no tests run
/dev/sda     PASSED        0       0       0       no tests run
/dev/sdb     NOT-SUPPORTED

FortiMail # diagnose system disk health

System Time:  2025-05-28 09:44:09 PDT (Uptime: 2d 2h 13m)
smartctl 6.3 2014-07-26 r3976 [x86_64-linux-5.10.218-900f] (local build)
Copyright (C) 2002-14, Bruce Allen, Christian Franke, www.smartmontools.org
/dev/sda [megaraid_disk_00] [SAT]: Device open changed type from 'megaraid,0' to 'sat+megaraid,0'
=== START OF READ SMART DATA SECTION ===
SMART Status not supported: ATA return descriptor not supported by controller firmware
SMART overall-health self-assessment test result: PASSED
Warning: This result is based on an Attribute check.
...

FortiMail # diagnose system disk errors

System Time:  2025-05-28 09:45:38 PDT (Uptime: 2d 2h 14m)
smartctl 6.3 2014-07-26 r3976 [x86_64-linux-5.10.218-900f] (local build)
Copyright (C) 2002-14, Bruce Allen, Christian Franke, www.smartmontools.org
/dev/sda [megaraid_disk_00] [SAT]: Device open changed type from 'megaraid,0' to 'sat+megaraid,0'
=== START OF READ SMART DATA SECTION ===
SMART Error Log Version: 1
No Errors Logged
...

FortiMail # diagnose system disk short-test

System Time:  2025-05-28 09:54:12 PDT (Uptime: 2d 2h 23m)

FortiMail # diagnose system disk test-results

System Time:  2025-05-28 09:54:25 PDT (Uptime: 2d 2h 23m)
smartctl 6.3 2014-07-26 r3976 [x86_64-linux-5.10.218-900f] (local build)
Copyright (C) 2002-14, Bruce Allen, Christian Franke, www.smartmontools.org
/dev/sda [megaraid_disk_00] [SAT]: Device open changed type from 'megaraid,0' to 'sat+megaraid,0'
=== START OF READ SMART DATA SECTION ===
SMART Self-test log structure revision number 1
Num  Test_Description    Status                  Remaining  LifeTime(hours)  LBA_of_first_error
# 1  Short offline       Self-test routine in progress 80%         0         -

...

Related topics

checklogdisk

checkmaildisk

system raid-status

system disk-clear

system disk-usage

system file-system

system flash

hardware

lvm