RAM Disk not backing up data to disk

  • Hi all, long time no post

    I have installed pfsense onto a usb stick (NOT USING NanoBSD) and have installed squid and squidguard.
    I have ticked Use RAM Disks in System: Advanced: Miscellaneous and set the size for both tmp and var. I have also set Periodic RRD Backup to 1 hour as well as Periodic DHCP Leases Backup to 1 hour.

    The problem is if I restart (being longer than 1 hour) the data in the var and tmp is not saved. I lose the squidguard blacklist which causing it to not start and pfsense gets stuck pulling 100% CPU power until I reinstall the backlist. I also lose all the cache.

    It seems that RAM Disks is not writing to the disk.

    anyway to fix this?

  • Still have this problem, anyone have any ideas?

  • Is your system capable of a full install?

  • Yes I have the full install of pfsense working off the usb just when I reboot the cache files and squidguard blocklist files in /tmp (ufs in RAM) and /var (ufs in RAM) are cleared and I have to redownload the blocklist.

  • Only the RRD data and DHCP leases files are backed up. On nano, the /cf partition is only 50 MB, so not a ton of room to be backing up a slew of things. If you won't overrun the available space there, you could hack in whatever you want in /etc/rc.shutdown or the RRD backup file it calls there.

  • Hi cmb I am not running the nano version I have a full install on the USB stick (16 GB)

  • I'd probably drop the thumbdrive before it drops you (-;

  • Lol, yeah I know but it will have to do for now. I have a apu1d4 in a case1d2bluu enclosure so still trying to figure out how to get an ssd in there.

  • Cool - Then be sure to use an install that is designed to not make frequent writes to the drive.

  • How about a mSATA drive or a DOM (disk on module)?

    Should be much better for your purposes.

  • That is why I am using the RAM Disk… however it is not writing (That being the cache and the squidguard blacklist) to the disk even though I set the Frequency.

    I was thinking of a mSATA disk

  • Get yourself an Intel 30GB mSATA or similar and run full install with squid and no worries about the drive writes.

  • Yeah, I think I might do that

Log in to reply