/var/log file system shows as 100% used.After performing a deploy.sh to restart the service pods, the UI to the appliance could also be fully unavailable and you may receive “bad gateway” up on trying to load the UI.
When running command kubectl get pods -n prelude, no service pods are started.root@<vRA FQDN> [ ~ ]# kubectl get pods -n prelude
NAME READY STATUS RESTARTS AGEno-license-app-<ID#> 0/1 ContainerCreating 0 9m24spostgres-0 0/1 Init:0/1 0 9m23srabbitmq-ha-0 0/1 Init:0/3 0 9m23s
<vRA FQDN> kubelet[Kubelet ID]: Create pod log directory for pod "no-license-app-<UUID>" failed: mkdir /var/log/pods/prelude_no-license-app-<UUID>: no space left on device/var/log/ files system in are:.hprof ) files:OutOfMemory exception based upon configuration and system usage which will dump an hprof file to disk. This can subsequently cause a full drive.We can use the below methods to clear and reclaim space: (take snapshots of the appliance before executing the steps)
1. Identify Large Log Files:
/var/log:du -sh /var/log/* | sort -rh | head -202. Clear or Compress Large Log Files:
sudo rm -f /var/log/<logfile>.gzsudo truncate -s 0 /var/log/<logfile>3. Use Log Rotation:
logrotate. Check the configuration in /etc/logrotate.conf or /etc/logrotate.d/.sudo logrotate -f /etc/logrotate.conf4. Examine Specific VMware Logs:
du -sh /var/log/vmware/* | sort -rh | head -20 /var/log/vmware/vco/ Clean unnecessary logs from there./var/log/journal is large, check step 85. Remove Old Core Dumps or Unused Packages:
sudo find /var/crash -type f -exec rm -f {} \;sudo apt-get clean # For Ubuntu-based systemssudo yum clean all # For RHEL/CentOS-based systems6. Check for Orphaned Docker Images (Optional):
docker system prune -a7. Delete /service-logs/prelude/vco-app/file-logs/vco.hprof heap dump files and write a script file to delete the vco.hprof files periodically.
hprof files on the system to be removed.8. Retain only the last X MB of journal logs with journalctl --vacuum-size=XMB , e.g. to retain only the last 200MB of journal logs: journalctl --vacuum-size=200MB
journalctl --vacuum-time=Xd, e.g. to retain the last 2 days of journal logs: journalctl --vacuum-time=2dIn VMware Aria Automation Orchestrator, verify that the logging levels are configured correctly to prevent the /var/log partition from filling up due to excessive log generation.
Using the Trace log level generates a significantly higher volume of logs, which can cause the /var/log partition to fill up quickly. Keeping both log levels set to Info is recommended unless Trace logging is specifically required for troubleshooting, and it should be reverted to Info after diagnostics are complete.