FortiWeb
A FortiWeb can be configured to join a Security Fabric through the root or downstream FortiGate.
okhatab
Staff
Staff
Article Id 364531
Description This article describes how to identify the files utilizing the top 100 files or directories that are utilizing the most disk space on FortiWeb’s partitions for troubleshooting purposes.
Scope FortiWeb.
Solution
  1. Enter the command below in the CLI to identify the partition path that is facing the issue:

     

# fn df -h

Filesystem                 Size       Used  Available Use% Mounted on

/dev/root                835.7M     740.0M      95.7M  89% /

none                       1.1G      32.1M       1.1G   3% /tmp

none                       3.8G       3.8M       3.8G   0% /dev/shm

/dev/sda1                362.1M     361.2M          0 100% /data <- The path facing the issue is /data.

/dev/sda3                 90.5M      28.0K      85.6M   0% /home

/dev/sda4                 30.4G     707.4M      28.2G   2% /var/log

 

  1. Enable shell access using CLI:

For versions older than v7.6.x:

 

config system global

    set shell-access enable

    set shell-username shell

    set shell-password fortinet

    set shell-timeout 1200  

end

 

For v7.6.x:

 

config system console

    set shell sh

end

 

  1. Access shell:

For versions older than v7.6.x:
Log in using the CLI using the credentials set in the previous step:

  • username: shell
  • password: fortinet

 

For v7.6.x:
Connect to the console and enter the exit command to quit the CLI and access shell.

 

  1. Run the command in the required partition and collect the output for analysis:

 

du -a <path> | sort -rn | head -n 100

 

Example with partial output:

 

du -a /data | sort -rn | head -n 100

341164  /data

178964  /data/rootfs.gz

109424  /data/lib_packge

58968   /data/lib_packge/wvs.7z

50452   /data/lib_packge/python-libs.7z

29852   /data/etc

9988    /data/lib

8208    /data/lib/libav.so.orig

8188    /data/etc/sig-db

8184    /data/etc/sig-db/signature.db

7208    /data/vmlinuz

5108    /data/etc/zoneinfo

3008    /data/vmlinuz.kdump

Related document:
Checking disk information & issues