Community discussions

MikroTik App
 
moveik
Frequent Visitor
Frequent Visitor
Topic Author
Posts: 54
Joined: Tue Nov 24, 2020 1:16 am

Does changing configs causes to a Flash write ?

Sat Mar 27, 2021 1:10 pm

Whenever configurations are changed - either via script or WebFig - does it perform a write to the Flash - or it writes to memory?

For example:

If executing a script with the Scheduler while the script has this line:
/ip firewall address-list set [ find comment="My address #1" ] disabled=yes
Then:
  1. If - before running the script - the config was "disabled=no" - would it write the new config ("disabled=yes") to Flash?
  2. If - before running the script - the config was "disabled=yes" (which means nothing really changed) - would it write the new config ("disabled=yes") to Flash?
 
msatter
Forum Guru
Forum Guru
Posts: 2897
Joined: Tue Feb 18, 2014 12:56 am
Location: Netherlands / Nīderlande

Re: Does changing configs causes to a Flash write ?

Sat Mar 27, 2021 1:47 pm

All what is remembered after a reboot has been written into flash. The dynamic (D) items are kept in memory and are lost as soon you reboot.

When setting, a item that has already that status then only Mikrotik knows if it just overwrite the current status or that it only overwrites if the status is different.
 
moveik
Frequent Visitor
Frequent Visitor
Topic Author
Posts: 54
Joined: Tue Nov 24, 2020 1:16 am

Re: Does changing configs causes to a Flash write ?

Sat Mar 27, 2021 3:49 pm

All what is remembered after a reboot has been written into flash.
When exactly does the device performs a write to Flash ?
Would configs be saved to Flash if an ungraceful shutdown (e.g. power cord to the device got suddenly disconnected) has happened about 1 minute after changing the config?
When setting, a item that has already that status then only Mikrotik knows if it just overwrite the current status or that it only overwrites if the status is different.
Do I need to send a question to Mikrotik via email?
 
User avatar
mkx
Forum Guru
Forum Guru
Posts: 11442
Joined: Thu Mar 03, 2016 10:23 pm

Re: Does changing configs causes to a Flash write ?

Sat Mar 27, 2021 5:20 pm

All what is remembered after a reboot has been written into flash.
When exactly does the device performs a write to Flash ?
SOP is to write changes imediately. MT stated that simply cutting power to device shouldn't affect it in any way. However there are indications that marginal power supply might affect success of writes to flash in some way.

When setting, a item that has already that status then only Mikrotik knows if it just overwrite the current status or that it only overwrites if the status is different.
Do I need to send a question to Mikrotik via email?
Yes, information about exact behaviour is not public.
 
moveik
Frequent Visitor
Frequent Visitor
Topic Author
Posts: 54
Joined: Tue Nov 24, 2020 1:16 am

Re: Does changing configs causes to a Flash write ?

Sun Mar 28, 2021 3:49 pm

SOP is to write changes imediately. MT stated that simply cutting power to device shouldn't affect it in any way. ...
What is "SOP" and "MT" ?

In that case, it seems that a script which is scheduled often could (potentially) degrade the Flash quickly which would subsequently adversely affect the device operation.
 
User avatar
mkx
Forum Guru
Forum Guru
Posts: 11442
Joined: Thu Mar 03, 2016 10:23 pm

Re: Does changing configs causes to a Flash write ?

Sun Mar 28, 2021 4:14 pm

What is "SOP" and "MT" ?
Standard Operating Procedure
MikroTik

In that case, it seems that a script which is scheduled often could (potentially) degrade the Flash quickly which would subsequently adversely affect the device operation.
Yes. So you should think of ways to make your script less "aggressive". Or plan for router replacement in few years time. Whichever is easier for you.
 
msatter
Forum Guru
Forum Guru
Posts: 2897
Joined: Tue Feb 18, 2014 12:56 am
Location: Netherlands / Nīderlande

Re: Does changing configs causes to a Flash write ?

Sun Mar 28, 2021 4:49 pm

I think that there is an option to not to write direct to the flash by using Safe Mode in Winbox. Left top of the screen and this could also be used as a delayed write.

viewtopic.php?p=545506

https://blog.ligos.net/2018-02-22/Makin ... -Safe.html

https://wiki.mikrotik.com/wiki/Manual:Console#Safe_Mode

https://help.mikrotik.com/docs/display/ ... getreemode

Who is online

Users browsing this forum: Ahrefs [Bot], Bing [Bot] and 33 guests