VMware vSphere

 View Only
  • 1.  cleaning out old logs in vcsa 6

    Posted Dec 28, 2017 03:48 PM

    any idea where I can clean out or remove old logs older than 6 month on the vcsa appliance?



  • 2.  RE: cleaning out old logs in vcsa 6

    Posted Dec 28, 2017 03:52 PM

    Start by identifying which application within the vCSA is occupying the largest amount of log space with du -sh /storage/log/vmware/*



  • 3.  RE: cleaning out old logs in vcsa 6

    Posted Dec 28, 2017 03:55 PM

    Hello,

    You can check this KB article VMware Knowledge Base

    This is for /storage/log/sso folder growing large due to log files and if root is full then you can use this below KB

    VMware Knowledge Base

    Thanks,

    MS



  • 4.  RE: cleaning out old logs in vcsa 6

    Posted Dec 28, 2017 04:21 PM



  • 5.  RE: cleaning out old logs in vcsa 6

    Posted Dec 28, 2017 04:25 PM

    another one



  • 6.  RE: cleaning out old logs in vcsa 6

    Posted Dec 28, 2017 04:28 PM

    In your case, you probably have some large Java heap dumps (from crashes in the web client) at vsphere-client, which is fairly common. ls -lh inside that directory to show its contents.



  • 7.  RE: cleaning out old logs in vcsa 6

    Posted Dec 28, 2017 04:30 PM



  • 8.  RE: cleaning out old logs in vcsa 6

    Posted Dec 28, 2017 04:31 PM

    You can remove the java_pid30975.hprof files which is 1.8GB size from that folder. It looks like the vCenter is with external PSC.

    thanks,

    MS



  • 9.  RE: cleaning out old logs in vcsa 6

    Posted Dec 28, 2017 04:32 PM

    That .hprof file is a Java dump and can be removed. I see you also have a logbrowser directory which indicates you've done some generation from within the web client. Do a du -sh * inside the current directory and show its size. Usually things inside logbrowser can be removed.



  • 10.  RE: cleaning out old logs in vcsa 6

    Posted Dec 28, 2017 04:34 PM

    Also, the cloudvm folder size is huge so I guess you might be hitting issue similar to the one discussed on this VMware Knowledge Base

    Rather than doing workaround in that KB. You can just make that file 0 size by below command. This will just make the file size zero bytes if its large

    cat /dev/null > /storage/log/vmware/cloudvm/cloudvm-ram-size.log

    Thanks,

    MS



  • 11.  RE: cleaning out old logs in vcsa 6

    Posted Dec 28, 2017 06:59 PM



  • 12.  RE: cleaning out old logs in vcsa 6

    Posted Dec 28, 2017 07:01 PM



  • 13.  RE: cleaning out old logs in vcsa 6

    Posted Dec 28, 2017 07:16 PM

    1.4GB is taking by cloudvm-ram-size.log. You dont need to delete. If you do not want this log then you can make it to 0 by using the above command. It is generic unix command.

    Thanks,

    MS



  • 14.  RE: cleaning out old logs in vcsa 6

    Posted Dec 29, 2017 09:23 AM

    Have a look into the following KB article about Java dump files on VCSA 6.5

    VMware Knowledge Base