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

fireon

Distinguished Member
Oct 25, 2010
4,494
471
153
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
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

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!