Libro sobre Proxmox maestria
High Availability Storage for High Availability Cluster
It is best to set a cluster to not bring OSDs online right away to prevent rebalancing. Run the following commands to prevent the OSDs from coming online as soon as they are added:
#ceph osd set noin
This will prevent new OSDs from reaching the up and in statuses. Each OSD can have several statuses to let us know the condition the OSD is in. The presence of an OSD in the cluster is represented by 0 or 1 for an in or out condition, while the OSD daemon connection is represented by an up or down condition. For example, an OSD which is active in the cluster and receives acknowledgement from Ceph Monitor will have a status of up and 1. If the OSD is still in the cluster but OSD daemon is not responding to Monitor, the status will be down and 1. When the OSD is deactivated or fails completely, the status will be down and 0, that is, it is down and out of the cluster. The Ceph cluster will start balancing as soon as the OSD status changes.
By default, when we add OSD, they are put in the default ruleset. In this case, we want to put SSD OSDs into ruleset 3 created earlier. So we do not want the cluster to start distributing data to this new OSD right away before we move them to ruleset created for the SSD.
After adding the new OSDs, the following is the status information we should get from the osd tree command:
cephadmin@ceph-admin-01:~/pmxceph$ sudo ceph osd tree
After the command is executed, we can see the following output:
ིི སྦྱི ་ ཆ ཞུ ཞུ ཆུ