PowerFlex: Diag_coll logs are not rotating
Summary: Diag_coll logs are not rotating, taking up most of the space in the file system.
Symptoms
The diag_coll logs directory fills up, and logs are not rotated:
[root@localhost ~]# ls -la /opt/diag_coll/logs/
total 724
drwxr-xr-x. 2 root root 4096 Mar 26 04:32 .
drwxr-xr-x. 5 root root 52 Apr 11 2022 ..
-rw-r--r--. 1 root root 324 Mar 15 08:36 installer.log
-rw-r--r--. 1 root root 164502 Mar 26 04:33 top.0
-rw-r--r--. 1 root root 13274 Mar 26 04:25 top.10.Sun_Mar_26_2023__04.25.51.gz
-rw-r--r--. 1 root root 13341 Mar 26 04:25 top.11.Sun_Mar_26_2023__04.25.03.gz
-rw-r--r--. 1 root root 13224 Mar 26 04:24 top.12.Sun_Mar_26_2023__04.24.16.gz
-rw-r--r--. 1 root root 13493 Mar 26 04:23 top.13.Sun_Mar_26_2023__04.23.28.gz
-rw-r--r--. 1 root root 13509 Mar 26 04:22 top.14.Sun_Mar_26_2023__04.22.40.gz
-rw-r--r--. 1 root root 13409 Mar 26 04:21 top.15.Sun_Mar_26_2023__04.21.53.gz
-rw-r--r--. 1 root root 13360 Mar 26 04:21 top.16.Sun_Mar_26_2023__04.21.07.gz
-rw-r--r--. 1 root root 13356 Mar 26 04:20 top.17.Sun_Mar_26_2023__04.20.19.gz
-rw-r--r--. 1 root root 13143 Mar 26 04:19 top.18.Sun_Mar_26_2023__04.19.33.gz
-rw-r--r--. 1 root root 13074 Mar 26 04:18 top.19.Sun_Mar_26_2023__04.18.46.gz
-rw-r--r--. 1 root root 13942 Mar 26 04:31 top.1.Sun_Mar_26_2023__04.31.20.gz <<<
-rw-r--r--. 1 root root 13942 Mar 26 04:31 top.1.Sun_Mar_26_2023__04.31.55.gz <<<
-rw-r--r--. 1 root root 13115 Mar 26 04:32 top.1.Sun_Mar_26_2023__04.32.06.gz <<<
-rw-r--r--. 1 root root 13098 Mar 26 04:32 top.1.Sun_Mar_26_2023__04.32.53.gz <<<
-rw-r--r--. 1 root root 13358 Mar 26 04:17 top.20.Sun_Mar_26_2023__04.17.58.gzCause
Log files are not rotated if one of the diag_coll files has the same filename prefix.
A software code issue in the log rotation mechanism prevents the continuous rotation of the log file created by the diag_coll utility. The issue will be resolved in a future release.
For example:
A compressed file named top.1.Wed_Mar_15_2023__08.50.15.gz was created by the diag_coll utility.
When copying top.1.Wed_Mar_15_2023__08.50.15.gz to top.1.Wed_Mar_11_2023__08.50.15.gz it stops the log rotation.
In this example above, the same filename prefix stops the log rotation - top.1.*.
Resolution
Workaround:
Manually deleting the same filename prefix logs restore the log rotation.
After a few minutes, the logs will return to rotate as expected.
To delete all files in /opt/diag_coll/logs:
rm -f /opt/diag_coll/logs/*
Attention: if the diag_coll logs are needed, move them to a different location instead of deleting them.