Resize swap partition after installation

  • Hello everyone,
    I have a OMV 4 on a Raspberry Pi 3 ( I know it is not ideal, but this setup is only to gather some experience with OMV and docker before moving to a more powerful hardware).


    As you know the Pi 3 has only 1 GB of RAM and the default OMV installation image allocates a 500 MB of swap file.
    Here is my /etc/fstab

    and my current top command indicating 500MB of swap (just rebooted):


    Code
    top - 20:40:07 up 20 min,  1 user,  load average: 0.36, 0.91, 0.90
    Tasks: 203 total,   1 running, 129 sleeping,   0 stopped,   1 zombie
    %Cpu(s):  2.5 us,  1.8 sy,  1.3 ni, 93.5 id,  0.7 wa,  0.0 hi,  0.2 si,  0.0 st
    KiB Mem :  1000180 total,    13600 free,   451648 used,   534932 buff/cache
    KiB Swap:   500080 total,   483184 free,    16896 used.   439468 avail Mem


    As I am currently playing a lot with docker and other things I have run onto the limit of 500MB of swap size and under normal usage i'm at about 80-90% of swap usage.
    I know perfectly well that this is not healty but i would like to continue for a couple months in this way.


    Thus I would ask: is there a way to increase the swap size after installation?


    Thanks!

Jetzt mitmachen!

Sie haben noch kein Benutzerkonto auf unserer Seite? Registrieren Sie sich kostenlos und nehmen Sie an unserer Community teil!