[SOLVED] Can you perform an action without a log entry appearing in the cluster log?

TheFuzzyFish

Member
Feb 20, 2018
17
0
6
25
So I recently made a cron job that, every 6 hours, would take a snapshot of every VM (just to have faster and up-to-date backups to protect against user error). Everything is flawless and I have yet to encounter any issues.

BUT there is one hiccup that is getting rather annoying: the cluster log is being stuffed with repeated task logs of all the snapshots (see attached image)
upload_2018-9-5_7-8-59.png

Is there any way to use the "qm" cli tool to silently perform a snapshot to avoid this problem? Or maybe some other clever way to remove the log entries as they appear?
 
While not really the answer you are looking for, if using ZFS, snapshots can be created outside PM API / tools and will not be logged.
 
My _guess_ is that when using PVE tools or API, you will always have your actions logged.
I would not want to have it any other way.

But _maybe_, you can use lvm2 directly, as I do with ZFS and it does not show up in PVE logs.
 
I didn't want to stray far from the tools to avoid catastrophic "whoopsies," especially considering I don't have a test PVE box to play with, so I probably won't look into that. But good suggestion, I'll keep it in mind.

Thank you!
 

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!