Libro sobre Proxmox maestria
type 2 rack type 3 row typw 4 pdu type 5 room type 6 datacenter type 7 root
When creating new buckets, be sure to maintain the sequence in the bucket types. For example, a room always belongs to a datacenter, so a datacenter should not come before the room in the types.
A ruleset in Ceph defines the strategies of how object replicas are distributed among OSDs based on the CRUSH map. For example, if we have a set of SSDs in the Ceph cluster, and we want a particular pool to store data only on those SSDs, we will create a ruleset and the ruleset to that pool. Whenever data is stored, that pool will always use the SSDs we have allocated in the ruleset. There are virtually no limitations on how ruleset can be used to dictate how and where Ceph pools can store data. Each ruleset has an integer numeric value. We use this value to assign a specific ruleset to a pool.
We are now going to add a root bucket named ssd and a ruleset ssd to the CRUSH map. Add the following bucket under the root default in the map:
root ssd { id -5 # do not change unnecessarily
# weight 0 alg straw hash 0 # rjenkinsl item ceph-ssd-01 weight 0 item ceph-ssd-02 weight 0
Add the following ruleset at the bottom of the map:
rule ssd { ruleset 3 type replicated min_size 1 max_size 10 step take ssd step chooseleaf firstn 0 type host step emit