Root Partition Reaches 100% Disk Utilization on Foundation Load Balancer
search cancel

Root Partition Reaches 100% Disk Utilization on Foundation Load Balancer

book

Article ID: 462634

calendar_today

Updated On:

Products

VMware vSphere Kubernetes Service

Issue/Introduction

  • The root partition on the Foundation Load Balancer may reach 100% disk utilization, causing the appliance to become unresponsive or fail to synchronize with the cluster. This behavior is typically identified by an uncontrolled growth of the /var/log/messages file. This article provides a workaround to stop the logs from filling the storage partition.

    Symptoms :

    • The root (/) partition shows 100% disk usage.
    • The /var/log/messages file is the primary contributor to disk growth.
    • The Foundation Load Balancer becomes unresponsive or fails to sync with the cluster.

Environment

Foundation Load Balancer 9.1.1

Cause

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.

 

Resolution

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.

  1. 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)

  2. Switch to the root user: sudo -i

  3. Back up the current rsyslog configuration: 

    cp -p /etc/rsyslog.conf /etc/rsyslog.conf.before-messages-workaround
  4. 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

  5. Verify the modification was successful (the output should show a # at the beginning of the line):

    grep -n '/var/log/messages' /etc/rsyslog.conf
  6. Verify the configuration syntax: rsyslogd -N1

  7. Restart the rsyslog service to apply the changes and verify it is active:
    systemctl restart rsyslog
    systemctl is-active rsyslog

  8. Truncate the /var/log/messages file to reclaim the disk space currently occupied by the overgrown log:

    truncate -s 0 /var/log/messages

  9. Verify the root partition has reclaimed the space:

    df -h /