mahim
October 22, 2023, 8:02pm
1
I have noticed if i do reboot from luci, after 6-7 reboot,storage space reduces 4KB, and again after several reboot storage space reduce 4KB.
my flash mb is only 8 mb, so if this happens i may run out of space near future .why does this happen? is it normal? does this happen in all router running openwrt?
my router- tp link archer c60 v3
openwrt- 23 stable release.
krazeh
October 22, 2023, 8:06pm
2
Why are you rebooting so frequently?
mahim
October 22, 2023, 8:19pm
3
i set auto reboot every night 5 am. Then after 5-6 days i noticed storage space reduces. Then out of curiosity i tested this and found that after several reboot storage space reduces.
Do you happen to have scripts or programs installed on your router that write files to the flash ?
or perhaps you have created crontabs that change the settings every day/hour/minute ?
other things they might write to the flash (logs, etc) ?
view your post:
Hi, using openwrt 22 on tp link archer c60 v3.
I have noticed that if i make any config changes( for example add any upload or download rule in luci app nft qos), my storage space reduces. and If i delete the rule, the space never get back to as earlier. for example : i have added 5 rules, storages space came from 676 KB to 672 KB, but when i delete the rules, storage space never gets back to 676 KB.
I have tried these and at first storage space w
[Screenshot_20231020-121555]
as 696 KB,now…
1 Like
mahim
October 22, 2023, 8:55pm
5
now without making any configuration changes, i have noticed it still occurs.
Though i have luci app nft qos package installed,but if i don not make any changes in that, just reboot the router several times, storage space reduces. Thats why i am concerned
if you do not make any changes to the file or configurations you must find the file that is writing to the flash
https://man7.org/linux/man-pages/man1/find.1.html
2 Likes
mahim
October 22, 2023, 8:58pm
7
no i have nothing in crontab, no extra settings. All default settings that openwrt come out on first install. I have just installed luci app nft qos package. but i did not make any configuration changes there.
cd /overlay/
find ./ -mtime -1
2 Likes
krazeh
October 22, 2023, 9:44pm
10
Aside from the advice @ncompact has provided, you might want to consider whether it is necessary to restart your router so often. As a general rule it shouldn't really be necessary to restart unless you've made certain configuration changes or have upgraded. If you're finding it necessary to do it more often then that points to a bigger issue with your device.
4 Likes
mahim
October 22, 2023, 9:56pm
11
i didnt know that, thank you.
mahim
October 22, 2023, 10:29pm
12
after putting this command in ssh i found this-↓
Connecting to 192.168.1.1 port 22, please wait...
login as: root root@192.168.1.1 's password:
BusyBox v1.36.1 (2023-10-09 21:45:35 UTC) built-in shell (ash)
| |.-----.-----.-----.| | | |.----.| |_
| - || _ | -| || | | || || |
| _____|| | | | || ___|| | |____|
| | W I R E L E S S F R E E D O M
OpenWrt 23.05.0, r23497-6637af95aa
root@OpenWrt:~# cd /overlay/
root@OpenWrt:/overlay# find ./ -mtime -1
./upper/etc/config
./upper/etc/config/system
./upper/etc/config/dhcp
./upper/etc/config/nft-qos
./upper/etc/hotplug.d/dhcp
./upper/etc/init.d
./upper/etc/rc.d
./upper/etc/rc.d/S99nft-qos
./upper/etc/modules.d
./upper/usr/share/rpcd/acl.d
./upper/usr/lib/lua/luci
./upper/usr/lib/lua/luci/view
./upper/usr/lib/lua/luci/view/cbi
./upper/usr/lib/lua/luci/view/admin_status
./upper/usr/lib/lua/luci/view/nft-qos
./upper/usr/lib/lua/luci/controller
./upper/usr/lib/lua/luci/sys
./upper/usr/lib/lua/luci/sys/zoneinfo
./upper/usr/lib/lua/luci/tools
./upper/usr/lib/lua/luci/model
./upper/usr/lib/lua/luci/model/network
./upper/usr/lib/lua/luci/model/cbi
./upper/usr/lib/lua/luci/model/cbi/nft-qos
./upper/usr/lib/lua/luci/cbi
./upper/usr/lib/lua/luci/template
./upper/usr/lib/lua/nixio
./upper/usr/lib/ucode
./upper/usr/lib/opkg/info
./upper/usr/lib/opkg/info/kmod-nft-bridge.list
./upper/usr/lib/opkg/info/kmod-nft-netdev.list
./upper/usr/lib/opkg/info/luci-app-nft-qos.list
./upper/usr/lib/opkg/info/luci-lib-ip.list
./upper/usr/lib/opkg/info/luci-lib-nixio.list
./upper/usr/lib/opkg/info/ucode-mod-lua.list
./upper/usr/lib/opkg/info/luci-lib-jsonc.list
./upper/usr/lib/opkg/info/libubus-lua.list
./upper/usr/lib/opkg/info/liblua5.1.5.list
./upper/usr/lib/opkg/info/liblucihttp-lua.list
./upper/usr/lib/opkg/info/nft-qos.list
./upper/usr/lib/opkg/info/lua.list
./upper/usr/lib/opkg/info/luci-compat.list
./upper/usr/lib/opkg/info/luci-lua-runtime.list
./upper/usr/lib/opkg/info/luci-lib-base.list
./upper/usr/lib/opkg/status
./upper/usr/bin
./upper/usr/bin/lua
./upper/lib
./upper/lib/modules/5.15.134
./upper/lib/upgrade
./upper/lib/nft-qos
./upper/www/luci-static/resources/cbi
root@OpenWrt:/overlay#
please post command:
df
if you do this every day (Update lists...)
also in this case files are written to the flash
tomorrow (without updating and/or doing anything), you can run the command
cd /overlay/
find ./ -mtime -1
and check if no files have been modified and/or created on the flash
I hope there are no modified files
my advice is to find a router that has better features
greater flash size
USB ports to connect hard disk and/or USB key so you can expand your overlay
mahim
October 23, 2023, 1:20pm
17
ncompact:
find ./ -mtime -1
just after a reboot, and nothing else, not even login via luci, i still get the same --
OpenWrt 23.05.0, r23497-6637af95aa
root@OpenWrt:~# cd /overlay/
root@OpenWrt:/overlay# find ./ -mtime -1
./upper/etc/config
./upper/etc/config/system
./upper/etc/config/dhcp
./upper/etc/config/nft-qos
./upper/etc/hotplug.d/dhcp
./upper/etc/init.d
./upper/etc/rc.d
./upper/etc/rc.d/S99nft-qos
./upper/etc/modules.d
./upper/usr/share/rpcd/acl.d
./upper/usr/lib/lua/luci
./upper/usr/lib/lua/luci/view
./upper/usr/lib/lua/luci/view/cbi
./upper/usr/lib/lua/luci/view/admin_status
./upper/usr/lib/lua/luci/view/nft-qos
./upper/usr/lib/lua/luci/controller
./upper/usr/lib/lua/luci/sys
./upper/usr/lib/lua/luci/sys/zoneinfo
./upper/usr/lib/lua/luci/tools
./upper/usr/lib/lua/luci/model
./upper/usr/lib/lua/luci/model/network
./upper/usr/lib/lua/luci/model/cbi
./upper/usr/lib/lua/luci/model/cbi/nft-qos
./upper/usr/lib/lua/luci/cbi
./upper/usr/lib/lua/luci/template
./upper/usr/lib/lua/nixio
./upper/usr/lib/ucode
./upper/usr/lib/opkg/info
./upper/usr/lib/opkg/info/kmod-nft-bridge.list
./upper/usr/lib/opkg/info/kmod-nft-netdev.list
./upper/usr/lib/opkg/info/luci-app-nft-qos.list
./upper/usr/lib/opkg/info/luci-lib-ip.list
./upper/usr/lib/opkg/info/luci-lib-nixio.list
./upper/usr/lib/opkg/info/ucode-mod-lua.list
./upper/usr/lib/opkg/info/luci-lib-jsonc.list
./upper/usr/lib/opkg/info/libubus-lua.list
./upper/usr/lib/opkg/info/liblua5.1.5.list
./upper/usr/lib/opkg/info/liblucihttp-lua.list
./upper/usr/lib/opkg/info/nft-qos.list
./upper/usr/lib/opkg/info/lua.list
./upper/usr/lib/opkg/info/luci-compat.list
./upper/usr/lib/opkg/info/luci-lua-runtime.list
./upper/usr/lib/opkg/info/luci-lib-base.list
./upper/usr/lib/opkg/status
./upper/usr/bin
./upper/usr/bin/lua
./upper/lib
./upper/lib/modules/5.15.134
./upper/lib/upgrade
./upper/lib/nft-qos
./upper/www/luci-static/resources/cbi
what does this mean? something wrong?
No error (these are the files modified in the last day)
I just told you to do it tomorrow, October 24, 2023
I'll give an example on my router
at this moment if I execute the command
I get:
cd /overlay
find ./ -mtime -1
an empty file list
to get a list of files that I modified I have to go back 4 days and I get:
cd /overlay
find ./ -mtime -4
./upper/etc/config/firewall
because I changed a firewall parameter, and this changed the /etc/config/firewall file written on the flash of my router
view:
https://man7.org/linux/man-pages/man1/find.1.html