Problem: Fixed 500MB snapshot size was too small for large/active LVs, causing I/O errors when snapshot space was exhausted during backup. Solution: Calculate appropriate snapshot size based on LV size: - Use 10% of LV size for snapshot space - Minimum 1GB to handle reasonable activity - Shows snapshot size in logs for transparency Example: - 20GB LV → 2GB snapshot - 100GB LV → 10GB snapshot - 500MB LV → 1GB snapshot (minimum) This prevents snapshot overflow and resulting I/O errors during backup. Changes: - GUI: Calculate snapshot size before creating - CLI: Same dynamic sizing logic - Both show calculated snapshot size in output - Handles both single LV and VG backup modes
16 KiB
Executable File
16 KiB
Executable File