Libro sobre Proxmox maestria
High Availability Storage for High Availability Cluster rule metadata { ruleset 1 type replicated min_size 1 max_size 10 step take default step chooseleaf firstn 0 type host step emit rule rbd { ruleset 2 type replicated min_size 1 max_size 10 step take default step chooseleaf firstn 0 type host step emit
Before editing the CRUSH map, we highly recommend studying it with the help of Ceph CRUSH documentation. The documentation can be found at https://ceph. com/docs/master/rados/operations/crush-map/.
There are two terms we need to look at before proceeding with the CRUSH Map. They are bucket and ruleset.
Bucket in Ceph is a term used in CRUSH map hierarchy. For example, an OSD is in the host-01 bucket node, the host is in the rack-10 bucket, the rack is in the row-05 bucket, the row is in the bucket room 101, the room is in the bucket datacenter dc-01, and the datacenter is in the root bucket default.
In our previous CRUSH Map example, we have seven types of bucket for our Ceph cluster: osd, host, rack, row, room, datacenter, and root. Depending on how meticulous we want the management control to be, we can create more bucket types. For example, if we have a bunch of host nodes connected to a managed power distribution unit and we want to treat those hosts as a group, we will create a new bucket type, let's say pdu. Our bucket types in our CRUSH map will look like the following:
# types type 0 osd type 1 host