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

TheFuzzyFish

Member
Feb 20, 2018
17
0
6
26
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!