mirror of
https://github.com/Corsinvest/cv4pve-autosnap.git
synced 2026-04-25 08:55:49 +03:00
Labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/cv4pve-autosnap#112
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/Corsinvest/cv4pve-autosnap/pull/112
Author: @franklupo
Created: 12/24/2025
Status: ✅ Merged
Merged: 12/24/2025
Merged by: @franklupo
Base:
master← Head:fix/issue-108-ignore-bind-mounts📝 Commits (1)
84bc604Fix storage check to ignore bind mounts in LXC containers📊 Changes
2 files changed (+10 additions, -5 deletions)
View changed files
📝
Directory.Build.props(+1 -1)📝
src/Corsinvest.ProxmoxVE.AutoSnap.Api/Application.cs(+9 -4)📄 Description
Summary
Fixed bug #108 where LXC containers with bind mount directories were incorrectly skipped during snapshot creation with the message "Skip VM problem storage space out of 100%".
Problem
After upgrading to Proxmox VE 9, LXC containers configured with bind mount directories (e.g.,
mp1: /storage1,mp=/storage1) were being skipped during snapshot operations. The storage validation logic was checking ALL disk storage entries, including bind mounts, which are not Proxmox-managed storages and therefore not present in thestoragesCheckdictionary.When a bind mount directory was encountered:
TryGetValuereturnedfalse(storage not found)validStoragewas set tofalseSolution
Modified the storage validation logic to:
validStorage = true(optimistic approach)storagesCheck(Proxmox-managed storage)validStorage = falseonly when a Proxmox-managed storage exceeds the space thresholdWhy This Is Correct
Snapshots in Proxmox only capture Proxmox-managed storage volumes (ZFS subvolumes, LVM volumes, etc.). Bind mount directories are external filesystem paths that:
Testing
Containers with configurations like:
Will now correctly create snapshots, ignoring the
/storage1bind mount during storage space validation.Fixes #108
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.