5.2. Setting up periodic TRIM operation
This procedure enables a scheduled TRIM operation on your system.
Conditions préalables
- An LVM-VDO volume exists on your system.
Procédure
Enable and start the timer:
# systemctl enable --now fstrim.timer
Vérification
Verify that the timer is enabled:
# systemctl list-timers fstrim.timer
Exemple 5.1. Possible output of the verification procedure
# systemctl list-timers fstrim.timer NEXT LEFT LAST PASSED UNIT ACTIVATES Mon 2021-05-10 00:00:00 EDT 5 days left n/a n/a fstrim.timer fstrim.service
You will not see any reference to a VDO volume, because the fstrim.timer
runs across all mounted filesystems.
Ressources supplémentaires
-
fstrim(8)
man page