m0n0lithic icon

Ceph crushmap (20121219)

m0n0lithic | PRO | 12/20/12 11:52:21 AM UTC | 0 ⭐ | 224 👁️ | Never ⏰ | []
text |

1.58 KB

|

None

|

0 👍

/

0 👎

# begin crush map
 # devices
device 0 osd.0
device 1 osd.1
device 2 osd.2
 # types
type 0 osd
type 1 host
type 2 rack
type 3 row
type 4 room
type 5 datacenter
type 6 pool
 # buckets
host canete {
    id -2       # do not change unnecessarily
    # weight 2.000
    alg straw
    hash 0  # rjenkins1
    item osd.0 weight 1.000
    item osd.1 weight 1.000
    item osd.2 weight 1.000
}
rack unknownrack {
    id -3       # do not change unnecessarily
    # weight 2.000
    alg straw
    hash 0  # rjenkins1
    item canete weight 2.000
}
pool default {
    id -1       # do not change unnecessarily
    # weight 2.000
    alg straw
    hash 0  # rjenkins1
    item unknownrack weight 2.000
}
 # rules
rule data {
    ruleset 0
    type replicated
    min_size 1
    max_size 10
    step take default
    step choose firstn 0 type osd
    step emit
}
rule metadata {
    ruleset 1
    type replicated
    min_size 1
    max_size 10
    step take default
    step choose firstn 0 type osd
    step emit
}
rule rbd {
    ruleset 2
    type replicated
    min_size 1
    max_size 10
    step take default
    step choose firstn 0 type osd
    step emit
}
 # end crush map
 --------------------------------------------------------------------
$ sudo ceph -s
   health HEALTH_OK
   monmap e2: 2 mons at {a=172.25.19.65:6789/0,b=172.25.19.4:6789/0}, election epoch 34, quoru 0,1 a,b
   osdmap e277: 3 osds: 3 up, 3 in
    pgmap v89368: 392 pgs: 392 active+clean; 1052 GB data, 2115 GB used, 7646 GB / 10162 GB avil
   mdsmap e27145: 0/0/1 up

Comments