vmware-vcd service may stop unexpectedly./opt/vmware/var/log/vcd/vcd_ova_ui_uwsgi.log and /var/log/nginx/access.log consume a large amount of the "/" partition.$ du --time -aShx / | sort -rh | head -2005.2G 20xx-xx-xx xx:xx /opt/vmware/vcloud-director/logs2.8G 20xx-xx-xx xx:xx /var/log/journal/xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx2.8G 20xx-xx-xx xx:xx /opt/vmware/var/log/vcd1.5G 20xx-xx-xx xx:xx /var/log1.2G 20xx-xx-xx xx:xx /var/log/nginx/access.log1.2G 20xx-xx-xx xx:xx /var/log/nginx1007M 20xx-xx-xx xx:xx /var/log/wtmp622M 20xx-xx-xx xx:xx /opt/vmware/var/log/vcd/vcd_ova_ui_uwsgi.log-20210510/var/log/nginx/error.log may also consume a large amount of the "/" partition./api/1.0.0" are frequently called using 3rd party tools for purposes such as service health monitoring.The API requests are logged in /opt/vmware/var/log/vcd/vcd_ova_ui_uwsgi.log and /var/log/nginx/access.log, but these logs are not rotated properly due to improper configuration.
So, in environments where the APIs are called frequently, the size of the logs may increase.
This issue is resolved in VMware Cloud Director 10.6.1.2 or later. VMware Cloud Director 10.6.1.2 Release Notes
To workaround this issue, follow the steps below:
/opt/vmware/var/log/vcd/vcd_ova_ui_uwsgi.logvcd_ova_ui service is writing, restart the service by the command below.systemctl restart vcd_ova_ui/etc/logrotate.d/vcd-applyance-sync as follows./opt/vmware/var/log/vcd/*.log { su vcloud vcloud daily minsize 10M <-- Replace "size" with "minsize" create 0664 vcloud vcloud rotate 10 nocompress prerotate /usr/bin/chown -R vcloud:vcloud /opt/vmware/var/log/vcd/ /usr/bin/chmod -R 0664 /opt/vmware/var/log/vcd/* endscript copytruncate <-- Add this line}/var/log/nginx/access.log/etc/logrotate.d/nginx with the following content./var/log/nginx/*.log { daily minsize 10M rotate 10 compress copytruncate}