The vcd service may fail to start or crash shortly after initialization.
A review of the cell.log file located in /opt/vmware/vcloud-director/logs/ reveals that the service encounters a java.lang.OutOfMemoryError, followed by a failed heap dump due to insufficient disk space.
The cell-runtime.log also includes the error message:
log4j:ERROR Failed to flush writer, java.io.IOException: No space left on device
This issue results in the VCD service becoming non-operational and may impact tenant access or administrative functionality within Cloud Director.
There can be instances where the VCD services might not crash but the partition might be close to full and the database size increases very fast.
/opt/vmware/appliance/bin/create-backup.sh script.audit_trail table :Stop services on all cells:/opt/vmware/vcloud-director/bin/cell-management-tool cell -i $(service vmware-vcd pid cell) -s
Connect to the database:sudo -i -u postgres psql vcloud
Clear the audit_trail table:truncate table audit_trail;
Reclaim space and optimize the database:vacuum full;vacuum analyze;
Start the VCD service on the first cell:systemctl start vmware-vcd
To avoid future uncontrolled growth, configure Cloud Director to retain audit logs for a limited time (e.g., 10 days):
/opt/vmware/vcloud-director/bin/cell-management-tool manage-config -n com.vmware.vcloud.audittrail.history.days -v 10