ZPOOL-TRIM(8) | System Manager's Manual | ZPOOL-TRIM(8) |
zpool-trim
—
initiate TRIM of free space in ZFS storage pool
zpool |
trim [-dw ]
[-r rate]
[-c |-s ]
pool [device]… |
Initiates an immediate on-demand TRIM operation for all of the free space in a pool. This operation informs the underlying storage devices of all blocks in the pool which are no longer allocated and allows thinly provisioned devices to reclaim the space.
A manual on-demand TRIM operation can be initiated irrespective of the autotrim pool property setting. See the documentation for the autotrim property above for the types of vdev devices which can be trimmed.
-d
,
--secure
-r
,
--rate
rate-c
,
--cancel
-s
,
--suspend
zpool
trim
with no flags
on the relevant target devices.-w
,
--wait
On machines using systemd, trim timers can be enabled on a
per-pool basis. weekly
and
monthly
timer units are provided.
systemctl
enable
zfs-trim-weekly@rpool.timer
--now
systemctl
enable
zfs-trim-monthly@otherpool.timer
--now
systemd.timer(5), zpoolprops(7), zpool-initialize(8), zpool-wait(8)
May 27, 2021 | OpenZFS |