Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 7 Sep 1999 03:32:59 -0400
From:      Ben Williams <williamsl@home.com>
To:        FreeBSD questions <freebsd-questions@freebsd.org>
Subject:   /var slice wierdness
Message-ID:  <2147.990907@home.com>

next in thread | raw e-mail | index | archive | help
   I  also  have  another  box  (a server) that is having some serious
wierdness  in  the /var slice. This was only my second FreeBSD install
and  I  went  with the defaults for slice sizes which has been fine up
until about a week ago when I noticed /var was nearly full, but a `du -x | sort -n` doesn't show me anything hoggging all my space
up. Here is what I have:

pentwo:/var# df
Filesystem  1K-blocks     Used    Avail Capacity  Mounted on
/dev/wd0s1a     39647    27957     8519    77%    /
/dev/wd0s1f   2883558   849355  1803519    32%    /usr
/dev/wd0s1e     19815    17874      356    98%    /var
procfs              4        4        0   100%    /proc

but when I run a du from /var:

pentwo:/var# du -x | sort -n
1       ./at/jobs
1       ./at/spool
1       ./cron/tabs
1       ./preserve
1       ./rwho
1       ./tmp/vi.recover
2       ./crash
2       ./msgs
2       ./tmp
3       ./at
4       ./mail
11      ./backups
19      ./yp
35      ./cron
51      ./run
58      ./log
190     .

   These results don't seem to match. What am I doing wrong here? I have
gone through and 

SPACE_HOG_DIR="db ftp spool"
mv $SPACE_HOG_DIR /usr/local/var/$SPACE_HOG_DIR && \
   ln -s /usr/local/$SPACE_HOG_DIR /var/$SPACE_HOG_DIR`

( \ added for clarity ) These are not the "exact commands" I used .. I used
the "mv ... && ln ..." individually for each dir in order of largest
downwards. Did I play havoc with my fs by using mv on a dir with possibly
live-and-being-accessed log file?

TIA
--
 Ben   <mailto:received@email.com>




To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?2147.990907>