Running out of space on NanoBSD



  • Hey. I've installed 2.0.2 2G nanobsd into my usb stick (16Gb). Everything is working good except I'm running out space. I noticed this when I tried to update ClamAV database.

    [2.0.2-RELEASE][admin@pfsense]/var/db(51): freshclam
    ClamAV update process started at Thu Feb 28 13:22:49 2013
    WARNING: Your ClamAV installation is OUTDATED!
    WARNING: Local version: 0.97.5 Recommended version: 0.97.6
    DON'T PANIC! Read http://www.clamav.net/support/faq
    main.cvd is up to date (version: 54, sigs: 1044387, f-level: 60, builder: sven)
    nonblock_connect: connect(): fd=3 errno=65: No route to host
    Can't connect to port 80 of host clamav.edpnet.net (IP: 2a02:578:8000:2:212:71:0:66)
    Downloading daily.cvd [ 47%]
    /var: write failed, filesystem is full

    [2.0.2-RELEASE][admin@pfsense]/var/db(52): df
    Filesystem        1K-blocks  Used  Avail Capacity  Mounted on
    /dev/ufs/pfsense0    929679 271058 584247    32%    /
    devfs                    1      1      0  100%    /dev
    /dev/md0              39406    352  35902    1%    /tmp
    /dev/md1              59246  44584  9924    82%    /var
    /dev/ufs/cf          50527    318  46167    1%    /cf
    devfs                    1      1      0  100%    /var/dhcpd/dev
    /dev/md10            241774      6 222428    0%    /var/tmp/havpRAM

    So, is it possible to resize/expand my partition or use rest of the usb space?



  • @sippo:

    So, is it possible to resize/expand my partition or use rest of the usb space?

    /var was reported full; /var is mounted on /dev/md1 a Memory Disk (RAMdisk). Changing disk partition size won't give you more space in the memory disk holding /var.

    Perhaps ClamAV is not really compatible with the nanobsd variant of pfSense. Perhaps your particular combination of packages is not really compatible with the nanobsd variant of pfSense because the combination puts excessive demands on /var. Perhaps /var could take on different sizes depending on the amount of RAM in the system.



  • I ran into similar troubles installing HAVP on NanoBSD. A quick search of the forum implied it doesn't really work with NanoBSD. I tried mounting a second USB stick and pointing as much of Squid, SquidGuard and HAVP towards that, but still had problems. Some of HAVP has hardcoded paths, and those are causing problems (/usr/local/etc/havp/*). At the moment Squid and SquidGuard are working but I only installed them yesterday and had troubles at various times (mostly from HAVP).



  • I'm facing similar issues attempting to run SquidGuard on embedded (NanoBSD.) The /var partition is not large enough to store the URL blacklist download, then the extracted files, etc.

    Simply put is there any way to increase the size of the /var partition? Then whatever issues exist with files missing after a reboot can be solved with the package itself.



  • I was using nanobsd becouse I couldn't install it to hard drive as it freezes on every boot when installed to hard drive. Now I installed it succesfully to hard drive. The problem was too big partition, i guess. At first I installed it to full hard drive (80Gb) but it didn't work, now it's running on 20Gb partition.



  • I have managed to increase the size of the /var partition by editing the files:

    /etc/rc.embedded
    /nano/base/etc/rc.embedded

    You need to mount rw first, of course.


  • Netgate Administrator

    For anyone else looking to do this it's now been added as a feature in 2.1Beta. You might consider running that instead.
    http://forum.pfsense.org/index.php/topic,59941.0.html

    Steve



  • @joako:

    I'm facing similar issues attempting to run SquidGuard on embedded (NanoBSD.) The /var partition is not large enough to store the URL blacklist download, then the extracted files, etc.

    Simply put is there any way to increase the size of the /var partition? Then whatever issues exist with files missing after a reboot can be solved with the package itself.

    Well, I've recently addressed this question, e.g. NanoBSD + Squid, in this forum. Maybe, this thread is helpful:
    http://forum.pfsense.org/index.php/topic,59932.msg322453.html


Log in to reply