Re: mystery /var space usage

2005-01-28 Thread Loren M. Lang
On Thu, Jan 27, 2005 at 11:52:23AM +0200, Nelis Lamprecht wrote:
> Hi,
> 
> This is not one of those "I've run out of space on /var issues" but
> rather "what the hell is using up the space" issue.
> 
> My /var file system shows:
> 
> /dev/amrd0s1e   9.8G   4.8G   4.2G53%/var
> 
> A du -h of /var shows a total of 616M data only. First thing that came
> to mind is some process which is holding onto data so I tried
> restarting various daemons - cyrus, imapd, exim, apache and still no
> change. I've checked with fstat and lsof to see if I can see anything
> suspicious but nothing out of the ordinary shows up.

I find lsof very helpful in this case.  It even tells you the sizes of
deleted files that are still held open by which process.

> 
> Baring in mind this is a production mail server with about 60 000
> accounts, does anyone have any other suggestions which I might try ? I
> could just boot into single user mode and back out which will probably
> solve my problem now but for obvious reasons I would like to know what
> is causing the added usage of /var. I'm running 4.10 currently but
> plan to update that to 4.11 if I have to reboot.
> 
> Thanks for your reply.
> 
> Regards,
> Nelis
> ___
> freebsd-questions@freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-questions
> To unsubscribe, send any mail to "[EMAIL PROTECTED]"

-- 
I sense much NT in you.
NT leads to Bluescreen.
Bluescreen leads to downtime.
Downtime leads to suffering.
NT is the path to the darkside.
Powerful Unix is.

Public Key: ftp://ftp.tallye.com/pub/lorenl_pubkey.asc
Fingerprint: B3B9 D669 69C9 09EC 1BCD  835A FAF3 7A46 E4A3 280C
 
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: mystery /var space usage

2005-01-28 Thread Nelis Lamprecht
On Thu, 27 Jan 2005 07:29:30 -0800, joseph kacmarcik
<[EMAIL PROTECTED]> wrote:
> 
> > /dev/amrd0s1e   9.8G   4.8G   4.2G53%/var
> >
> > A du -h of /var shows a total of 616M data only. First thing that came
> > to mind is some process which is holding onto data so I tried
> > restarting various daemons - cyrus, imapd, exim, apache and still no
> > change. I've checked with fstat and lsof to see if I can see anything
> > suspicious but nothing out of the ordinary shows up.
> 
> sounds like the maillog. have you tried restarting syslogd or whatever process
> you have that writes to your maillog?
> 

syslogd was the first process I restarted amongst all the others to
see if the problem could be solved. after doing some googling i came
across this same problem mentioned before.

http://lists.freebsd.org/pipermail/freebsd-questions/2003-June/010764.html
and another maybe not freebsd related
http://lists.gnu.org/archive/html/bug-fileutils/2002-10/msg00042.html

I have exactly the same problem which leads me to think that this may
be some sort of bug with softupdares ?

mail:/var# du -hs /var
621M/var

mail:/var# df -h /var
Filesystem  Size   Used  Avail Capacity  Mounted on
/dev/amrd0s1e   9.8G   5.4G   3.7G59%/var

the usage for /var is growing all the time so I'm going to have to
take the machine down this weekend which I'm sure will solve the
problem for now but I'd sure like to know what causes this.

Nelis
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: mystery /var space usage

2005-01-27 Thread joseph kacmarcik

> /dev/amrd0s1e   9.8G   4.8G   4.2G53%/var
> 
> A du -h of /var shows a total of 616M data only. First thing that came
> to mind is some process which is holding onto data so I tried
> restarting various daemons - cyrus, imapd, exim, apache and still no
> change. I've checked with fstat and lsof to see if I can see anything
> suspicious but nothing out of the ordinary shows up.

sounds like the maillog. have you tried restarting syslogd or whatever process
you have that writes to your maillog?

joe
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


mystery /var space usage

2005-01-27 Thread Nelis Lamprecht
Hi,

This is not one of those "I've run out of space on /var issues" but
rather "what the hell is using up the space" issue.

My /var file system shows:

/dev/amrd0s1e   9.8G   4.8G   4.2G53%/var

A du -h of /var shows a total of 616M data only. First thing that came
to mind is some process which is holding onto data so I tried
restarting various daemons - cyrus, imapd, exim, apache and still no
change. I've checked with fstat and lsof to see if I can see anything
suspicious but nothing out of the ordinary shows up.

Baring in mind this is a production mail server with about 60 000
accounts, does anyone have any other suggestions which I might try ? I
could just boot into single user mode and back out which will probably
solve my problem now but for obvious reasons I would like to know what
is causing the added usage of /var. I'm running 4.10 currently but
plan to update that to 4.11 if I have to reboot.

Thanks for your reply.

Regards,
Nelis
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"