[SOLVED] Is it possible to disable all logs local completly?

fireon

Distinguished Member
Oct 25, 2010
4,565
532
183
Austria/Graz
deepdoc.at
Hello,

we have remotelogging activated. @my homeserver i have the last two one Samsungs EVO's (only for the OS). So the wearoutlevel is at 85%. For more time with, is it possible to deactivate the proxmoxlogs completly?

pve-manager/5.3-11/d4907f84 (running kernel: 4.15.18-11-pve)
 
The problem is not only the logs, don't forget the RRD Graphs.

But you can stop and disable rsyslog, this should stop all standard logging.
For RRD you should check the pvestatd service.

But I don't know what side effects it will have.
 
The problem is not only the logs, don't forget the RRD Graphs.
Huch... the graphs, yes i forget...

Ok, i've disabel rsyslog and log journal only in the memory. Maybe it helps a littel bit.
 
Check with iotop for I/O heavy services. One service that has not come up is the /etc/pve-fuse-based filesystem pmxcfs that constantly writes, too.
 
  • Like
Reactions: fireon
Stop and disable rsyslog and journald
 
  • Like
Reactions: b0n3v
For example you have another HDD build in you can create an partiton an mount the logs on there. For example your harddrive is /dev/sde.
Code:
cfdisk /dev/sde # create a new partition
mkfs.ext4 /dev/sde1
mount /dev/sde1 /var/log1
cp -a /var/log/* /var/log1/.
systemctl stop rsyslog
rm -rf /var/log/*
umount /var/log1
mount /dev/sde1 /var/log
systemctl start rsyslog
Better is to mount the new Loglocation with UUID in fstab.
 
  • Like
Reactions: krysus and lixaotec