Dieser Inhalt ist in der von Ihnen ausgewählten Sprache nicht verfügbar.
14.3. gstatus Command
14.3.1. gstatus Command Link kopierenLink in die Zwischenablage kopiert!
Important
gstatus
provides an overview of the health of a Red Hat Storage trusted storage pool for distributed, replicated and distributed-replicated volumes.
gstatus
command provides an easy-to-use, high-level view of the health of a trusted storage pool with a single command. It gathers information by executing the GlusterFS commands, to gather information about the statuses of the Red Hat Storage nodes, volumes, and bricks. The checks are performed across the trusted storage pool and the status is displayed. This data can be analyzed to add further checks and incorporate deployment best-practices and free-space triggers.
- Gstatus works with Red Hat Storage version 3.0.3 and above
- GlusterFS CLI
- Python 2.6 or above
14.3.2. Installing gstatus during an ISO Installation Link kopierenLink in die Zwischenablage kopiert!
- While installing Red Hat Storage using an ISO, in the Customizing the Software Selection screen, select Red Hat Storage Tools Group and click Optional Packages.
- From the list of packages, select
gstatus
and click Close.Figure 14.1. Installing gstatus
- Proceed with the remaining installation steps for installing Red Hat Storage. For more information on how to install Red Hat Storage using an ISO, see Installing from an ISO Image section of the Red Hat Storage 3 Installation Guide.
The gstatus package can be installed using the following command:
yum install gstatus
# yum install gstatus
Note
yum list gstatus
# yum list gstatus
Installed Packages
gstatus.x86_64 0.62-1.el6rhs @rhs-3-for-rhel-6-server-rpms
14.3.3. Executing the gstatus command Link kopierenLink in die Zwischenablage kopiert!
gstatus
command can be invoked in several different ways. The table below shows the optional switches that can be used with gstatus.
gstatus -h
# gstatus -h
Usage: gstatus [options]
Option | Description |
---|---|
--version | Displays the program's version number and exits. |
-h, --help | Displays the help message and exits. |
-s, --state | Displays the high level health of the Red Hat Storage Trusted Storage Pool. |
-v, --volume | Displays volume information (default is ALL, or supply a volume name). |
-b, --backlog | Probes the self heal state. |
-a, --all | Displays capacity units in decimal or binary format(GB vs GiB) |
-l, --layout | Displays the brick layout when used in combination with -v, or -a |
-o OUTPUT_MODE, --output-mode=OUTPUT_MODE | Produces outputs in various formats such as - json, keyvalue, or console(default) |
-D, --debug | Enables the debug mode. |
-w, --without-progress | Disables progress updates during data gathering. |
Description | Command |
---|---|
An overview of the trusted storage pool | gstatus -s |
View component information | gstatus -a |
View the volume details, including the brick layout | gstatus -vl VOLNAME |
View the summary output for Nagios and Logstash | gstatus -o <keyvalue> |
gstatus
provides a header section, which provides a high level view of the state of the Red Hat Storage trusted storage pool. The Status field within the header offers two states; Healthy
and Unhealthy
. When problems are detected, the status field changes to Unhealthy(n), where n denotes the total number of issues that have been detected.
gstatus
command output for both healthy and unhealthy Red Hat Storage environments.
Example 14.1. Example 1: Trusted Storage Pool is in a healthy state; all nodes, volumes and bricks are online
Example 14.2. Example 2: A node is down within the trusted pool
-l
switch is used. The brick layout
mode shows the brick and node relationships. This provides a simple means of checking replication relationships for bricks across nodes is as intended.
Field | Description |
---|---|
Capacity Information | This information is derived from the brick information taken from the vol status detail command. The accuracy of this number hence depends on the nodes and bricks all being online - elements missing from the configuration are not considered in the calculation. |
Over-commit Status | The physical file system used by a brick could be re-used by multiple volumes, this field indicates whether a brick is used by multiple volumes. Although technically valid, this exposes the system to capacity conflicts across different volumes when the quota feature is not in use. |
Clients | Displays a count of the unique clients connected against the trusted pool and each of the volumes. Multiple mounts from the same client are hence ignored in this calculation. |
Nodes / Self Heal / Bricks X/Y | This indicates that X components of Y total/expected components within the trusted pool are online. In Example 2, note that 3/4 is displayed against all of these fields – indicating that the node, brick and the self heal daemon are unavailable. |
Tasks Active | Active background tasks such as rebalance are displayed here against individual volumes. |
Protocols | Displays which protocols have been enabled for the volume. In the case of SMB, this does not denote that Samba is configured and is active. |
Snapshots | Displays a count of the number of snapshots taken for the volume. The snapshot count for each volume is rolled up to the trusted storage pool to provide a high level view of the number of snapshots in the environment. |
Status Messages | After the information is gathered, any errors detected are reported in the Status Messages section. These descriptions provide a view of the problem and the potential impact of the condition. |