DaemonForums  

Go Back   DaemonForums > FreeBSD > FreeBSD General

FreeBSD General Other questions regarding FreeBSD which do not fit in any of the categories below.

Reply
 
Thread Tools Display Modes
  #1   (View Single Post)  
Old 9th June 2013
amandus amandus is offline
Port Guard
 
Join Date: Jul 2008
Posts: 14
Thanked 0 Times in 0 Posts
Default filesystem full?

I got filesystem full but there are about 10GB free, I have only 2 partitions / and swap / is 16GB and swap 1 GB something is really wrong, some help would be nice.

FREEBSD 9.1 RELEASE p3

Thanks.
Reply With Quote
  #2   (View Single Post)  
Old 9th June 2013
Beastie Beastie is offline
Daemonology student
 
Join Date: Jan 2009
Location: /dev/earth0
Posts: 267
Thanked 23 Times in 23 Posts
Default

This situation may be caused by an application/service that is still using a file that has been deleted. As long as that application/service is running, the formerly used disk space cannot be properly reclaimed.

The usual solution is to restart the application/service.
__________________
May the source be with you!
Reply With Quote
  #3   (View Single Post)  
Old 9th June 2013
J65nko J65nko is offline
Administrator
 
Join Date: May 2008
Location: Budel - the Netherlands
Posts: 3,118
Thanked 182 Times in 149 Posts
Default

Please post the output of # df -hi

Note that by default 8% of each file system is reserved for use by root :

Code:
# tunefs -p /dev/ada0s3a
tunefs: POSIX.1e ACLs: (-a)                                disabled
tunefs: NFSv4 ACLs: (-N)                                   disabled
tunefs: MAC multilabel: (-l)                               disabled
tunefs: soft updates: (-n)                                 enabled
tunefs: soft update journaling: (-j)                       disabled
tunefs: gjournal: (-J)                                     disabled
tunefs: trim: (-t)                                         disabled
tunefs: maximum blocks per file in a cylinder group: (-e)  4096
tunefs: average file size: (-f)                            16384
tunefs: average number of files in a directory: (-s)       64
tunefs: minimum percentage of free space: (-m)             8%
tunefs: optimization preference: (-o)                      time
__________________
You don't need to be a genius to debug a pf.conf firewall ruleset, you just need the guts to run tcpdump

Last edited by J65nko; 9th June 2013 at 07:10 PM.
Reply With Quote
  #4   (View Single Post)  
Old 10th June 2013
amandus amandus is offline
Port Guard
 
Join Date: Jul 2008
Posts: 14
Thanked 0 Times in 0 Posts
Default

Code:
Filesystem     Size  Used  Avail  Capacity iused ifree    %iused      Mounted on
/dev/ada0s2a    15G   14G   -12k   100%     733k  1.4M    34%        /
devfs           1.0k  1.0k   0B    100%     0       0    100%       /dev
procfs          4.0k  4.0k   0B    100%     1       0    100%       /proc

Last edited by J65nko; 10th June 2013 at 07:19 AM. Reason: Added [code] and [/code] tags ;)
Reply With Quote
  #5   (View Single Post)  
Old 10th June 2013
J65nko J65nko is offline
Administrator
 
Join Date: May 2008
Location: Budel - the Netherlands
Posts: 3,118
Thanked 182 Times in 149 Posts
Default

Actually you only have 1G left

You could run this one liner script to see which directories in "/" use the most space:

Code:
#  for X in $(ls /) ; do du -hs /$X ; done
4.0k    /.cshrc
4.0k    /.profile
4.0k    /.snap
8.0k    /COPYRIGHT
1.2M    /bin
331M    /boot
3.5k    /dev
2.4M    /etc
8.3M    /lib
144k    /libexec
4.0k    /media
 19G    /mnt
4.0k    /proc
  5M    /rescue
384k    /root
  5M    /sbin
  0B    /sys
 14M    /tmp
