Page 2 of 2

Re: (Random?) Wipe of Quota Settings

Posted: Thu May 21, 2015 6:27 pm
by nworbnhoj
Magnus wrote:Do you know where the usage is stored, so I can look into this?
/usr/data/quotas/

Re: (Random?) Wipe of Quota Settings

Posted: Fri May 22, 2015 6:10 am
by Magnus
Thank You.

I am not sure whether I understand what eaxtly is stored in the files found in /usr/data/quotas/ as they appear to be updated very infrequently. Can you explain this to me? Where is the data stored at/read from that I see via https://192.168.42.1/quota_usage.sh ?

Also I frequently experience some inconsitency between set quotas and the usage data shown at https://192.168.42.1/quota_usage.sh as you can see from the following screen shots:
quota_issues.PNG
quota_issues.PNG (95.98 KiB) Viewed 6132 times
Can you explain to me why some of the quotas are not showing up in usage an have no file in /usr/data/quotas/ ?

How can I fix this?

Thank You & Regards

Re: (Random?) Wipe of Quota Settings

Posted: Fri May 22, 2015 7:03 am
by Lantis
i'm having a browse through the code...
i'd have to guess the data is stored in memory, and when the router is rebooted or changes are made and saved, it backs up the data to /usr/var/quotas and then restores it.

can't confirm that for certain though.


there is a command "backup_quotas". i'm just trying to find the implications of this.

Re: (Random?) Wipe of Quota Settings

Posted: Wed May 27, 2015 2:07 pm
by Eric
Quotas are backed up to /usr/data/quotas every 4 hours by a cron job. Writing too frequently to flash memory can wear it out, so this balances backing up the data sufficiently frequently with not wearing out the flash memory.

Re: (Random?) Wipe of Quota Settings

Posted: Thu May 28, 2015 2:00 pm
by Magnus
Hi Eric,

thank you for your input.

Can you explain how I may fix the differences in quota settings an quota usage as shown in the above screen shot?

From which files (other than etc/config/firewall is the table in https://192.168.42.1/quota_usage.sh gererated? I have at least three quotas that have been set in etc/config/firewall but are not shown in the usage table.

I am able to reproduce them via "re setting" the quota via the gui by clicking edit, "save & close" and "save changes" even withouot changing anything. But every other time settings will bee wiped completly by doing this and I have to start over...

Thank You & Regards
Magnus

Re: (Random?) Wipe of Quota Settings

Posted: Wed Sep 23, 2015 3:22 am
by Magnus
Has this issue been addressed in FW 1.8.0? I am still struggling with this :(

Thank you for your help.

Update: Just read this thread, which looks a lot like my problem:
QoS configuration disappears after power loss and breaks

I will try to set edit some rules using just one tap later today and report back.