PVE LXC Filesystem Trim | scripts-underground PVE LXC Filesystem Trim | scripts-underground
⚠️
WARNING: Executing scripts from the internet without understanding what they do can be dangerous. This is an open frontier — always review the code before running it.

PVE LXC Filesystem Trim

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
Copied!