264M    /usr
5.0M    /var
Or to see the sizes in KB and sort them:
Code:
# for X in $(ls /) ; do du -ks /$X ; done | sort -n
0       /sys
4       /.cshrc
4       /.profile
4       /.snap
4       /dev
4       /media
4       /proc
8       /COPYRIGHT
144     /libexec
384     /root
1224    /bin
2424    /etc
5076    /rescue
5092    /sbin
5152    /var
8448    /lib
15012   /tmp
270924  /usr
339204  /boot
19863976        /mnt
For a more detailed report of a specific directory:
Code:
#  du -k /var/log/* | sort -n
0       /var/log/sendmail.st.1
0       /var/log/sendmail.st.2
4       /var/log/lpd-errs
4       /var/log/maillog
4       /var/log/maillog.0.bz2
4       /var/log/maillog.1.bz2
4       /var/log/maillog.2.bz2
4       /var/log/maillog.3.bz2
4       /var/log/maillog.4.bz2
4       /var/log/maillog.5.bz2
4       /var/log/maillog.6.bz2
4       /var/log/mount.today
4       /var/log/pf.today
4       /var/log/pf.yesterday
4       /var/log/ppp.log
4       /var/log/security
4       /var/log/sendmail.st
4       /var/log/sendmail.st.0
4       /var/log/setuid.yesterday
4       /var/log/utx.lastlogin
4       /var/log/utx.log
4       /var/log/utx.log.0
4       /var/log/xferlog
8       /var/log/auth.log
8       /var/log/cron.0.bz2
8       /var/log/cron.1.bz2
8       /var/log/cron.2.bz2
8       /var/log/debug.log
8       /var/log/setuid.today
16      /var/log/dmesg.today
24      /var/log/messages
24      /var/log/pflog.1.bz2
28      /var/log/pflog.0.bz2
40      /var/log/pflog.2.bz2
48      /var/log/cron
48      /var/log/pflog
__________________
You don't need to be a genius to debug a pf.conf firewall ruleset, you just need the guts to run tcpdump
Reply With Quote
  #6   (View Single Post)  
Old 10th June 2013
amandus amandus is offline
Port Guard
 
Join Date: Jul 2008
Posts: 14
Thanked 0 Times in 0 Posts
Default

I reinstalled it and did other partitions like /var /tmp /usr are installing packages now
Reply With Quote
  #7   (View Single Post)  
Old 11th June 2013
J65nko J65nko is offline
Administrator
 
Join Date: May 2008
Location: Budel - the Netherlands
Posts: 3,118
Thanked 182 Times in 149 Posts
Default

Why are you using the Windows approach of reinstalling instead of finding the cause?

BTW If you are already running out of space on a single root (/) partition of 16 GB, using multiple partitions or file systems is not such a good idea
__________________
You don't need to be a genius to debug a pf.conf firewall ruleset, you just need the guts to run tcpdump
Reply With Quote
  #8   (View Single Post)  
Old 11th June 2013
amandus amandus is offline
Port Guard
 
Join Date: Jul 2008
Posts: 14
Thanked 0 Times in 0 Posts
Default

I increased the hard disc space this is my partitions:
/ 2G
swap 2G
/tmp 2G
/var 3G
/usr 20G
Reply With Quote
  #9   (View Single Post)  
Old 11th June 2013
J65nko J65nko is offline
Administrator
 
Join Date: May 2008
Location: Budel - the Netherlands
Posts: 3,118
Thanked 182 Times in 149 Posts
Default

Nowadays I use tmpfs(5) for the /tmp directory. This will use a combination of swap and/or free memory :

Code:
# dev                   mount           FStype  Options                                 Dump    Pass#
#-----------            -----           -----   -------------------                     ----    ----
tmpfs                   /tmp            tmpfs   rw,mode=01777,size=2147483648           0       0
#
# calculate the size with 'echo 1024^2 | bc' for size in MB
# calculate the size with  "echo '2 * 1024^3' | bc" for size in GB
# NOTE: you cannot use 'noatime' for tmpfs !
# ------------------------------------------
__________________
You don't need to be a genius to debug a pf.conf firewall ruleset, you just need the guts to run tcpdump
Reply With Quote
Old 11th June 2013
amandus amandus is offline
Port Guard
 
Join Date: Jul 2008
Posts: 14
Thanked 0 Times in 0 Posts
Default

Is this /etc/fstab? and calculated for 2GB /tmp?
Reply With Quote
Old 11th June 2013
J65nko J65nko is offline
Administrator
 
Join Date: May 2008
Location: Budel - the Netherlands
Posts: 3,118
Thanked 182 Times in 149 Posts
Default

Yes, that is /etc/fstab.

Code:
$ echo '2 * 1024^3' | bc
2147483648
And two GB
__________________
You don't need to be a genius to debug a pf.conf firewall ruleset, you just need the guts to run tcpdump
Reply With Quote
Old 11th June 2013
amandus amandus is offline
Port Guard
 
Join Date: Jul 2008
Posts: 14
Thanked 0 Times in 0 Posts
Default

Thank You
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Filesystem /var "stuck" at 105% full daneric OpenBSD General 2 18th October 2012 06:18 PM
/usr became full while updating via cvs IronForge OpenBSD Installation and Upgrading 3 6th January 2010 01:08 PM
/ is full, can't installkernel thevirtuesofxen FreeBSD General 4 18th August 2008 06:33 AM
dvd filesystem type chill FreeBSD General 6 17th June 2008 08:22 AM
Best Filesystem thavinci FreeBSD General 25 29th May 2008 03:32 PM


All times are GMT. The time now is 04:15 AM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content copyright © 2007-2010, the authors
Daemon image copyright ©1988, Marshall Kirk McKusick