VMware Cloud Community
JosePerez99
Contributor
Contributor

disk Log vcenter is full

Hello everyone, I have the problem that my vCenter, on the Log disk, is at 98%, could someone help me how to solve and lower this percentage please.

 

JosePerez99_0-1702519646570.png

 

Labels (1)
Reply
0 Kudos
4 Replies
aritri
Contributor
Contributor

Reply
0 Kudos
nordhuus
Enthusiast
Enthusiast

Yes agree with JOsePerez99. Go to these directories
/storage/log/vmware/sso/tomcat/
/storage/log/vmware/eam/web/
/storage/log/vmware/lookupsvc/tomcat/

Then delete the catalina log files.

If you still are low on space the delete also these files

cd /var/log/vmware/vmware-sps
ls -lha sps-access*log
rm sps-access*log

_____________________________________________
If this post helps you, please leave Kudo or mark this reply as an answer
Reply
0 Kudos
pmichelli
Hot Shot
Hot Shot

Here are commands to do this in one shot.

find /storage/log/vmware/ -mtime +1 -type f -name "localhost_access*" | while read file; do rm "$file" ; done
find /storage/log/vmware/ -mtime +1 -type f -name "catalina*log" | while read file; do rm "$file" ; done

Reply
0 Kudos
pcgeek2009
Hot Shot
Hot Shot

I actually ran into this while trying to upgrade my home lab last night. I used this article to clear the logs:

https://www.jeffreykusters.nl/2021/10/14/vcenter-server-update-failed/

root@vcenter [ /var/log/vmware/applmgmt ]# cd /storage/log/vmware/sso/tomcat/
root@vcenter [ /storage/log/vmware/sso/tomcat ]# ls -lha catalina*log
root@vcenter [ /storage/log/vmware/sso/tomcat ]# rm catalina*log
root@vcenter [ /storage/log/vmware/sso/tomcat ]# ls -lha localhost_access*
root@vcenter [ /storage/log/vmware/sso/tomcat ]# rm localhost_access*
root@vcenter [ /storage/log/vmware/sso/tomcat ]# cd /storage/log/vmware/eam/web/
root@vcenter [ /storage/log/vmware/eam/web ]# ls -lha catalina*log
root@vcenter [ /storage/log/vmware/eam/web ]# rm catalina*log
root@vcenter [ /storage/log/vmware/sso/web ]# ls -lha localhost_access*
root@vcenter [ /storage/log/vmware/eam/web ]# rm localhost_access*
root@vcenter [ /storage/log/vmware/eam/web ]# cd /storage/log/vmware/lookupsvc/tomcat/
root@vcenter [ /storage/log/vmware/lookupsvc/tomcat ]# ls -lha catalina*log
root@vcenter [ /storage/log/vmware/lookupsvc/tomcat ]# rm catalina*log
root@vcenter [ /storage/log/vmware/lookupsvc/tomcat ]# ls -lha localhost_access*
root@vcenter [ /storage/log/vmware/lookupsvc/tomcat ]# rm localhost_access*
root@vcenter [ /storage/log/vmware/lookupsvc/tomcat ]# cd /var/log/vmware/vmware-sps
root@vcenter [ /var/log/vmware/vmware-sps ]# ls -lha sps-access*log
root@vcenter [ /var/log/vmware/vmware-sps ]# rm sps-access*log

Reply
0 Kudos