Chapter 11. Using the Gluster Command Line Interface
Dieser Inhalt ist in der von Ihnen ausgewählten Sprache nicht verfügbar.
Chapter 11. Using the Gluster Command Line Interface
The Gluster command line interface (CLI) simplifies configuration and management of the storage environment. The Gluster CLI is similar to the LVM (Logical Volume Manager) CLI or the ZFS CLI, but operates across multiple storage servers. The Gluster CLI can be used when volumes are mounted (active) and not mounted (inactive). Red Hat Storage automatically synchronizes volume configuration information across all servers.
Use the Gluster CLI to create new volumes, start and stop existing volumes, add bricks to volumes, remove bricks from volumes, and change translator settings. Additionally, the Gluster CLI commands can create automation scripts and use the commands as an API to allow integration with third-party applications.
Note
Appending --mode=script to any CLI command ensures that the command executes without confirmation prompts.
Running the Gluster CLI
Run the Gluster CLI on any Red Hat Storage Server by either invoking the commands or running the Gluster CLI in interactive mode. The gluster command can be remotely used via SSH.
Run commands directly as follows, after replacing COMMAND with the required command:
gluster peer COMMAND
# gluster peer COMMAND
Copy to ClipboardCopied!Toggle word wrapToggle overflow
The following is an example using the status command:
gluster peer status
# gluster peer status
Copy to ClipboardCopied!Toggle word wrapToggle overflow
Gluster CLI Interactive Mode
Alternatively, run the Gluster CLI in interactive mode using the following command:
gluster
# gluster
Copy to ClipboardCopied!Toggle word wrapToggle overflow
If successful, the prompt changes to the following:
gluster>
gluster>
Copy to ClipboardCopied!Toggle word wrapToggle overflow
When the prompt appears, execute gluster commands from the CLI prompt as follows:
gluster> COMMAND
gluster> COMMAND
Copy to ClipboardCopied!Toggle word wrapToggle overflow
As an example, replace the COMMAND with a command such as status to view the status of the peer server:
Start Gluster CLI's interactive mode:
gluster
# gluster
Copy to ClipboardCopied!Toggle word wrapToggle overflow
Request the peer server status:
gluster> status
gluster> status
Copy to ClipboardCopied!Toggle word wrapToggle overflow
The peer server status displays.
The following is another example, replacing the COMMAND with a command such as help to view the gluster help options.
Start Gluster CLI's interactive mode:
gluster
# gluster
Copy to ClipboardCopied!Toggle word wrapToggle overflow
Request the help options:
gluster> help
gluster> help
Copy to ClipboardCopied!Toggle word wrapToggle overflow
Wir helfen Red Hat Benutzern, mit unseren Produkten und Diensten innovativ zu sein und ihre Ziele zu erreichen – mit Inhalten, denen sie vertrauen können. Entdecken Sie unsere neuesten Updates.
Mehr Inklusion in Open Source
Red Hat hat sich verpflichtet, problematische Sprache in unserem Code, unserer Dokumentation und unseren Web-Eigenschaften zu ersetzen. Weitere Einzelheiten finden Sie in Red Hat Blog.
Über Red Hat
Wir liefern gehärtete Lösungen, die es Unternehmen leichter machen, plattform- und umgebungsübergreifend zu arbeiten, vom zentralen Rechenzentrum bis zum Netzwerkrand.