Fstrim on LXC while running or stopped?

gfngfn256

Renowned Member
Mar 29, 2023
1,564
428
88
Can the command
Code:
#pct fstrim <vmid>
be run while the container is either running or stopped?

I have a debian LXC that runs qbittorrent & wireguard (amongst some other services) and was wondering how best to run the pct fstrim command.

Also, when will it be the most effective in trimming? (Running or stopped).

The container has the following Disk space:

Code:
rootfs: Storage:104/vm-104-disk-1.raw,size=32G
This is a Directory type Storage on a 2tb SSD ext4 partition
 
Last edited:
Can the command pct fstrim <vmid> be run while the container is either running or stopped?
This command can be run at any time, whether the container is running or not.

As for efficiency, It also should not matter (much). Or at least not that one has to think about it.

Hope this helps!
 

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!