On thin-provisioned storage (local-lvm, ZFS), blocks a VM has freed are only returned to the pool after a trim. Running fstrim from the TUI reclaims space without logging in to the VM.
Proposal
A key on the info screen runs fstrim in a running VM that has the guest agent enabled.
First ping the agent and show a clear message if it is not running.
Not for LXC: containers have no guest agent. Use pct fstrim on the node instead, which could reuse the SSH path from the LXC shell feature.
cv4pve-cli (2.4.0)
do vm agent ping <node> <vmid>
do vm agent fstrim <node> <vmid>
Done when
fstrim runs on VM 108 (with approval) and the result is shown.
## Why
On thin-provisioned storage (`local-lvm`, ZFS), blocks a VM has freed are only returned to the pool after a trim. Running `fstrim` from the TUI reclaims space without logging in to the VM.
## Proposal
- A key on the info screen runs `fstrim` in a running VM that has the guest agent enabled.
- First ping the agent and show a clear message if it is not running.
- Not for LXC: containers have no guest agent. Use `pct fstrim` on the node instead, which could reuse the SSH path from the LXC shell feature.
## cv4pve-cli (2.4.0)
- `do vm agent ping <node> <vmid>`
- `do vm agent fstrim <node> <vmid>`
## Done when
- fstrim runs on VM 108 (with approval) and the result is shown.
- Tests are written first.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
Why
On thin-provisioned storage (
local-lvm, ZFS), blocks a VM has freed are only returned to the pool after a trim. Runningfstrimfrom the TUI reclaims space without logging in to the VM.Proposal
fstrimin a running VM that has the guest agent enabled.pct fstrimon the node instead, which could reuse the SSH path from the LXC shell feature.cv4pve-cli (2.4.0)
do vm agent ping <node> <vmid>do vm agent fstrim <node> <vmid>Done when
Co-Authored-By: Claude Opus 5.5 noreply@anthropic.com