VMware Cloud Community
oliver_g
Enthusiast
Enthusiast
Jump to solution

Delete the cloudvm-ram-size.log

Hello Members,

We have a VMware appliance - Linux based - virtualized - and are low on disk space.

We are looking for files to safely delete.  The cloudvm-ram-size.log file is 2gb in size.

can this be safely deleted?

Or any other suggestions on where we might recoup some space.

Thanks for great forum and products.

Eric

Reply
0 Kudos
1 Solution

Accepted Solutions
SupreetK
Commander
Commander
Jump to solution

Nope, create a new file with the name cloudvm_ram_size.log under /etc/logrotate.d/ and add the below stuff. Detailed steps in the article -

/storage/log/vmware/cloudvm/cloudvm-ram-size.log{

missingok

notifempty

compress

size 20k

monthly

create 0660 root cis

}

I don't think you need to empty the current file as the new log rotation setting is supposed to take care of it. Do not tamper with any of the existing files.

Please consider marking this answer as "correct" or "helpful" if you think your questions have been answered.

Cheers,

Supreet

View solution in original post

Reply
0 Kudos
5 Replies
SupreetK
Commander
Commander
Jump to solution

Please check the below KB and configure log rotation -

VMware Knowledge Base

Please consider marking this answer as "correct" or "helpful" if you think your questions have been answered.

Cheers,

Supreet

Reply
0 Kudos
IRIX201110141
Champion
Champion
Jump to solution

Deleting can sometime cause some trouble.... try

echo > cloudvm-ram-size.log

which sets the file to 0byte.

Check also audit.log

Regards,

Joerg

Reply
0 Kudos
oliver_g
Enthusiast
Enthusiast
Jump to solution

Hello Guys,

Thanks for the help on this.

Excellent - I will check the log rotation, etc.

Do you think it is safe to do the echo  to "remove" the file?

oliver g

Reply
0 Kudos
oliver_g
Enthusiast
Enthusiast
Jump to solution

Hello SupreeK,

I went to /etc/logrotate.d and found this file: cloudvm_ram_size.lr (not .log).

This file has the following entries:

/var/log/vmware/cloudvm/cloudvm-ram-size-output {

    compress

    dateext

    notifempty

    missingok

    nocreate

    daily

    rotate 7

}

would I be able to add the size info to this file?  I would also change daily to monthly.

Any Suggestions?

Thanks Again,

oliver g

Reply
0 Kudos
SupreetK
Commander
Commander
Jump to solution

Nope, create a new file with the name cloudvm_ram_size.log under /etc/logrotate.d/ and add the below stuff. Detailed steps in the article -

/storage/log/vmware/cloudvm/cloudvm-ram-size.log{

missingok

notifempty

compress

size 20k

monthly

create 0660 root cis

}

I don't think you need to empty the current file as the new log rotation setting is supposed to take care of it. Do not tamper with any of the existing files.

Please consider marking this answer as "correct" or "helpful" if you think your questions have been answered.

Cheers,

Supreet

Reply
0 Kudos