Compare commits

...
Author SHA1 Message Date
579cbf8f31 Update migrations/1773976181.sh
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
2026-03-25 08:14:11 +01:00
David Heinemeier HanssonandClaude Opus 4.6 b50103d7ff Disable space-aware snapper limits since quotas are off
SPACE_LIMIT and FREE_LIMIT depend on btrfs quotas to function.
With quotas disabled, switch to number-based pruning only by
zeroing out space limits for both new and existing installs.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-24 14:46:26 +01:00
David Heinemeier Hansson 31dd431c1a Drop btrfs quotas to prevent performance issues
See #4403
2026-03-24 07:54:03 +01:00
2 changed files with 17 additions and 5 deletions
+5 -5
View File
@@ -61,15 +61,15 @@ EOF
fi
fi
# Enable quota to allow space-aware algorithms to work
sudo btrfs quota enable /
# Disable btrfs quotas (they cause performance issues)
sudo btrfs quota disable / 2>/dev/null || true
# Tweak default Snapper configs
# Tweak default Snapper configs (number-based pruning only, space-aware limits need quotas)
sudo sed -i 's/^TIMELINE_CREATE="yes"/TIMELINE_CREATE="no"/' /etc/snapper/configs/{root,home}
sudo sed -i 's/^NUMBER_LIMIT="50"/NUMBER_LIMIT="5"/' /etc/snapper/configs/{root,home}
sudo sed -i 's/^NUMBER_LIMIT_IMPORTANT="10"/NUMBER_LIMIT_IMPORTANT="5"/' /etc/snapper/configs/{root,home}
sudo sed -i 's/^SPACE_LIMIT="0.5"/SPACE_LIMIT="0.3"/' /etc/snapper/configs/{root,home}
sudo sed -i 's/^FREE_LIMIT="0.2"/FREE_LIMIT="0.3"/' /etc/snapper/configs/{root,home}
sudo sed -i 's/^SPACE_LIMIT="0.5"/SPACE_LIMIT="0"/' /etc/snapper/configs/{root,home}
sudo sed -i 's/^FREE_LIMIT="0.2"/FREE_LIMIT="0"/' /etc/snapper/configs/{root,home}
chrootable_systemctl_enable limine-snapper-sync.service
fi
+12
View File
@@ -0,0 +1,12 @@
echo "Disable btrfs quotas and space-aware snapper limits on existing installs"
if omarchy-cmd-present btrfs; then
if sudo btrfs quota status / 2>/dev/null | grep -q "Quota enabled: yes"; then
sudo btrfs quota disable /
fi
fi
if omarchy-cmd-present snapper; then
sudo sed -i 's/^SPACE_LIMIT="0\.3"/SPACE_LIMIT="0"/' /etc/snapper/configs/{root,home} 2>/dev/null
sudo sed -i 's/^FREE_LIMIT="0\.3"/FREE_LIMIT="0"/' /etc/snapper/configs/{root,home} 2>/dev/null
fi