fstrim.service successfully runs as scheduled by fstrim.timer, but skips the /home partition.
Mail moved shortly after reboot by postfix/local does not show up in the folder of the user, but suddenly appears hours later, when new mail gets moved.
Hi
If you manually run the fstrim -v /home does it provide more information? There are a number of fstrim threads, one thing in common seems to be samsung devices… The firmware is all up to date on the NVMe?
/sbin/lspci | grep Non
01:00.0 Non-Volatile memory controller: Sandisk Corp WD Black 2018/PC SN520 NVMe SSD (rev 01)
lsblk -f /dev/nvme0n1
NAME FSTYPE LABEL UUID FSAVAIL FSUSE% MOUNTPOINT
nvme0n1
├─nvme0n1p1 26G 35% /
└─nvme0n1p2 191.2G 1% /data
systemctl status fstrim.service
● fstrim.service - Discard unused blocks on filesystems from /etc/fstab
Loaded: loaded (/usr/lib/systemd/system/fstrim.service; static; vendor preset: disabled)
Active: inactive (dead) since Mon 2019-10-14 00:00:16 CDT; 7h ago
Docs: man:fstrim(8)
Process: 7763 ExecStart=/usr/sbin/fstrim --fstab --verbose --quiet (code=exited, status=0/SUCCESS)
Main PID: 7763 (code=exited, status=0/SUCCESS)
Oct 14 00:00:01 grover systemd[1]: Starting Discard unused blocks on filesystems from /etc/fstab...
Oct 14 00:00:16 grover fstrim[7763]: /boot/efi: 254.8 MiB (267132928 bytes) trimmed on /dev/sda1
Oct 14 00:00:16 grover fstrim[7763]: /data: 191.5 GiB (205558149120 bytes) trimmed on /dev/nvme0n1p2
Oct 14 00:00:16 grover fstrim[7763]: /stuff: 38.1 GiB (40915017728 bytes) trimmed on /dev/sda3
Oct 14 00:00:16 grover fstrim[7763]: /boot: 676.8 MiB (709619712 bytes) trimmed on /dev/sda2
Oct 14 00:00:16 grover fstrim[7763]: /: 26.3 GiB (28203761664 bytes) trimmed on /dev/nvme0n1p1
Oct 14 00:00:16 grover systemd[1]: fstrim.service: Succeeded.
Oct 14 00:00:16 grover systemd[1]: Started Discard unused blocks on filesystems from /etc/fstab.
Running fstrim manually works fine. Firmware is up to date. Noticed the problem when mail would show up only delayed some weeks ago.
erlangen:~ # journalctl -b --grep nvme
-- Logs begin at Sun 2019-10-06 15:16:15 CEST, end at Mon 2019-10-14 21:25:28 CEST. --
Oct 14 18:18:21 erlangen kernel: nvme nvme0: pci function 0000:04:00.0
Oct 14 18:18:21 erlangen kernel: nvme nvme0: 8/0/0 default/read/poll queues
Oct 14 18:18:21 erlangen kernel: nvme0n1: p1 p2 p3 p4
Oct 14 18:18:21 erlangen kernel: EXT4-fs (nvme0n1p2): mounted filesystem with ordered data mode. Opts: (null)
Oct 14 18:18:22 erlangen kernel: EXT4-fs (nvme0n1p2): re-mounted. Opts: (null)
Oct 14 18:18:22 erlangen kernel: EXT4-fs (nvme0n1p3): mounted filesystem with ordered data mode. Opts: (null)
Oct 14 18:18:22 erlangen kernel: FAT-fs (nvme0n1p4): Volume was not properly unmounted. Some data may be corrupt. Please run fsck.
**Oct 14 18:18:22 erlangen systemd[1]: Condition check resulted in Auto-connect to subsystems on FC-NVME devices during boot being skipped.**
erlangen:~ #
Switched to a new system partition using btrfs and kept home partition. Same symptoms as before: fstrim skipped /home and after several days email would not show up anymore at ~/.local/share/local-mail/. Fixed fstrim.service and everything is back to normal now.