REPO_BASE=https://raw.githubusercontent.com/scripts-underground/proxmox/main bash -c "$(curl -fsSL https://raw.githubusercontent.com/scripts-underground/proxmox/main/scripts/pve/fstrim.sh)"
PVE LXC Filesystem Trim
Releases unused blocks from LXC container disks back to the storage device. Recommended for SSD, NVMe, and thin-provisioned storage.
Notes
- Only effective on SSD, NVMe, thin-LVM, or discard-capable storage
- Select containers to exclude from trimming
- Can temporarily start stopped containers for trimming