Netgate Discussion Forum
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Search
    • Register
    • Login

    Swap File Increase

    Scheduled Pinned Locked Moved General pfSense Questions
    2 Posts 2 Posters 97 Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • S
      STEMApps
      last edited by

      Increased the swap file size by adding another file 512 mb
      Shell Output - swapctl -l
      Device: 512-blocks Used:
      /dev/label/swap0 763896 0
      /dev/md2 1048576 0

      created script to mount at boot but runs fine from command prompt and mounts extra file
      |Shell Output - cat /root/swapsetup.sh
      #!/bin/sh
      /sbin/mdconfig -a -t vnode -f /var/swap0 -u 2
      /sbin/swapon /dev/md2

      added shellcmd tunable - /root/swapsetup.sh

      won't mount at boot

      renamed it to earlyshellcmd tunable - /root/swapsetup.sh

      won't mount at boot.

      ran /root/swapsetup.sh after boot, worked fine.

      Gasp ????

      1 Reply Last reply Reply Quote 0
      • stephenw10S
        stephenw10 Netgate Administrator
        last edited by

        You created a SWAP partiton on a memory disk? That seems counter-productive!

        Do you see an error at boot when it runs the shellcmd?

        1 Reply Last reply Reply Quote 0
        • First post
          Last post
        Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.