Page 1 of 1

Space ran out on Hap ac2 - is it safe to run it like that long term?

Posted: Sun Apr 21, 2024 11:41 am
by NebularWinter
[admin@Mikrotik-MS] /system/resource> print 
                   uptime: 15w4d14h11m30s
                  version: 7.13 (stable)
               build-time: Dec/14/2023 09:24:08
         factory-software: 6.44
              free-memory: 29.2MiB
             total-memory: 128.0MiB
                      cpu: ARM
                cpu-count: 4
            cpu-frequency: 896MHz
                 cpu-load: 2%
           free-hdd-space: 0
          total-hdd-space: 15.2MiB
  write-sect-since-reboot: 1216853
         write-sect-total: 11427814
        architecture-name: arm
               board-name: hAP ac^2
                 platform: MikroTik
Not looking to upgrade the fw (it's a remote router from where I am), but wondered if it's safe to run it as is with 0 space available? Or will it eventually 'brick' itself (the way e.g. linux machines do if they run out of space)

Also, with an uptime of c.4 months, I wanted to restart it now as wg s2s started glitching out of nowhere (space related perhaps?) and bit worried it may get stuck at boot if the drive is completely full?

FWIW, is there a way to free up more space (not sure if I can delete these files/folders safely?)?.
Image

Re: Space ran out on Hap ac2 - is it safe to run it like that long term?

Posted: Sun Apr 21, 2024 12:37 pm
by mkx
... wondered if it's safe to run it as is with 0 space available?

No, it's not safe, so you should act on it as soon as possible.

Very likely it won't just crash (but it might), however it is very likely that it'll experience some problems if it happens to reboot for some reason (e.g. power outage or some such). And problems can range from (relatively benign) applying configuration which doesn't include most recent changes and to entering a boot loop (which can be only broken by netinstalling device).

It is very linkely that you'll have to reset config to factory defaults (the milder variation) or netinstall device (the more brutal variation) to reclaim used space. After that you will want to check configuration and possibly remove some of it. E.g. using large address lists (with non-dynamic entries) can use up considerable amount of flash space.

Re: Space ran out on Hap ac2 - is it safe to run it like that long term?

Posted: Sun Apr 21, 2024 12:56 pm
by fragtion
Export config to terminal and copy config to notepad and save as rsc file.
Then netinstall to latest v7.15rc and install the acwave2 package. You will have enough free space afterwards. Restore your config you exported

Then make sure to:
1. Lower your DNS cache size
2. Disable graphing saving to disk
3. Disable DHCP leases storing to disk
4. Delete unnecessary files like skins, hotspot files and autosupout.rif
5. Create a small ram disk where you can temporarily save backups etc from now on

Re: Space ran out on Hap ac2 - is it safe to run it like that long term?

Posted: Tue Apr 23, 2024 7:53 pm
by patg
Just discovered by accident that it's now possible to run zerotier again on the Hap ac2 using 7.15rc1 (testing) !!

MTIK managed to optimize the base package + wifi + extras so that it'll fit into the sparse flash space. Congrats ! :D
Ok, there is not a lot of space left.
[admin@MikroTik] /system/package> pri
Columns: NAME, VERSION, BUILD-TIME, SIZE
# NAME          VERSION  BUILD-TIME           SIZE     
0 wifi-qcom-ac  7.15rc1  2024-04-18 09:17:28  2676.1KiB
1 zerotier      7.15rc1  2024-04-18 09:17:28  692.1KiB 
2 routeros      7.15rc1  2024-04-18 09:17:28  11.0MiB 
[admin@MikroTik] /system/resource> print
                   uptime: 3m24s
                  version: 7.15rc1 (testing)
               build-time: 2024-04-18 09:17:28
         factory-software: 6.44
              free-memory: 37.5MiB
             total-memory: 128.0MiB
                      cpu: ARM
                cpu-count: 4
            cpu-frequency: 448MHz
                 cpu-load: 4%
           free-hdd-space: 104.0KiB
          total-hdd-space: 15.2MiB
  write-sect-since-reboot: 312
         write-sect-total: 50294
        architecture-name: arm
               board-name: hAP ac^2
                 platform: MikroTik

Re: Space ran out on Hap ac2 - is it safe to run it like that long term?

Posted: Mon Jun 24, 2024 12:46 am
by NebularWinter
Thanks @mkx and @fragtion for your responses back in April. I did not dare reboot at the time as I was not physically near the router to be able to troubleshoot if something went wrong. Very fortunate there has been no power outage for 170+ days in a row!

So, sitting next to the router a few days back, I have gone ahead by marking the wifi package for deletion and rebooted hoping for the best. Aaaaaaaand......... it booted up with only the routeros 7.13 package installed and a cool new fresh 3320KiB of free space that wasn't there before 8).

I did not progress to update to 7.15 to see what the space situation is after that (maybe someone else can comment?) as I replaced it with an ax2 now.