vCenter Server UI is inaccessible with the error: "No healthy upstream"
Multiple vCenter Server services fail to start when executing the command: service-control --start --all
The vCenter Server Management Interface (VAMI) at https://<vCenter_Server_FQDN/IP>:5480 displays a critical alert under Summary > Storage.
The /storage/core partition shows a utilization level of 90% or higher when verified using the command : df -h
Multiple core.in:imuxsock file reside within the /storage/core/ partition: find /storage/core/ -name "core.in:imuxsock*" -type f | wc -l
VMware vCenter Server 7.x
VMware vCenter Server 8.x
This issue is due to the continuous generation of core.in:imuxsock.##### files triggered by a "too many open files" error within journalctl. The root cause is often inode exhaustion in the /var/log/vmware directory, occurring when the total number of log files exceeds the system's capacity. To confirm if log volume is contributing to the issue, verify the file counts in the following directories
find /var/log/vmware/applmgmt/ -iname "*.stdout-*" | wc -l
find /var/log/vmware/applmgmt/ -iname "*.stderr-*" | wc -l
ls /var/log/vmware/vsphere-ui/logs/ | wc -l
find /var/log/vmware/ -iname "messages.*.backup" | wc -l
If any of these counts reach thousand, the high log volume is causing the issue.
Note: Prior to executing the following steps, take a backup or an offline snapshot (powered-off state) of the vCenter Server. If the vCenter Sever is part of an Enhanced Linked Mode (ELM) setup, simultaneous snapshots must be taken for all replicating vCenter Servers. Refer VMware vCenter in Enhanced Linked Mode pre-changes snapshot (online or offline) best practice
SSH into the vCenter Server as the root user.
Navigate to the core directory and remove the imuxsock core dump files.
cd /storage/core
rm core.in:imuxsock.*
If the core.in:imuxsock.#### files continue to generate, a more comprehensive cleanup of old log files is required:
Delete the old backup files:
find /var/log/vmware -type f -name "*.backup" | xargs -i rm -f {}
find /var/log -type f -name "lastlog.*.backup" | xargs -i rm -f {}
find /var/log -type f -name "tallylog.*.backup" | xargs -i rm -f {}
Stop all vCenter Server services: service-control --stop --all
Delete stdout/stderr files (older than 7 days):
find /var/log/vmware/ -type f -mtime +7 -iname "*.stdout-*" | xargs -i rm -f {}
find /var/log/vmware/ -type f -mtime +7 -iname "*.stderr-*" | xargs -i rm -f {}
Delete rsyslog core dumps:
find /storage/core/ -iname "core.in:imuxsock*" | xargs -i rm -f {}
find /storage/core/ -iname "core.in:imfile*" | xargs -i rm -f {}
Delete vSphere-ui and backup message files:
rm -f /var/log/vmware/vsphere-ui/logs/vsphere-ui-gc.log.*
rm -f /var/log/vmware/messages.*.backup
Restart the rsyslog service: systemctl restart rsyslog
Start all vCenter Server services: service-control --start --all
Identical behavior is observed due to imfile and imuxsock configuration files.