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
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
Please check the below KB and configure log rotation -
Please consider marking this answer as "correct" or "helpful" if you think your questions have been answered.
Cheers,
Supreet
Deleting can sometime cause some trouble.... try
echo > cloudvm-ram-size.log
which sets the file to 0byte.
Check also audit.log
Regards,
Joerg
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
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
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