Ceph commands
In this section, we will look at commands for performing various tasks for a Ceph cluster in Proxmox.
How to do it…
The following steps demonstrate the commands used to perform certain tasks for a Ceph cluster:
- Use the following command to check the Ceph cluster's health summary:
# ceph –s
The following screenshot shows our example Ceph cluster with a warning:
- Use the following command to check the Ceph cluster's health details with errors:
# ceph health detail
The following screenshot shows the warning details that tell us whether or not one of the OSDs is experiencing any problems:
- Use the following command to see an OSD map:
# ceph osd tree
The preceding command shows a list of all the member nodes of the Ceph cluster, and the OSDs in each node. This is a quick way to see which OSD is located in a particular node and the ID of each OSD.
The following screenshot shows the OSD tree of our example cluster:
- Use the following command to prevent unnecessary rebalancing...