Libro sobre Proxmox maestria
data metadata rbd ssd
The command should show the following result:
We can also check the status of a cluster along with the number of PGs using the following command:
# ceph -s
We will see the following status of the Ceph cluster:
cluster 472cefbe-11a6-40f7-a352-5d245ae89fb3 health HEALTH_OK monmap e2: 3 mons at {ceph-mon-01-192.168.10.11:6789/0, ceph-mon- 02-192.168.10.12:6789/0, ceph-mon-03-192.168.10.13:6789/0}, election epoch 6, quorum 0,1,2 ceph-mon-01, ceph-mon-02, ceph- mon-03 mdsmap e5: 1/1/1 up (0-ceph-mds-01-up:active}, 1 up: standby osdmap e20: 4 osds: 4 up, 4 in pgmap v71: 448 pgs, 4 pools, 18610 bytes data, 21 objects
141 MB used, 299 GB / 299 GB avail
448 active+clean
Based on the status information, we now have four pools with 448 active+clean PGs.
We will now add some SSDs to our new pool to be used as high-performing storage. Perform the steps mentioned in the Creating OSDs subsection (in the Installing Ceph using an OS section of this chapter) to add the OSDs. Be advised that when adding or removing OSDs, the cluster goes to recovery mode, which might slow down the network by increasing traffic on the Ceph cluster-dedicated network.
Recovery mode or rebalancing in Ceph means when there is an OSD or node failure or new OSDs are added, the Ceph cluster will automatically try to redistribute or rebalance data among the remaining active OSDs and nodes. During this rebalancing, the Ceph cluster creates heavy I/O and network bandwidth traffic causing slow downs. The period of recovery mode or rebalancing depends on how much data is stored in the cluster and how many objects the cluster has to rebalance.