Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Note creation of lots of files in /etc/lvm/archive #18

Open
valankar opened this issue Oct 29, 2024 · 3 comments
Open

Note creation of lots of files in /etc/lvm/archive #18

valankar opened this issue Oct 29, 2024 · 3 comments

Comments

@valankar
Copy link

Thanks for this script, it's quite useful.

Something I noticed recently is when LVM snapshots are made, every old config is stored in /etc/lvm/archive by default. When running the snapshot script hourly, this directory can fill up with a lot of files, which surprised me. I ended up having a cron to delete old files in that directory. Might be worthwhile to just note it in the readme. Ideally I would prefer to skip snapshots for LVM, but this is probably not possible since vms/containers could have a combination of both LVM and ZFS resources.

@lowell80
Copy link
Contributor

Does tweaking the backup section of /etc/lvm/lvm.conf help at all? Specifically the retain_min and retain_days values could be helpful.

(I'm not associated with this project at all. I just started using it stubbled upon this question.)

@valankar
Copy link
Author

Unfortunately not. These are minimum settings, not maximum.

https://serverfault.com/questions/653261/lvm-archive-and-backup-files-not-purging

@jocelynj
Copy link
Contributor

jocelynj commented Nov 7, 2024

As far as I know, ZFS snapshots are automatically removed by Proxmox itself when a lxc snapshot is removed. So, should these LVM metadata be automatically removed by Proxmox?

You could skip snapshots for LVM by using some tags on Proxmox, and exclude them on the command line.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants