[Wolves] Space on /

Martyn martyn at mcits.co.uk
Thu Jul 8 18:31:32 BST 2004


Peter Oliver wrote:

> On Thu, 8 Jul 2004, Wayne Morris wrote:
>
>> My webserver has just started refusing to open the GUI, due to the /
>> partition being full.
>> I can get onto a command line and have been having a bit of a look for
>> anything I can delete but tmp is now empty and am a bit stuck
>> /home /var are mounted elsewehere so its not them.
>>
>> Is there a command I can issue to either locate large files (and then I
>> can manually delete them)?
>
>
> I tend to use 'du -kx | egrep -v "\./.+/" | sort -n', which I alias to 
> 'duxs'.  This shows you which directories are using the most space, 
> one level at a time.  If you'd prefer something more visual, try 
> http://www.methylblue.com/filelight/ or 
> http://xdiskusage.sourceforge.net/
>
> Be careful when deleting files because you're out of space.  Unix will 
> let you delete an open file, unlike Microsoft Windows, which won't let 
> you delete a file that is in use.  However, despite the file being 
> removed from the directory structure, it remains on disk until it is 
> closed by all processes accessing it.
>
> You're most likely to get caught out on this with files that remain 
> open for a long time, such as log files.  Find out if a file is in use 
> with lsof or fuser.
>
> If you do want to empty a file without closing it, use 'true > 
> /name/of/file'.
>
Looks like im not hte only ducks user!



More information about the Wolves mailing list