Community discussions

MikroTik App
 
jdr
just joined
Topic Author
Posts: 1
Joined: Sun Jan 28, 2024 8:48 am

How to prevent unnecessary sector writes by User Manager?

Sun Feb 04, 2024 8:02 pm

Hi,

I have successfully set up 802.1X based VLAN assignment using the CRS326 internal User Manager for RADIUS.

What I do not like about this setup is that User Manager unnecessarily writes to the internal flash for session management. I am not interested in seeing the session history whenever a device connects or disconnects and therefore destroying my flash cells too quickly. The only thing that should be written to disk are changes in the User Manager configuration which happen rarely.

So I have implemented the following workaround:
  • Configured a 512 kB tmpfs disk "ram-um"
  • Set User Manager DB path to /ram-um/user-manager5
  • Scheduled a startup script that just executes /user-manager/database/load name=flash/um-backup.umb
  • Whenever I change something in User Manager manually, I run /user-manager/database/save name=flash/um-backup afterwards
It seems to work properly - no more unnecessary Flash writes when devices connect or disconnect. Still I wonder whether this is the best way to implement it?

Who is online

Users browsing this forum: Ahrefs [Bot], sutrus and 17 guests