Size Monitoring

From UA Libraries Digital Services Planning and Documentation
Jump to: navigation, search

Ensuring we don't run out of space on the server means monitoring usage patterns, collecting data, and making realistic estimates of space usage, based on current/past patterns, and expected events. When space is approaching 80% usage of the amount available in /srv, it is time to press for expansion.

To find out how much space still exists on the libcontent server, log in and type in:

 df   (for disk free)

This gives a list of how much space is used versus available in various areas. Ignore the listing for /cifs-mount points, as those point to another server.


Filesystem 1K-blocks Used Available Use % Mounted on
/dev/sda3/ 184720260 63256776 121463484 35% /
udev 24765696 216 24765480 1% /dev
tmpfs 24765696 0 24765696 0% /dev/shm
/dev/sda1 1035084 54360 928144 6% /boot
/dev/mapper/vgroup--srv-lv--srv 32210167808 17320212640 14889955168 54% /srv

Notice how much space is in /srv, as that is critical to our purposes.

To find out how much space is in use by a particular directory area, such as the archive, type in:

 du -sB g /srv/archive

Where the last argument is the area where you want to know the size. This gives an output in Gigabytes, such as:


The above can be read as approximately 16.6 terabytes.