Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[action] [PR:14723] [armhf][Nokia-7215] changes fstrim.timer to daily #15125

Merged
merged 1 commit into from
May 17, 2023

Conversation

mssonicbld
Copy link
Collaborator

Using override.conf, we modify the fstrim.timer service.

For armhf, Nokia-7215 platform, we modify fstrim.timer to run daily
instead of weekly. This is required because the size of the SSD on
this platform is 16GB, which on average is nearly 10 times smaller than
most other sonic platforms. With smaller disk and the ever increasing
level of logging done by sonic, this change is required to prevent
the SSD from entering a read-only state due to inadequate free blocks.

Why I did it

Required to prevent the SSD from entering a read-only state due to inadequate free blocks

Work item tracking
  • Microsoft ADO (number only):

How I did it

How to verify it

Verified that override works.

admin@sonic-amazon:~$ sudo systemctl status fstrim.timer 
\u25cf fstrim.timer - Discard unused blocks daily
 Loaded: loaded (/lib/systemd/system/fstrim.timer; enabled; vendor preset: enabled)
 Drop-In: /usr/lib/systemd/system/fstrim.timer.d
 \u2514\u2500timer-override.conf
 Active: active (waiting) since Thu 2023-04-27 14:14:18 UTC; 36min ago
 Trigger: Fri 2023-04-28 00:00:00 UTC; 9h left
 Triggers: \u25cf fstrim.service
 Docs: man:fstrim

Apr 27 14:14:18 sonic systemd[1]: Started Discard unused blocks daily.
admin@sonic-amazon:~$ cat /usr/lib/systemd/system/fstrim.timer.d/timer-override.conf 
[Unit]
Description=Discard unused blocks daily

[Timer]
OnCalendar=daily
admin@sonic-amazon:~$ 

Which release branch to backport (provide reason below if selected)

  • 201811
  • 201911
  • 202006
  • 202012
  • 202106
  • 202111
  • 202205
  • 202211

Tested branch (Please provide the tested image version)

  • 202012
  • master

Description for the changelog

Link to config_db schema for YANG module changes

A picture of a cute animal (not mandatory but encouraged)

Using timer-override.conf, we modify the fstrim.timer service.

For armhf, Nokia-7215 platform, we modify fstrim.timer to run daily
instead of weekly.  This is required because the size of the SSD on
this platform is 16GB, which on average is nearly 10 times smaller than
most other sonic platforms.  With smaller disk and the ever increasing
level of logging done by sonic, this change is required to prevent
the SSD from entering a read-only state due to inadequate free blocks.
@mssonicbld
Copy link
Collaborator Author

Original PR: #14723

@mssonicbld mssonicbld merged commit 17771ef into sonic-net:202211 May 17, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants