Tool To Review Disk Space Usage

Nosaj

Joined: 2004-10-01
Posts: 62
Posted: Mon, 2011-05-09 21:47

I have had another spike in disk usage on our Gallery 2 server. Twice now it has been run down to less than 100MB of available storage. I am looking for a tool/technique to find out where all of the space is being used (something similar to JDiskReport would be great).

Is there a tool in Gallery to show a breakdown of disk use by user, album, etc...?

Thank you.

 
nivekiam
nivekiam's picture

Joined: 2002-12-10
Posts: 16504
Posted: Mon, 2011-05-09 21:56

Nothing within Gallery. What is the operating system the server where Gallery is installed at?
____________________________________________
Like Gallery? Like the support? Donate now!

 
Nosaj

Joined: 2004-10-01
Posts: 62
Posted: Tue, 2011-05-10 00:05

It is Fedora (linux). Pretty standard install (with XAMP added).

Any suggestions to help automate disk usage by album/user would be great.

 
suprsidr
suprsidr's picture

Joined: 2005-04-17
Posts: 8339
Posted: Tue, 2011-05-10 00:47
 
nivekiam
nivekiam's picture

Joined: 2002-12-10
Posts: 16504
Posted: Tue, 2011-05-10 05:34

as well as http://en.wikipedia.org/wiki/Du_(Unix)

:)

du -k | sort -n

If you're logged into an SSH session, and sitting in your g2data/albums directory that'll display the disk usage of each directory in kilobytes (3,336,500 KB = 3.2GB) and sort it from smallest to largest
____________________________________________
Like Gallery? Like the support? Donate now!

 
Nosaj

Joined: 2004-10-01
Posts: 62
Posted: Tue, 2011-05-10 14:39

Thank you both very much.

The du command worked out well enough for me to look at some directory sizes. I think there was a cache that had become "stuck" in that special /gallery2/lib/support/ area. I cleaned those out and it appears to be running normal again. I am keeping a close eye on it to make sure it does not unexpectedly grow so large again.