KB0001 - Log Rotate Fails for /var/log/vmware on NSX-T Manager and Edge Nodes

This issue is caused due to an extra decimal point in the configuration file. This converts the number to a float, which the code does not accept.
KB0001 - Log Rotate Fails for /var/log/vmware on NSX-T Manager and Edge Nodes

Symptoms

  • You are running NSX-T 3.1.
  • You may see the partition '/var/log/vmware' grow.
  • The following files may grow considerably:
    • integrity_checker.log
    • top-mem.log
    • top-cpu.log

If you run the command:

/usr/sbin/logrotate -d /etc/logrotate.conf 2>&1 | less

The following errors are displayed

error: appliance-config:3 bad size '12.8'
error: appliance-config:17 bad size '51.2'

Note: The command /usr/sbin/logrotate -d /etc/logrotate.conf 2>&1 | less is a debug command and will only read the configuration file to check its correctness.

Cause

This issue is caused due to an extra decimal point in the configuration file. This converts the number to a float, which the code does not accept.

Resolution

This issue is resolved in NSX T 3.1.1 and onwards.

Workaround

Log in as root on the impacted NSX-T Manager or Edge node.

cd /etc/logrotate.d

#Then copy the original file as a backup: 
cp appliance-config /tmp/appliance-config.bak

# replace with correct values, run the following command:
sed -i 's/12.8M/13M/g' appliance-config
sed -i 's/51.2M/52M/g' appliance-config

# remove 'su syslog adm' line from integrity_checker.log file rotate config section:
sed -i '/su syslog adm/d' appliance-config

No reboot or service restarts are required, as the next time logrotate is called by cron it will use these new values

Further Reading

  1. VMWare KB 82273
About the author
Stephen Schwetz

Stephen Schwetz

I collect movies TV series and acronyms after my name. I am an active ADHD and Autistic, who suffers from all the trauma of trying to fit into a social system that doesn't work for the last 46 years

The Schwarrisons

A Neurodivergent Family Trying to Fit Their Square Pegs Into the Round Holes of Life

The Schwarrisons

Great! You’ve successfully signed up.

Welcome back! You've successfully signed in.

You've successfully subscribed to The Schwarrisons.

Success! Check your email for magic link to sign-in.

Success! Your billing info has been updated.

Your billing was not updated.