When attempting to resolve a 100% full root partition (/dev/mapper/system-system_0) in Aria Suite Lifecycle by following Broadcom KB 415752, administrators may encounter the following roadblocks that prevent clearing the database bloat:
postgres user (su - postgres), the system throws a warning:VACUUM command (./psql -d vrlcm), it fails with the following error:VMware Aria Suite Lifecycle (LCM) 8.18.x
This issue is a "Catch-22" scenario caused by absolute disk exhaustion:
vpostgres) crashes when the disk hits exactly 100% capacity because it requires a small amount of free space to create temporary lock files. Because the database service is down, administrators cannot connect to it to run the VACUUM command required to clear the space.To break the cycle, you must blindly clear temporary log and cache files as root to carve out enough space to start the PostgreSQL service. Then, you can run the vacuum command via sudo to bypass the expired account shell.
Log into the LCM appliance via SSH as root and run the following commands sequentially to clear package caches and system logs:
tdnf clean all
journalctl --vacuum-time=1d
truncate -s 0 /var/log/messagesRun df -h and verify that /dev/mapper/system-system_0 has dropped to 99% or shows at least a few megabytes of available space.
Now that the disk has a minimal amount of free space, start the database service:
systemctl restart vpostgresVerify the service is running (press q to exit the status screen):
systemctl status vpostgresExecute the database vacuum command directly from the root prompt. This bypasses the expired authentication token issue by utilizing sudo:
sudo -u postgres /opt/vmware/vpostgres/current/bin/psql -d vrlcm -c "VACUUM FULL verbose analyze;"Once the vacuum completes, verify that a healthy amount of disk space has been reclaimed (the partition typically drops into the 70% range):
df -hFinally, restart the main LCM server service to restore web UI access:
systemctl restart vrlcm-serverAria Suite Lifecycle UI to fully initialize and become accessible in a web browser.Regarding the issue when attempting to switch to the postgres user (su - postgres), the system throws a warning:
Please reference KB (KB# 435345) to resolve this issue.