/var/log/messages file. This article provides a workaround to stop the logs from filling the storage partition./) partition shows 100% disk usage./var/log/messages file is the primary contributor to disk growth.Foundation Load Balancer 9.1.1
This issue occurs because the log rotation mechanism for system logs is not functioning correctly on the Foundation Load Balancer. As a result, /var/log/messages fails to rotate and compress, leading to unbounded file growth that eventually exhausts the storage space on the root partition.
Apply the following workaround to prevent the log from filling the root partition.
IMPORTANT: Perform these steps on both the active and standby Foundation Load Balancer (FLB) virtual machines.
SSH into the Foundation Load Balancer VM as the vmware-system-user.
(Please refer to the below TechDocs for steps to take an SSH session to the Foundation Load Balancer: Establish an SSH Session with the Foundation Load Balancer VMs)
Switch to the root user: sudo -i
Back up the current rsyslog configuration:
cp -p /etc/rsyslog.conf /etc/rsyslog.conf.before-messages-workaround
Modify the rsyslog.conf file to prevent /var/log/messages from growing uncontrollably:
sed -i -E 's|^([^#].*[[:space:]]/var/log/messages.*)|#\1|' /etc/rsyslog.conf
Verify the configuration syntax: rsyslogd -N1
Restart the rsyslog service to apply the changes and verify it is active:
systemctl restart rsyslog
systemctl is-active rsyslog
Truncate the /var/log/messages file to reclaim the disk space currently occupied by the overgrown log:
truncate -s 0 /var/log/messages
Verify the root partition has reclaimed the space:
df -h /