LinuxCommandLibrary
GitHubF-DroidGoogle Play Store

ceph

distributed storage cluster management

TLDR

Show the overall cluster health
$ ceph status
copy
Explain why the cluster is not healthy
$ ceph health detail
copy
Watch cluster events as they happen
$ ceph -w
copy
Show capacity, overall and per pool
$ ceph df
copy
List the pools
$ ceph osd pool ls
copy
Create a pool with a placement group count
$ ceph osd pool create [pool_name] [128]
copy
Change a pool's replica count
$ ceph osd pool set [pool_name] size [3]
copy
Rename a pool
$ ceph osd pool rename [current_name] [new_name]
copy
Delete a pool, which insists on the name twice and a confirmation flag
$ ceph osd pool delete [pool_name] [pool_name] --yes-i-really-really-mean-it
copy
Show the OSDs arranged by host and rack
$ ceph osd tree
copy
Mark an OSD out so its data drains onto the others
$ ceph osd out [osd.3]
copy
Summarize the placement group states
$ ceph pg stat
copy
Repair a specific placement group
$ ceph pg repair [pg_id]
copy
Show the monitor quorum
$ ceph mon stat
copy

SYNOPSIS

ceph [options] command

DESCRIPTION

ceph is the command-line interface for managing Ceph distributed storage clusters. Ceph provides unified object, block, and file storage with automatic data replication, self-healing, and no single point of failure.The command communicates with the Ceph monitor daemons to perform cluster administration tasks including checking health status, managing OSDs (Object Storage Daemons), configuring placement groups, and handling authentication. It serves as the primary tool for day-to-day cluster operations and troubleshooting.Ceph organizes data into pools, which contain placement groups that map to OSDs across the cluster. The `ceph status` command provides a quick overview of cluster health, while more specific subcommands allow fine-grained control over individual components.

PARAMETERS

-s, --status

Show cluster status
--format format
Output format: json, plain
-c file
Use alternate config file

CONFIGURATION

/etc/ceph/ceph.conf

Main cluster configuration including monitor addresses, authentication settings, and OSD parameters.
/etc/ceph/ceph.client.admin.keyring
Admin authentication keyring for cluster access.

SUBCOMMANDS

status

Show cluster health and status
df
Show cluster disk usage
osd
Manage Object Storage Daemons
pg
Manage placement groups
mon
Manage monitor daemons
mds
Manage metadata servers
auth
Manage authentication

INSTALL

sudo apt install ceph-common
copy
sudo dnf install ceph-common
copy
sudo apk add ceph18-common
copy
sudo zypper install ceph-common
copy
nix profile install nixpkgs#ceph
copy

CAVEATS

Requires proper Ceph configuration and authentication. Cluster operations may take time to complete. Some commands require specific permissions.

SEE ALSO

cephadm(8)

Braincup
Open source brain training for math, memory and focus
Braincup mini-games
41 mini-games · Apache-2.0
No ads · No tracking
Play in browser
Download Braincup on the App StoreGet Braincup on Google PlayGet Braincup on F-Droid
276 stars
From the maker of Linux Command Library
Copied to clipboard
Braincup
Open source brain training for math, memory and focus. 41 mini-games, from mental arithmetic to Sudoku, N-Back and Solo Chess.
Apache-2.0 licensed · No ads · No tracking · No account
From the maker of Linux Command Library
Download Braincup on the App StoreGet Braincup on Google PlayGet Braincup on F-Droid