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

    How do I clear space on my PfSense box?

    Scheduled Pinned Locked Moved General pfSense Questions
    2 Posts 2 Posters 602 Views 3 Watching
    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.
    • N Offline
      Noraa
      last edited by

      I have 90% usage on my pfsense box and can't figure out why.. Any help would be greatly appreciated I've checked in the /var directory and can't find anything out of the ordinary. Maybe I am missing something. Thanks

      1 Reply Last reply Reply Quote 0
      • GertjanG Offline
        Gertjan
        last edited by

        Hi,

        Open console or SSH.
        When you see the menu, chose option 8.

        Goto the root directory :

        cd /
        

        Execute

        du -h -d 1
        

        From the list shown, take the biggest directory and 'cd' into it :
        Example : you find that the /var directory is the biggest one :

        cd /var
        

        and repeat the 'du -h -d 1' command, cd into the biggest etc.

        Report what you have found.

        To list a directory, type

        ls -al
        

        to see all the files and details.
        Example :

        [2.4.5-RELEASE][admin@pfsense.brit-hotel-fumel.net]/var/log: ls -al
        total 108324
        drwxr-xr-x   9 root        wheel           1024 Nov 12 09:51 .
        drwxr-xr-x  32 root        wheel            512 Nov 12 09:51 ..
        -rw-------   1 root        wheel         511488 Nov 23 08:41 dhcpd.log
        -rw-r--r--   1 root        wheel           9832 Nov 12 10:47 dmesg.boot
        -rw-------   1 root        wheel         511488 Nov  2 11:09 filter.log
        -rw-------   1 root        wheel         511488 Nov 20 11:53 gateways.log
        -rw-------   1 root        wheel         511488 Nov 25  2018 ipsec.log
        -rw-------   1 root        wheel         511488 May  9  2016 l2tps.log
        -rw-r--r--   1 root        wheel              0 Jan 29  2015 lastlog
        drwx------   2 www         www              512 Jan 13  2020 lighttpd
        drwxr-xr-x   2 munin       munin            512 Jul 13 12:11 munin
        drwxr-xr-x   2 root        wheel            512 Apr  6  2020 nginx
        -rw-------   1 root        wheel        1000000 Nov 23 08:35 nginx.log
        drwxr-xr-x   2 root        wheel            512 Jan 29  2015 ntp
        -rw-------   1 root        wheel         511488 Nov 23 04:51 ntpd.log
        drwxr-xr-x   2 uucp        uucp             512 Mar 19  2020 nut
        -rw-------   1 root        wheel         511488 Nov 23 05:34 openvpn.log
        -rw-------   1 root        wheel            232 Nov 23 08:43 openvpn.status
        drwxr-xr-x   2 root        wheel            512 Nov 23 06:00 pfblockerng
        -rw-------   1 root        wheel         511488 May  9  2016 poes.log
        -rw-------   1 root        wheel         511488 Nov 23 06:44 portalauth.log
        -rw-------   1 root        wheel         511488 Jun  4 08:40 ppp.log
        -rw-------   1 root        wheel         511488 May  9  2016 pptps.log
        drwx------   5 root        wheel            512 Apr 19  2018 radacct
        -rw-------   1 root        wheel        8634282 Nov 23 08:40 radius.log
        -rw-------   1 freeradius  freeradius     12320 Nov 23 06:44 radutmp
        -rw-------   1 freeradius  freeradius         0 Apr 17  2018 radwtmp
        -rw-------   1 root        wheel         511488 Jul 27  2016 relayd.log
        -rw-------   1 root        wheel         511488 Nov 22 21:33 resolver.log
        -rw-------   1 root        wheel         511488 Nov 20 11:53 routing.log
        -rw-r-----   1 root        wheel       89196103 Nov 23 06:44 sqltrace.sql
        -rw-------   1 root        wheel         511488 Nov 23 08:03 system.log
        -rw-------   1 root        wheel        2158303 Nov 12 10:47 userlog
        -rw-r--r--   1 root        wheel            591 Nov 23 07:23 utx.lastlogin
        -rw-------   1 root        wheel         192348 Nov 23 07:23 utx.log
        -rw-------   1 root        wheel         511488 May  9  2016 vpn.log
        -rw-------   1 root        wheel         511488 Oct 25  2017 wireless.log
        

        No "help me" PM's please. Use the forum, the community will thank you.
        Edit : and where are the logs ??

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