ceph is a command-line utility in Linux that is used to manage and configure a Ceph storage cluster. Ceph is an open-source distributed storage system that provides highly scalable, fault-tolerant storage for data-intensive applications.
ceph is the primary tool for administering and managing a Ceph cluster, and it provides a wide range of commands and options for tasks such as monitoring the health and performance of the cluster, adding and removing storage devices, and configuring Ceph services and features.
If you encounter the below error while running the ceph command:
ceph: command not found
you may try installing the below package as per your choice of distribution:
Distribution | Command |
---|---|
Debian | apt-get install ceph-common |
Ubuntu | apt-get install ceph-common |
Arch Linux | pacman -S ceph |
Kali Linux | apt-get install ceph-common |
CentOS | yum install ceph-common |
Fedora | dnf install ceph-common |
Raspbian | apt-get install ceph-common |
ceph Command Examples
1. Check cluster health status:
# ceph status
2. Check cluster usage stats:
# ceph df
3. Get the statistics for the placement groups in a cluster:
# ceph pg dump --format plain
4. Create a storage pool:
# ceph osd pool create pool_name page_number
5. Delete a storage pool:
# ceph osd pool delete pool_name
6. Rename a storage pool:
# ceph osd pool rename current_name new_name
7. Self-repair pool storage:
# ceph pg repair pool_name