meta data for this page
  •  

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
linux:fs:btrfs:snapshots [2021/02/17 14:39] – created niziaklinux:fs:btrfs:snapshots [2025/09/13 21:25] (current) niziak
Line 32: Line 32:
 DISABLE_APT_SNAPSHOT="no" DISABLE_APT_SNAPSHOT="no"
 </file> </file>
 +
 +==== Tuning ====
 +
 +<file /etc/updatedb.conf>
 +PRUNENAMES = ".snapshots"
 +</file>
 +
 +==== issues ====
 +
 +=== parser error : Document is empty ===
 +<code>
 +org.opensuse.Snapper[2126170]: :1: parser error : Document is empty
 +org.opensuse.Snapper[2126170]: ^
 +</code>
 +**Reason:** some info.xml files are empty or corrupted
 +**Solution:** locate empty info.xml files
 +
 +<code bash>
 +find . -name "info.xml" -type f -empty
 +
 +# and remove snapshots manually:
 +btrfs sub delete 23/snapshot
 +rm 23/info.xml
 +</code>
 +
 +=== system lags ===
 +
 +''snapper-cleanup.timer'' runs every 24h from system boot. It cause lots of lagging on GUI, mainly due to very slow writes to ''/tmp''.
 +
 +Workaround:
 +
 +<code bash>
 +systemctl edit snapper-cleanup.timer
 +
 +[Timer]
 +OnUnitActiveSec=
 +OnCalendar=*-*-* 02:11:00
 +</code>
 +
 +From:
 +[[https://wiki.archlinux.org/title/Btrfs#Quota_groups_(qgroups)]]
 +
 +While Btrfs qgroups are considered stable for general use, enabling qgroups, especially in environments with frequent creation of large numbers of snapshots, can still lead to **performance degradation**, particularly during **snapshot deletion**. Qgroup accounting introduces additional metadata overhead and may affect system responsiveness under high-intensity snapshot workloads. 
 +