LVM2: Setting Snapshots to Auto-Extend With a Threshold Setting

Case: Forced to use LVM2 snapshots as a backup solution since the OS installed as LVM instead of regular partitions.

Solution

  1. sudo su
  2. nano /etc/lvm/lvm.conf
  3. Ctrl+W for: snapshot_autoextend_threshold
  4. Set this to appropriate value (ex: 98)
  5. Ctrl+W for: snapshot_autoextend_percent
  6. Set this to appropriate value (ex: 20)
  7. Save with Ctrl+O

Reference

Was this post helpful?