Move swap file to external drive

    • OMV 2.x
    • Resolved
    • Move swap file to external drive

      I know that swap is bad and also wear SD, so while compiling stuff sometimes I have errors that seems related to missing free memory.
      How can I move the swap file from /var/swap.file to something like /media/fa36508a-b3c4-4499-b30a-711dd5994225/ready_share/data that is a shared folder on a remote drive?
    • Flashmemory plugin already installed.
      why have I to use gpart? I want to keep the swap file approach, not the swap partition one.
      Usually dphys-swapfile has the config in /etc/dphys-swapfile but I cannot find nothing there despite of with free -m I see
      total used free shared buffers cached Mem: 973 924 49 0 4 651 -/+ buffers/cache: 267 705 Swap: 69 69 0
    • Just add an entry

      CONF_SWAPFILE=/path/to/swap.filein/etc/dphys-swapfileand reboot.
      omv 4.1.19 arrakis | 64 bit | 4.15 proxmox kernel | omvextrasorg 4.1.15 plugins source code and issue tracker - github

      Please read this before posting a question and this and this for docker questions.
      Please don't PM for support... Too many PMs!