You might need to mark the file systems as discardable. While on my laptop all the timers and services were enabled, the fstrim log entry was missing (only: starting… stopping… reboot… starting… etc.). There is an important point which needs to be added to the answer of to make it complete. May 02 20:37:11 user-laptop systemd: Stopped Discard unused blocks once a week.Įdit: Please read the comments, this answer mixes up two mechanisms! Old answer May 02 06:21:59 user-laptop systemd: Started Discard unused blocks once a week. May 01 20:21:43 user-laptop systemd: Stopped Discard unused blocks once a week. May 01 07:57:48 user-laptop systemd: Started Discard unused blocks once a week. View journal entries for fstrim.timer: $ journalctl -u fstrim.timer May 07 05:29:05 user-laptop systemd: Started Discard unused blocks. May 07 05:29:03 user-laptop systemd: Starting Discard unused blocks. May 01 07:57:51 user-laptop systemd: Started Discard unused blocks. May 01 07:57:48 user-laptop systemd: Starting Discard unused blocks. View journal entries for rvice: $ journalctl -u rvice (add to/remove from startup, does not change current active status) $ sudo systemctl fstrim.timer (does not change startup status) $ sudo systemctl fstrim.timer Loaded: loaded (/lib/systemd/system/fstrim.timer enabled vendor preset: enabled)Īctive: active (waiting) since Thu 05:45:11 BST 4h 42min ago fstrim.timer - Discard unused blocks once a week. ![]() ![]() View status of fstrim.timer: $ systemctl status fstrim.timer View configuration of fstrim.timer: $ systemctl cat fstrim.timerĭescription=Discard unused blocks once a week Output the number of bytes passed from the filesystem down the block stack to the device for potential discard. a, Trim all mounted filesystems on devices that support the discard operation. ![]() View configuration of rvice: $ systemctl cat rvice From 18.04 fstrim (discard unused blocks) is enabled to run weekly by default for all mounted filesystems on devices that support the discard operation.įstrim is managed by systemctl, not cron, and is defined by a systemd service unit ( rvice) and timer unit ( fstrim.timer)
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |