Swap File Increase
-
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 0created 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/md2added 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 ????
-
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?
Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.