Monitoring CPM disk utilization


Article ID: 167931


Updated On:




This article documents several methods for monitoring disk utilization on CPMs.There are several methods for monitoring CPM disk utilization. This article shows examples of how to check disk usage either from Crossbeam CLI, from the Linux shell, or from GEM (Greenlight Element Manager). Another option is to monitor disk usage via SNMP.


Checking disk usage from the Crossbeam CLI

The command show disk-usage can be used to display disk utilization on the CPM:

CBS# show disk-usage
Top Disk Users Report for Thu Aug 23 05:16:55 EDT 2012
Filesystem           1K-blocks      Used Available Use% Mounted on
/dev/sda7             11812024  11810152         0 100% /
/dev/sda1               102740      7984     89540   9% /boot
/dev/drbd0             1971472    131720   1739608   8% /cbconfig
/dev/drbd1            37353008  26427676   9027860  75% /tftpboot
/dev/drbd2             2011792     37796   1871804   2% /mgmt

On XOS version 9.6.0 or higher, a new command, show statistics is implemented. The following example shows disk utilization for the first CPM:

CBS# show statistics table disk-utilization source cp1
Slot  Module  Vap  System      Mount      Type  Size  Free  Used  %
====  ======  ===  ==========  =========  ====  ====  ====  ====  ====
  13  cp1       -  /dev/sda7   /          ext3   12G     0   12G  100%
  13  cp1       -  /dev/sda1   /boot      ext3  101M   88M  7.8M    9%
  13  cp1       -  /dev/drbd0  /cbconfig  ext3  1.9G  1.7G  129M    8%
  13  cp1       -  /dev/drbd1  /tftpboot  ext3   36G  8.7G   26G   75%
  13  cp1       -  /dev/drbd2  /mgmt      ext3  2.0G  1.8G   37M    2%
This command can also be used to display utilization of local APM hard drives when changing the source parameter. Another option is to use the verbose parameter to change the output format.

Checking disk usage from the Linux shell

The standard UNIX df command prints utilization of mounted filesystems. When executed with the -h parameter, the sizes in the output are in human-readable format (e.g., 1K, 234M, or 2G).
[[email protected] admin]# df -h
Filesystem            Size  Used Avail Use% Mounted on
/dev/sda7              12G   12G     0 100% /
/dev/sda1             101M  7.8M   88M   9% /boot
none                  1.8G     0  1.8G   0% /dev/shm
/dev/drbd0            1.9G  129M  1.7G   8% /cbconfig
/dev/drbd1             36G   26G  8.7G  75% /tftpboot
/dev/drbd2            2.0G   37M  1.8G   2% /mgmt

Another way to check disk utilization from the Linux shell is the /crossbeam/bin/cbs_disk_usage command. Output from this command is similar to the output of the show disk-usage CLI  command. Additionally, it prints the largest files on the filesystem. 

Checking disk usage from GEM

From GEM, disk utilization can be observed in the CPMs view.

User-added image