Re: weekly fstrim (still) necessary?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Sun, Jun 21, 2020 at 6:06 PM Ulli Horlacher
<framstag@xxxxxxxxxxxxxxxxxxxx> wrote:
>
> On Sun 2020-06-21 (17:57), Chris Murphy wrote:
>
> > > > util-linux provides fstrim.service and fstrim.timer for a while now.
> > > > fstrim.timer runs on Monday at 00:00 local time. The upstream default
> > > > is disabled, some distributions enable it by default.
> > >
> > > On Ubuntu 18.04 and RHEL 7.8 "systemctl is-enabled fstrim" returns
> > > "static"
> >
> > You need to check fstrim.timer, which in turn triggers fstrim.service.
>
> root@fex:~# cat /lib/systemd/system/fstrim.timer
> [Unit]
> Description=Discard unused blocks once a week
> Documentation=man:fstrim
> ConditionVirtualization=!container
>
> [Timer]
> OnCalendar=weekly
> AccuracySec=1h
> Persistent=true
>
> [Install]
> WantedBy=timers.target
>
>
> root@fex:~# cat /lib/systemd/system/fstrim.service
> [Unit]
> Description=Discard unused blocks
> ConditionVirtualization=!container
>
> [Service]
> Type=oneshot
> ExecStart=/sbin/fstrim -av
>

I'm familiar with the contents of the files. Do you have a question?


-- 
Chris Murphy



[Index of Archives]     [Linux Filesystem Development]     [Linux NFS]     [Linux NILFS]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux