This is a known issue affecting VMware Cloud Foundation. Currently, there is no resolution.Workaround:
To workaround this issue on the VRM (2.1) or SDDC Manager Controller (2.2) VM, relocate the /home/vrack/vrm/logs/catalina.out
file to another system.
To automatically rotate the catalina.out
(vrm-tcserver service
) log file, add it to the logrotate process configuration:
:SSH to the VRM
VM (192.168.100.108
) as the root
user.
- SSH to the VM as the root user:
- for VMware Cloud Foundation 2.1, use the VRM VM (192.168.100.108).
- For VMware Cloud Foundation 2.2, use the SDDC Manager Controller VM (
192.168.100.40
).
- Create the
/etc/logrotate.d/tomcat
file using the following command:
echo -e "/home/vrack/vrm/logs/catalina.out {\n\tcopytruncate\n\tdaily\n\trotate 7\n\tcompress\n\tmissingok\n\tsize 500M\n}" > /etc/logrotate.d/tomcat
- Verify the file was created properly with: cat /etc/logrotate.d/tomcat command. The output looks similar to:
/home/vrack/vrm/logs/catalina.out {
copytruncate
daily
rotate 7
compress
missingok
size 500M
}
- Set the proper permissions on
/etc/logrotate.d/tomcat file using the following command
:
chmod 644 /etc/logrotate.d/tomcat
- Either wait until 0:05 UTC for the /etc/cron.daily/logrotate cron job to run automatically, or manually run logrotate using the following command:
/usr/sbin/logrotate /etc/logrotate.conf
About the logrotate configuration for tomcat (created in step 2 and shown in step 3):
/home/vrack/vrm/logs/catalina.out
- the (log) file to be rotateddaily
- rotates the catalina.out dailyrotate
– keeps at most 7 log filescompress
– compresses the rotated filessize
– rotates if the size of catalina.out is greater than 500 MB