Troubleshooting Tip: How to identify files or directories utilizing the most disk space on a partition
| 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 |
# 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
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
For versions older than v7.6.x:
For v7.6.x:
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: |