Field Notice: FN - 70441 - Firepower Software - Mysql-Server - Err Log File Might Consume Excessive Disk Space - Workaround Provided - Cisco
Field Notice: FN - 70441 - Firepower Software - Mysql-Server - Err Log File Might Consume Excessive Disk Space - Workaround Provided - Cisco
Notice
THIS FIELD NOTICE IS PROVIDED ON AN "AS IS" BASIS AND DOES NOT IMPLY ANY KIND OF
GUARANTEE OR WARRANTY, INCLUDING THE WARRANTY OF MERCHANTABILITY. YOUR USE OF
THE INFORMATION ON THE FIELD NOTICE OR MATERIALS LINKED FROM THE FIELD NOTICE IS AT
YOUR OWN RISK. CISCO RESERVES THE RIGHT TO CHANGE OR UPDATE THIS FIELD NOTICE AT
ANY TIME.
Revision History
Products A!ected
Defect ID Headline
CSCvn30118 mysql-server.err !le is not fully deleted and keeps consuming Firepower disk space
CSCvq71217 High Disk Utilization due to mysql-server.err failing to rotate after CSCvn30118
Problem Description
The mysql-server.err log !le might consume excessive disk space on the Firepower security appliance.
Background
A"ected Firepower software versions might experience extended high disk utilization due to a failure
to properly rotate large mysql-server.err !les. This occurs after large mysql-server.err log !les are
rotated with the logrotate command. Although the !le is successfully rotated and compressed, the
pre-rotation disk space continues to be consumed since the mysql process maintains an open !le
handle to the deleted !le. This results in continued high disk utilization until either the mysql process or
the Firepower platform is restarted to release the disk resources.
Problem Symptom
Use the show disk command in order to view the ngfw disk utilization to determine if the condition
exists. The related information is highlighted in this command output.
Complete these steps in order to determine if the high ngfw disk utilization is due to the mysql-
server.err log !le:
1. Prior to log !le rotation, enter this command in order to show the disk space consumed by the
mysql-server.err !le.
root@Firepower:# ls -alh /ngfw/var/lib/mysql/mysql-server*
-rw-rw---- 1 mysql mysql 155G Nov 14 13:06 mysql-server.err <----- Output shows 155G log file
2. After the log !le has been rotated, enter this command in order to show the disk space consumed
by the rotated and compressed mysql-server.err !le.
root@Firepower:# ls -alh /ngfw/var/lib/mysql/mysql-server*
-rw-rw---- 1 mysql mysql 0 Nov 15 04:43 mysql-server.err
-rw-rw---- 1 mysql mysql 20 Nov 14 13:06 mysql-server.err.1.gz <----- Rotated and compressed
-rw-rw---- 1 mysql mysql 11G Nov 14 13:06 mysql-server.err.2.gz
3. After the log !le has been rotated, enter this command in order to show the disk space consumed
by the original mysql-server.err !le. The seventh column of the output shows that the mysql-
server.err log !le continues to consume disk space.
root@Firepower:# lsof | grep mysql-server.err.*deleted
Workaround/Solution
Enter the "ush logs command in order to manually delete the mysql-server.err log !le: