Filesystem full (over 32GB)
-
Hi, browsing through my system logs I found the notification that my filesystem was full.
The message was from HAPV (it downloads ClamAV updates) but that package wasn't installed anymore. I re-installed it, set it to never download updates, and removed it again.
In phpsysinfo I can see other fs's are full as well:
Mount: /
Partition: /dev/ad0s1a
92% full
Free: 426.00 KB
Used: 32.75 GB
Size: 35.60 GB/dev and /var/dhcpd/dev are both 100% full: 0.00 KB free, 1.00 KB used, size 1.00 KB.
/var/run (/dev/md0) has 3.28 MB free, 38.00 KB used on 3.61 MB.I'm not experiencing any problematic symptoms. I'm running a proxy on this pfSense installation. The cache size is not too big (2GB hdd cache) so that shouldn't be the cause.
Should I worry about these numbers, and if so, is there an easy way to solve it other than backing up, re-installing and restoring?
-
Run the following command and look for any unusually sized directories. Should help narrow down where all your space is disappearing to.
du -h /
-
Try this. Last time i also got problem same with you and i know why.
du -sh /var/squid/cache
And see what the result is.
-
Thanks for your reactions. I deleted all antivirus downloads.
du -sh /var/squid/cache says I'm using 1.1GB in there, so that's ok.
Using du -h / I found a lot of files but the listing went too fast. du -h /|more went too slow so I did du -h /|grep M and found a lot of 43M files in /var/db/clamav. Man rmdir in the BSD manpages told me something about forcibly removing files, but I did cd /var/db/clamav and then sort of guessed rm -drf * (careful when you do this) and all my clamav 43M files are gone now. The filesystem is 5% full so it seems all is in order.
Thanks a lot for helping me out with this basic BSD stuff, pointing me in the right direction :)
Oh btw,
| mount | partition | percent capacity | free | used | size |
| /dev | devfs | 100% | 0.00 KB | 1.00 KB | 1.00 KB |
| /var/dhcpd/dev | devfs | 100% | 0.00 KB | 1.00 KB | 1.00 KB |(ah nice, the table color is white with white text, select to read :P)
What do /dev and /var/dhcpd/dev do? dhcpd I can imagine, but why do those fs's have only 1 KB? -
/dev is not a real filesystem. It's just a means by which processes can access system devices in a way that "looks" like a file to the process.
DHCP runs in a chrooted environment, and thus has its own copy of dev.
-
Try:
du -d 1 / | sort -n -r
Find the largest directory, and then repeat the command in there.