how to stop gigantic debug log files...?

Edward de Jong

New Member
Mar 1, 2016
1
0
1
71
i am seeing multi-gigabyte log files being created, one called /var/log/debug, and another in /var/log/cluster/rgmanager.log both log files say the same boring thing:
rgmanager [pvevm\] CT 1234xx is running

how can i stop this gigantic process? the red hat help says turn off a flag in a config file but those instructions don't seem to apply these log files are huge and evidently can cause a serious CPU drain when some process tries to read them.

any help is greatly appreciated.
 
In your cluster.conf add (or edit if already there) the logging section:

For editing do:
Code:
cp /etc/pve/cluster.conf /etc/pve/cluster.conf.new
nano /etc/pve/cluster.conf.new
# edit it like descirbed below

ccs_config_validate /etc/pve/cluster.conf.new

# if it validates
mv /etc/pve/cluster.conf.new /etc/pve/cluster.conf

Code:
<?xml version="1.0">
<cluster ...>
[...]
<logging syslog_priority="error" to_file="no"/>
[...]
</cluster>

This is more an example, but should work for you, see the logging section in
Code:
man cluster.conf
for all options.
You could have to restart the rgmanager service.