du -aShx / | sort -rh | head -20 /opt/vmware/vcloud-director/logs is consuming significant space (e.g., 15GB or more) and contains a massive volume of API request logs.VMware Cloud Director 10.6.1.1
The default API request log retention policy in VCD may not be configured, or the retention period is set too long, leading to the continuous accumulation of log files that eventually exhaust the disk space on the root partition.
Step 1: Manually Clean Up Old Logs:
First, manually delete expired log files to immediately free up disk space.
This command cannot be undone. Verify every parameter before running.
cd /opt/vmware/vcloud-director/logs# Example: Remove all old logs from the year 2022rm 2022*
Step 2: Configure Log Retention Policy
To prevent the issue from recurring, configure the automatic retention days for API request logs.
/opt/vmware/vcloud-director/bin/cell-management-tool manage-config --name "vcloud.http.log.retainDays" --value New_Valueservice vmware-vcd restartControl the API Request Logging in VMware Cloud Director