On 10/02/2022 12:00, dorset-requ...@mailman.lug.org.uk wrote:
Send dorset mailing list submissions to
dorset@mailman.lug.org.uk
To subscribe or unsubscribe via the World Wide Web, visit
https://mailman.lug.org.uk/mailman/listinfo/dorset
or, via email, send a message with subject or body 'help' to
dorset-requ...@mailman.lug.org.uk
You can reach the person managing the list at
dorset-ow...@mailman.lug.org.uk
When replying, please edit your Subject line so it is more specific
than "Re: Contents of dorset digest..."
Today's Topics:
1. fstrim weirdness (Hamish McIntyre-Bhatty)
2. Re: fstrim weirdness (Neil Stone)
3. Re: fstrim weirdness (Victor Churchill)
4. Re: fstrim weirdness (Neil Stone)
5. Re: fstrim weirdness (Hamish McIntyre-Bhatty)
6. Curious anecdote about using ecryptfs (Hamish McIntyre-Bhatty)
7. Re: fstrim weirdness (Tim Waugh)
8. Re: fstrim weirdness (Hamish McIntyre-Bhatty)
9. Re: fstrim weirdness (Tim Waugh)
----------------------------------------------------------------------
Message: 1
Date: Wed, 9 Feb 2022 17:55:56 +0000
From: Hamish McIntyre-Bhatty <d...@hamishmb.com>
To: dorset@mailman.lug.org.uk
Subject: [Dorset] fstrim weirdness
Message-ID: <47abd098-4851-47a6-ca9e-adef6e5e5...@hamishmb.com>
Content-Type: text/plain; charset=UTF-8; format=flowed
Hi there,
I believe a while back I was talking about TRIM here, more specifically
about it not running automatically on my systems, and I think someone
recommended I enable fstrim.service with systemd.
I finally got around to that, only to find that it was already enabled,
and apparently not doing anything. As I don't leave my systems on 24/7,
is it safe to assume that the timer isn't firing when the system is
booted up later, after the configured time for TRIM has passed?
If so, does anyone know how to configure a task like this to run when
scheduled, or alternatively when the system is next booted up in the
case that the event was missed?
I know CRON can't do this, and I assumed the point of using systemd
timers was that they could do this, but alas perhaps not. I assume there
must be a standard way to do this, because it seems like a rather big
omission, considering that other commercial operating systems Who Must
Not Be Named (TM) seem to have had this feature for a while.
Any ideas?
Hamish
Hamish, a couple of points:
1. man 5 crontab introduces some special "times" for action, includingÂ
@reboot, "run once after reboot"
2. On my mageia system, anacron is triggered hourly to sweep up any
missed triggers. It usually exits with no jobs run.
Best wishes, Graeme
--
Next meeting: Online, Jitsi, Tuesday, 2022-03-01 20:00
Check to whom you are replying
Meetings, mailing list, IRC, ... http://dorset.lug.org.uk
New thread, don't hijack: mailto:dorset@mailman.lug.org.uk