Skip to content

Commit

Permalink
[armhf][Nokia-7215] changes fstrim.timer to daily (#14723)
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
jon-nokia authored and mssonicbld committed May 11, 2023
1 parent e34c178 commit 2b21cd5
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
[Unit]
Description=Discard unused blocks daily

[Timer]
OnCalendar=daily
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
nokia-7215_plt_setup.sh usr/sbin
7215/scripts/nokia-7215init.sh usr/local/bin
7215/service/nokia-7215init.service etc/systemd/system
7215/service/fstrim.timer/timer-override.conf /lib/systemd/system/fstrim.timer.d
7215/sonic_platform-1.0-py3-none-any.whl usr/share/sonic/device/armhf-nokia_ixs7215_52x-r0
entropy.py etc/
inband_mgmt.sh etc/

0 comments on commit 2b21cd5

Please sign in to comment.