Users report that the appliance is out of space or receiving "No space left on device" errors on the root (/) partition. Investigation reveals the vrlcm PostgreSQL database is the primary consumer of disk space, specifically due to index fragmentation in the vm_rs_request table.
Product: VMware Aria Suite Lifecycle
Version: 8.18.0
Component: vrlcm Database (PostgreSQL)
The postgres service account expiration prevents routine maintenance (Autovacuum), leading to massive index bloat in the vm_rs_request table.
Follow these steps to restore the service account and reclaim disk space:
Log in to the appliance via SSH as root and run the following commands to unlock the account and set it to never expire:
chage -m 0 -M 99999 -I -1 -E -1 postgres
passwd -u postgres
Connect to the PostgreSQL instance and perform deep maintenance to collapse the index bloat:
Access the database: vrlcm-db-status (or your standard local PSQL login).
Run the following SQL commands:
REINDEX TABLE vm_rs_request;
VACUUM FULL vm_rs_request;
Note: VACUUM FULL requires exclusive locks on the table and may take time depending on the size of the bloat.
Note: This should be enabled out-of-the-box.
Ensure the database correctly tracks statistics for the Autovacuum daemon:
ALTER DATABASE vrlcm SET track_counts = 'on';
Subscribe to this knowledge article to get updates on this issue. If you are unable to clear enough space to run the VACUUM command, please attempt to increase the partition space: Extend root and alt_root volumes.