Files
backup_to_external_m.2/enhanced_simple_backup.sh
root f12d07be7f fix: Dynamic snapshot sizing to prevent I/O errors
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
2025-10-09 01:06:12 +02:00

16 KiB
Executable File