Move swap file to external drive

    • OMV 2.x
    • Resolved

    This site uses cookies. By continuing to browse this site, you are agreeing to our Cookie Policy.

    • 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.6 arrakis | 64 bit | 4.16 backports kernel | omvextrasorg 4.1.6
      omv-extras.org plugins source code and issue tracker - github.com/OpenMediaVault-Plugin-Developers

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