A Red Hat Gluster Storage trusted storage pool consists of nodes, volumes, and bricks. The get-state command outputs information about a node to a specified file.
Using the command line interface, external applications can invoke the command on all nodes of the trusted storage pool, and parse and collate the data obtained from all these nodes to get an easy-to-use and complete picture of the state of the trusted storage pool in a machine parseable format.
Executing the get-state Command
The get-state command outputs information about a node to a specified file and can be invoked in different ways. The table below shows the options that can be used with the get-state command.
Copy to ClipboardCopied!Toggle word wrapToggle overflow
Expand
Table 19.4. get-state Command Options
Command
Description
gluster get-state
glusterd state information is saved in the /var/run/gluster/glusterd_state_time file appended with the time.
gluster get-state file file_name
glusterd state information is saved in the /var/run/gluster/ directory and in the file name as specified in the command.
gluster get-state odir directory file file_name
glusterd state information is saved in the directory and in the file name as specified in the command.
Interpreting the Output with Examples
Each invocation of the get-state command, it saves the information that reflect the node level status of the trusted storage pool as maintained in glusterd (no other daemons are supported as of now) to a file specified in the command. By default, the output will be dumped to /var/run/gluster/glusterd_state_timestamp file .
Each invocation of the get-state command provides the following information:
Expand
Table 19.5. Output Description
Section
Description
Global
Displays the UUID and the op-version of the glusterd.
Global options
Displays cluster specific options that have been set explicitly through the volume set command.
Peers
Displays the peer node information including its hostname and connection status.
Volumes
Displays the list of volumes created on this node along with the detailed information on each volume.
Services
Displays the list of the services configured on this node along with its status.
Misc
Displays miscellaneous information about the node. For example, configured ports.