Fortinet black logo

Administration Guide

Diagnosing hard disk issues

How do I set up RAID for a replacement hard disk?

The procedures applies to all models except 100D, 400B, 400C, and 400D.

1. Power off the FortiWeb.

2. Remove the hard disk from FortiWeb and install the new hard disk.

3. Power on the FortiWeb.

4. Use the following command to initialize RAID:

execute create-raid level raid1

5. Enter y to confirm the initialization.

FortiWeb reboots and starts the RAID initialization. The process can take a few hours to complete.

6. Use the following command to check the RAID status:

diagnose hardware raid list

If the process is successful, a message similar to the following is displayed:

FortiWeb # diagnose hardware raid list

level size(M) disk-number

raid1 1876242 0(OK),1(OK)

If FortiWeb is unable to write log messages to the disk, a message similar to the following is displayed:

level size(M) disk-number

raid1 1877665 0(Not Present),1(Not Present),2(Not Present),3(Not Present)

For additional information on using these CLI commands, see the FortiWeb CLI Reference:

HTTPs://docs.fortinet.com/product/fortiweb/

Collecting below information for further analysis:

  1. Diagnose hard disk status

    FortiWeb# diagnose hardware harddisk list

    name size(M)

    sda 959656.76

    sdb 8012.39

    FortiWeb# diagnose hardware raid list

    level size(M) disk-number

    raid1 899811 0(OK),1(OK)

  2. Diagnose hard disk health status by using SMART tool.
    • Show all hard disk S.M.A.R.T information

      execute smart info

    • Enable S.M.A.R.T support. It’s enabled by default for hardware hard disk

      execute smart enable

    • Run self-test for hard disk. It will take some time

      execute smart self-test

    • show the test result

      execute smart test-result

      SMART commands are supported:

      6.3.x after build 1144

      6.4.x after build 1421

      This tool only supports hardware machines. VMs do not have hardware hard disks so are not supported.

  3. Use the tool MegaCli to check RAID information:

    /# fn sh

    /# MegaCli -PDList -aALL

  4. Check more detailed info in dmesg.

    /# dmesg

    [ 0.000000] Linux version 5.4.0 (root@jenkins-dell-22) (gcc version 9.2.0 (FortiWeb 9.2.0)) #1 SMP Thu Jun 10 21:37:23 UTC 2021

    [ 0.000000] Command line: rw panic=5 clocksource=tsc root=/dev/ram0 ramdisk_size=500000 eagerfpu=on mitigations=off crashkernel=128M softlockup_all_cpu_backtrace=1 hardlockup_all_cpu_backtrace=1 initrd=/rootfs.gz console=ttyS0,9600

    … ...

    … …

  5. Check filesystem mount status:

    FortiWeb # diagnose system mount list

    Filesystem 1M-blocks Used Available Use% Mounted on

    /dev/ram0 473 310 162 65% /

    none 1164 31 1132 2% /tmp

    none 3880 3 3877 0% /dev/shm

    /dev/sdb1 362 254 89 74% /data

    /dev/sdb3 91 0 86 0% /home

    /dev/sda1 449651 7771 418971 1% /var/log

How do I set up RAID for a replacement hard disk?

The procedures applies to all models except 100D, 400B, 400C, and 400D.

1. Power off the FortiWeb.

2. Remove the hard disk from FortiWeb and install the new hard disk.

3. Power on the FortiWeb.

4. Use the following command to initialize RAID:

execute create-raid level raid1

5. Enter y to confirm the initialization.

FortiWeb reboots and starts the RAID initialization. The process can take a few hours to complete.

6. Use the following command to check the RAID status:

diagnose hardware raid list

If the process is successful, a message similar to the following is displayed:

FortiWeb # diagnose hardware raid list

level size(M) disk-number

raid1 1876242 0(OK),1(OK)

If FortiWeb is unable to write log messages to the disk, a message similar to the following is displayed:

level size(M) disk-number

raid1 1877665 0(Not Present),1(Not Present),2(Not Present),3(Not Present)

For additional information on using these CLI commands, see the FortiWeb CLI Reference:

HTTPs://docs.fortinet.com/product/fortiweb/

Collecting below information for further analysis:

  1. Diagnose hard disk status

    FortiWeb# diagnose hardware harddisk list

    name size(M)

    sda 959656.76

    sdb 8012.39

    FortiWeb# diagnose hardware raid list

    level size(M) disk-number

    raid1 899811 0(OK),1(OK)

  2. Diagnose hard disk health status by using SMART tool.
    • Show all hard disk S.M.A.R.T information

      execute smart info

    • Enable S.M.A.R.T support. It’s enabled by default for hardware hard disk

      execute smart enable

    • Run self-test for hard disk. It will take some time

      execute smart self-test

    • show the test result

      execute smart test-result

      SMART commands are supported:

      6.3.x after build 1144

      6.4.x after build 1421

      This tool only supports hardware machines. VMs do not have hardware hard disks so are not supported.

  3. Use the tool MegaCli to check RAID information:

    /# fn sh

    /# MegaCli -PDList -aALL

  4. Check more detailed info in dmesg.

    /# dmesg

    [ 0.000000] Linux version 5.4.0 (root@jenkins-dell-22) (gcc version 9.2.0 (FortiWeb 9.2.0)) #1 SMP Thu Jun 10 21:37:23 UTC 2021

    [ 0.000000] Command line: rw panic=5 clocksource=tsc root=/dev/ram0 ramdisk_size=500000 eagerfpu=on mitigations=off crashkernel=128M softlockup_all_cpu_backtrace=1 hardlockup_all_cpu_backtrace=1 initrd=/rootfs.gz console=ttyS0,9600

    … ...

    … …

  5. Check filesystem mount status:

    FortiWeb # diagnose system mount list

    Filesystem 1M-blocks Used Available Use% Mounted on

    /dev/ram0 473 310 162 65% /

    none 1164 31 1132 2% /tmp

    none 3880 3 3877 0% /dev/shm

    /dev/sdb1 362 254 89 74% /data

    /dev/sdb3 91 0 86 0% /home

    /dev/sda1 449651 7771 418971 1% /var/log