Are you getting “No swap message in GUI – Freepbx No swap warning” this message in notification area, it does not give any instructions but you don’t know how to remove this error. I will explain in this tutorial.
Your system has Free PBX no swap space. This should be fixed as soon as possible. Once fixed issue a reload to remove this message.
you might wondering have never made any changes memory or storage – you might be looking for someone to advise a fix?
Here comes the solution what I am letting you know today as if you are facing this issue than you are on right platform. FreePBX No Swap error means is that you machine is lacking in RAM or random access memory as it is required for FreePBX to perform efficiently for not letting the system to go corrupt or create mess for the incoming ot out going call logs.
First you would need to run a command to check the disk space available on your freepbx machine.
freepbxroot#df -h
Filesystem Size Used Avail Use% Mounted on
/dev/sda 546G 546G 0G 100% /
After checking that your HD drive files size is increasing very fast and FreePBX have showed “No swap message in GUI – Freepbx No swap warning” on your dashboard. The you would need to login in your Google cloud console and connect with your SSH. Once you are connected with the SSH type Sudo -i or Sudo su to be as root user.
That warning is just letting you know that your system is not set up with memory swap. This means that if you were to run out of memory, the system will not be able to utilise disk swap which, from experience, is not much fun at all!Then follow the instructions bellow…..
Swap File
dd if=/dev/zero of=/swapfile count=1024 bs=1MiB
chmod 600 /swapfile
mkswap /swapfile
echo '/swapfile none swap sw 0 0' >> /etc/fstab
swapon -a
free -m
After you are finished you just need to run
fwconsole restart
fwconsole chown
Conclusion:
After you have done all steps your FreePBX dashboard “No swap message in GUI – Freepbx No Swap warning” will disappear. If you need more help in learning you can reach us at [email protected]