I have run into a problem where the logs and sessions have filled up the disk on my RB450. This is a very small hotspot using UM and after 2 months, the logs and sessions have filled the disk.
I have been able to free up some space and disabled the hotspot so that users can at least access the Internet, but I am having real issues trying to remove the logs. I have 200k lines. Going 1000 at a time is slow and after doing several thousand, it does not appear to free up any disk space.
I have 3% free space (64MB disk space on a RB450) at the moment.
I tried a few script to remove the logs, but I believe that I need to have a significant amount of disk space available to use these script to remove the logs.
On a test RB, I un-installed user-manager and re-installed, thinking that would clear the db, but it did not. All the logs, users, credits, etc were still there.
I executed the command:
Code: Select all
/tool user-manager database clear
Now, I have yet to execute this on the RB with only 3% disk space left as I am worried it might need some disk space to execute it's command. I don't want to break this as it is in production and I am several km away in case that I have to go over and reflash the RB.
Can anybody confirm that running the above mentioned command would work even if the disk is full or close to being full (1.5MB of fee disk space) or if the database is corrupted?
I am hoping that they will add features to prune sessions and logs automatically in the future so that this does not happen again. I have disabled logging on all my other user-manager installations until a solution has been found.
Thanks so much,
Dave Leger