Professional Documents
Culture Documents
Disk Management - Walkthrough
Disk Management - Walkthrough
Disk Management - Walkthrough
Requirements
Assumptions
1) We will assume that the presentation: 4.7 – Advanced Monitoring has been reviewed
2) We will assume that the laboratory: 4.8 – Advanced Monitoring has been conducted
3) We will assume that the Buffer Usage Monitor Technical Documents have been reviewed
4) We will assume that the Guardium® Web Interface has been started and is working correctly
5) We will assume the use of Linux NET-SNMP libraries for SNMP Polling
Outline
In this technical document we will learn how to manage the Guardium® Collector
appliance disk usage (including database disk usage) from the following perspectives:
There are a number of methods by which we can obtain information about disk capacity,
usage, and available space on the collector appliance. In this section we will examine each of
these methods:
■ CLI: Commands
■ SNMP: Polling
■ Reports: Buffer Usage Monitor, Enterprise Buffer Usage Monitor
■ GUI: Status Monitor
CLI Commands
To obtain database disk information via the appliance CLI, we can issue any of the following
commands:
To obtain disk information via the CLI, we can use the Static Reports feature of the CLI diag
command:
■ CLI> diag
■ diag CLI> 2 System Static Reports
The report may take a few minutes to build; however, once it is ready, scroll partially down the
screen and we will see disk partition and size information:
Tip: The static reports option in the CLI diag utility is a great way to double-check the
partition layout on an appliance. In this manner you can double-check the values returned by
other disk information options (i.e. Buffer Usage Monitor, other CLI commands, and SNMP)
to ensure they are the values one would expect.
Alternatively, we can also obtain more granular disk and database information via the diag
utility using the following commands:
■ CLI> diag
■ diag CLI> 3 System Interactive Queries
■ diag CLI> 2 List Folder
■ diag CLI> select a folder from the list
Of the listed folders, /var/lib/mysql is perhaps one of the more interesting, as it lists the
database files (which are used in database usage/available calculations).
Similarly, the Summarize Folder option in System Interactive queries of diag will also yield a
summary of disk partition/size information as well as a summarized breakdown by major
folder
SNMP Polling
To obtain disk information via SNMP polling, we can make use of the UCD-SNMP-MIB
supported by the appliance. Disk information is stored under the following nodes:
Hence, as per the self-monitoring presentation, 4.7 – Advanced Monitoring, and laboratory, 4.8
– Advanced Monitoring, we can obtain disk information by polling any of the above nodes
or their instances using one of the following:
■ UCD-SNMP-MIB::dskUsed or 1.3.6.1.4.1.2021.9.1.8
■ UCD-SNMP-MIB::dskAvail or 1.3.6.1.4.1.2021.9.1.7
■ UCD-SNMP-MIB::dskUsed.1 or 1.3.6.1.4.1.2021.9.1.8.1
■ UCD-SNMP-MIB::dskUsed.2 or 1.3.6.1.4.1.2021.9.1.8.2
■ UCD-SNMP-MIB::dskAvail.1 or 1.3.6.1.4.1.2021.9.1.7.1
■ UCD-SNMP-MIB::dskAvail.2 or 1.3.6.1.4.1.2021.9.1.7.2
To poll all disk usage or available information at once (i.e. all instances), we can respectively
poll the dskUsed (8) or dskAvail (7) nodes directly via the NET-SNMP walk command:
Alternatively, to obtain disk information about a single partition (node instance), we can utilize
the SNMP GET PDU of the NET-SNMP library:
Tip: Ensure that appropriate libraries and the MIB files are installed in order to leverage
appliance SNMP polling capabilities.
Reports
As per the Buffer Usage Monitor technical document, disk information and database disk
information can be obtained directly from the report.
Note: Currently disk usage (/var and / partitions is actually disk available on the report).
Tip: If using a Central Manager appliance, use the Enterprise Buffer Usage monitor instead.
Status Monitor
The status monitor displays the available disk space in GigaBytes (GB), as well as used
database disk space as a percentage: System View → Current Status Monitor
It is important to note that the way in which database disk usage is calculated varies depending
on the type of appliance (i.e. collector vs aggregator), as well as the method utilized to view
the information (i.e. CLI vs Buffer Usage Monitor vs Status Monitor). Let us now discuss how
database disk usage is calculated for each of the above scenarios.
For collector appliances, database disk usage is always calculated in the same manner,
regardless of the method (CLI, Buffer Usage Monitor, or Status Monitor):
For aggregator appliances, database disk usage is calculated in a similar manner, however, the
percentage of the /var or / partition that is utilized varies according to the method.
Size = Total space used by all MySQL database files (tablespace and logs)
Disk Total = 75% of /var partition. In this case, if there is no /var partition the / partition will
not be used instead.
Size = Total space used by all MySQL database files (tablespace and logs)
Disk Total = 50% of /var partition. In this case, if there is no /var partition the / partition will
not be used instead.
Note: In all of the above cases, prior to percentage calculations, megaBytes are used.