Skip to content

How to visualize used disk space in your storage pool

gboudreau edited this page Jan 4, 2013 · 15 revisions

Requirements

You will need Apache and PHP installed on your Greyhole server to use this script. )Or not, if you have PHP 5.4 or later. See below.)

Install

  1. Download gh-du.php from https://gist.github.com/4173898
  2. Make it available through HTTP.

Simply access the script using your web browser, and you should see a nice visual representation of the disk space used by your files.

If you're using PHP 5.4+, you don't even need a web server. Just start the PHP built-in server, and specify the path to the gh-du.php script: php -S 0.0.0.0:8012 /path/to/gh-du.php
Access it at http://your_server_ip_address:8012/

Note that all file copies are counted, so if your Videos share shows as 2TB, and you have num_copies=2 for that share, it means you have 1TB of Videos files x 2 copies = 2TB.

Screenshot: Screenshot