ABOUT
This maintains SSD performance by managing unused blocks. Thin-provisioned storage systems also require management to prevent unnecessary storage use. VMs automate fstrim, while LXC containers need manual or automated fstrim processes for optimal performance.
infoExecute within the Proxmox shell
warningThis is designed to work with SSDs / Thin Provisioned storage only.
INSTALL
Approved local installer
DefaultDebian 13
Approved locallyRun this command in the Proxmox VE shell. It downloads the immutable approved file, verifies SHA-256, and only then executes it.
( url='https://scripts.francoisvw.com/snapshots/c19711ea1b2526bec67e34be948114e255b5a811/tools/pve/fstrim.sh'; sha='af388ecd9dd509387d52a91bbe38da032e9abd181f8b648a6ea1e5887e6cd433'; tmp="$(mktemp)" || exit; curl -fsSL "$url" -o "$tmp" && printf '%s %s\n' "$sha" "$tmp" | sha256sum -c - && bash "$tmp"; rc=$?; rm -f "$tmp"; exit "$rc" )
View approved source ↗Path tools/pve/fstrim.shSHA-256 af388ecd9dd509387d52a91bbe38da032e9abd181f8b648a6ea1e5887e6cd433 LOCAL CHANGE REVIEW
Approved vs latest fetched source
Sign in with a passkey to inspect pending source changes. Approved content remains public.