Technical Tip: FortiDDoS High Disk Usage on the /var/log Partition
| Description | This article describes how to troubleshoot high disk usage on FortiDDoS. The system may experience a full /var/log partition. |
| Scope | FortiDDoS. |
| Solution | It is important to determine which partition on the disk is full. The command should be used for review:
FortiDDoS# fnsysctl df -h
To resolve the issue of high disk usage on the /var/log partition, follow these steps:
config system global set shell-access enable set shell-username <username> set shell-password <password> set shell-timeout 30
Notes: The shell-timeout means the shell access will be disabled automatically after 30 minutes.
FortiDDoS # f sh /# du -h -d 1 /var/log/mysql/ 4.0K /var/log/mysql/tmp 454.1M /var/log/mysql/data 454.2M /var/log/mysql/
/# ls -l /var/log/mysql/ drwxr-xr-x 6 root 0 4096 Mar 10 11:00 data -rw-rw---- 1 root 0 3551 Mar 10 11:00 error.log drwxr-xr-x 2 root 0 4096 Mar 6 16:21 tmp
/# echo "" > /var/log/mysql/error.log /# ls -l /var/log/mysql/ drwxr-xr-x 6 root 0 4096 Mar 10 11:00 data -rw-rw---- 1 root 0 1 Mar 11 10:25 error.log drwxr-xr-x 2 root 0 4096 Mar 6 16:21 tmp
|
