이 콘텐츠는 선택한 언어로 제공되지 않습니다.

Chapter 9. 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 Gluster 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 Gluster 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 COMMAND
Copy to Clipboard Toggle word wrap
The following is an example using the peer status command:
# gluster peer status
Copy to Clipboard Toggle word wrap
Gluster CLI Interactive Mode

Alternatively, run the Gluster CLI in interactive mode using the following command:

# gluster
Copy to Clipboard Toggle word wrap
If successful, the prompt changes to the following:
gluster>
Copy to Clipboard Toggle word wrap
When the prompt appears, execute gluster commands from the CLI prompt as follows:
gluster> COMMAND
Copy to Clipboard Toggle word wrap
As an example, replace the COMMAND with a command such as peer status to view the status of the peer server:
  1. Start Gluster CLI's interactive mode:
    # gluster
    Copy to Clipboard Toggle word wrap
  2. Request the peer server status:
    gluster> peer status
    Copy to Clipboard Toggle word wrap
  3. 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.
  1. Start Gluster CLI's interactive mode:
    # gluster
    Copy to Clipboard Toggle word wrap
  2. Request the help options:
    gluster> help
    Copy to Clipboard Toggle word wrap
  3. A list of gluster commands and options displays.
맨 위로 이동
Red Hat logoGithubredditYoutubeTwitter

자세한 정보

평가판, 구매 및 판매

커뮤니티

Red Hat 문서 정보

Red Hat을 사용하는 고객은 신뢰할 수 있는 콘텐츠가 포함된 제품과 서비스를 통해 혁신하고 목표를 달성할 수 있습니다. 최신 업데이트를 확인하세요.

보다 포괄적 수용을 위한 오픈 소스 용어 교체

Red Hat은 코드, 문서, 웹 속성에서 문제가 있는 언어를 교체하기 위해 최선을 다하고 있습니다. 자세한 내용은 다음을 참조하세요.Red Hat 블로그.

Red Hat 소개

Red Hat은 기업이 핵심 데이터 센터에서 네트워크 에지에 이르기까지 플랫폼과 환경 전반에서 더 쉽게 작업할 수 있도록 강화된 솔루션을 제공합니다.

Theme

© 2025 Red Hat