Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 02 Nov 2012 15:35:41 -0400
From:      Michael Powell <nightrecon@hotmail.com>
To:        freebsd-questions@freebsd.org
Subject:   Re: HELP: some process eat my /var
Message-ID:  <k717a8$s0e$1@ger.gmane.org>
References:  <1397755241.20121102210553@yandex.ru>

next in thread | previous in thread | raw e-mail | index | archive | help
Eugen Konkov wrote:

> 
> how to find which process take space?
> 
> 
You might want to look at fstat and lsof. fstat is in system while lsof is 
an add-on third party port. Keep in mind that when you do find the space you 
are looking for it will be held 'open' as an open file in the file system as 
long as the process is running. During normal operations you can shut down 
the process and release the space so it can be deleted. This is relatively 
straightforward as long as everything is 'normal'. The more difficult 
position arises when a process has behaved abnormally, including going 
zombie, crashing, etc. With the 'abnormal' there can be a chance that even 
though the process is gone you may encounter difficulty trying to 
delete/recover the space because the file system still considers it an open 
file.

-Mike






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