[Bug 1858152] Re: fstrim.service no longer trims /home partition

Jeffery To 1858152 at bugs.launchpad.net
Mon Jan 20 20:34:00 UTC 2020


Thanks Matt. Looks like the fix will be in the next upstream release
(2.35).

** Also affects: util-linux-ng via
   https://github.com/karelzak/util-linux/issues/824
   Importance: Unknown
       Status: Unknown

-- 
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to util-linux in Ubuntu.
https://bugs.launchpad.net/bugs/1858152

Title:
  fstrim.service no longer trims /home partition

Status in Util-Linux-ng:
  Unknown
Status in util-linux package in Ubuntu:
  Confirmed

Bug description:
  When I was running disco, fstrim.service would trim all of my
  partitions:

  Oct 21 00:00:18 computer systemd[1]: Starting Discard unused blocks on filesystems from /etc/fstab...
  Oct 21 00:00:37 computer fstrim[9588]: /home: 25 GiB (26797150208 bytes) trimmed on /dev/mapper/ubuntu--vg-home
  Oct 21 00:00:37 computer fstrim[9588]: /boot: 805.4 MiB (844546048 bytes) trimmed on /dev/sda5
  Oct 21 00:00:37 computer fstrim[9588]: /: 5.5 GiB (5929816064 bytes) trimmed on /dev/mapper/ubuntu--vg-root
  Oct 21 00:00:37 computer systemd[1]: fstrim.service: Succeeded.
  Oct 21 00:00:37 computer systemd[1]: Started Discard unused blocks on filesystems from /etc/fstab.

  After upgrading to eoan, my /home partition is no longer trimmed:

  Oct 28 00:00:21 computer systemd[1]: Starting Discard unused blocks on filesystems from /etc/fstab...
  Oct 28 00:00:32 computer fstrim[24667]: /boot: 781.1 MiB (819011584 bytes) trimmed on /dev/sda5
  Oct 28 00:00:32 computer fstrim[24667]: /: 7.2 GiB (7696994304 bytes) trimmed on /dev/mapper/ubuntu--vg-root
  Oct 28 00:00:32 computer systemd[1]: fstrim.service: Succeeded.
  Oct 28 00:00:32 computer systemd[1]: Started Discard unused blocks on filesystems from /etc/fstab.

  Checking the unit file (/lib/systemd/system/fstrim.service), I noticed
  there is a "ProtectHome=yes" option. Removing this option caused my
  /home partition to be trimmed once again.

  I believe the "ProtectSystem=strict" option may also cause partitions
  in non-standard partition schemes to be skipped by fstrim.service
  (although I have not tested this).

To manage notifications about this bug go to:
https://bugs.launchpad.net/util-linux-ng/+bug/1858152/+subscriptions



More information about the foundations-bugs mailing list