# ceph osd tree --format=json-pretty
{
"nodes": [
{
"id": -1,
"name": "default",
"type": "root",
"type_id": 10,
"children": [
-2
]
},
{
"id": -2,
"name": "h1",
"type": "host",
"type_id": 1,
"children": [
9,
14,
13,
12,
11,
10,
8,
7,
6
]
},
{
"id": 6,
"name": "osd.6",
"type": "osd",
"type_id": 0,
"crush_weight": 1.809998,
"depth": 2,
"exists": 1,
"status": "down",
"reweight": 1.000000,
"primary_affinity": 1.000000
},
{
"id": 7,
"name": "osd.7",
"type": "osd",
"type_id": 0,
"crush_weight": 1.809998,
"depth": 2,
"exists": 1,
"status": "down",
"reweight": 1.000000,
"primary_affinity": 1.000000
},
{
"id": 8,
"name": "osd.8",
"type": "osd",
"type_id": 0,
"crush_weight": 0.899994,
"depth": 2,
"exists": 1,
"status": "down",
"reweight": 1.000000,
"primary_affinity": 1.000000
},
{
"id": 10,
"name": "osd.10",
"type": "osd",
"type_id": 0,
"crush_weight": 0.679993,
"depth": 2,
"exists": 1,
"status": "down",
"reweight": 1.000000,
"primary_affinity": 1.000000
},
{
"id": 11,
"name": "osd.11",
"type": "osd",
"type_id": 0,
"crush_weight": 0.679993,
"depth": 2,
"exists": 1,
"status": "down",
"reweight": 1.000000,
"primary_affinity": 1.000000
},
{
"id": 12,
"name": "osd.12",
"type": "osd",
"type_id": 0,
"crush_weight": 0.679993,
"depth": 2,
"exists": 1,
"status": "down",
"reweight": 1.000000,
"primary_affinity": 1.000000
},
{
"id": 13,
"name": "osd.13",
"type": "osd",
"type_id": 0,
"crush_weight": 0.679993,
"depth": 2,
"exists": 1,
"status": "down",
"reweight": 1.000000,
"primary_affinity": 1.000000
},
{
"id": 14,
"name": "osd.14",
"type": "osd",
"type_id": 0,
"crush_weight": 0.679993,
"depth": 2,
"exists": 1,
"status": "down",
"reweight": 1.000000,
"primary_affinity": 1.000000
},
{
"id": 9,
"name": "osd.9",
"type": "osd",
"type_id": 0,
"crush_weight": 0.679993,
"depth": 2,
"exists": 1,
"status": "down",
"reweight": 1.000000,
"primary_affinity": 1.000000
}
],
"stray": [
{
"id": 0,
"name": "osd.0",
"type": "osd",
"type_id": 0,
"crush_weight": 0.000000,
"depth": 0,
"exists": 1,
"status": "down",
"reweight": 0.000000,
"primary_affinity": 1.000000
},
{
"id": 1,
"name": "osd.1",
"type": "osd",
"type_id": 0,
"crush_weight": 0.000000,
"depth": 0,
"exists": 1,
"status": "down",
"reweight": 0.000000,
"primary_affinity": 1.000000
},
{
"id": 2,
"name": "osd.2",
"type": "osd",
"type_id": 0,
"crush_weight": 0.000000,
"depth": 0,
"exists": 1,
"status": "down",
"reweight": 0.000000,
"primary_affinity": 1.000000
},
{
"id": 3,
"name": "osd.3",
"type": "osd",
"type_id": 0,
"crush_weight": 0.000000,
"depth": 0,
"exists": 1,
"status": "down",
"reweight": 0.000000,
"primary_affinity": 1.000000
},
{
"id": 4,
"name": "osd.4",
"type": "osd",
"type_id": 0,
"crush_weight": 0.000000,
"depth": 0,
"exists": 1,
"status": "down",
"reweight": 0.000000,
"primary_affinity": 1.000000
},
{
"id": 5,
"name": "osd.5",
"type": "osd",
"type_id": 0,
"crush_weight": 0.000000,
"depth": 0,
"exists": 1,
"status": "down",
"reweight": 0.000000,
"primary_affinity": 1.000000
}
]
}
# ceph osd crush tree
[
{
"id": -1,
"name": "default",
"type": "root",
"type_id": 10,
"items": [
{
"id": -2,
"name": "h1",
"type": "host",
"type_id": 1,
"items": [
{
"id": 6,
"name": "osd.6",
"type": "osd",
"type_id": 0,
"crush_weight": 1.809998,
"depth": 2
},
{
"id": 7,
"name": "osd.7",
"type": "osd",
"type_id": 0,
"crush_weight": 1.809998,
"depth": 2
},
{
"id": 8,
"name": "osd.8",
"type": "osd",
"type_id": 0,
"crush_weight": 0.899994,
"depth": 2
},
{
"id": 10,
"name": "osd.10",
"type": "osd",
"type_id": 0,
"crush_weight": 0.679993,
"depth": 2
},
{
"id": 11,
"name": "osd.11",
"type": "osd",
"type_id": 0,
"crush_weight": 0.679993,
"depth": 2
},
{
"id": 12,
"name": "osd.12",
"type": "osd",
"type_id": 0,
"crush_weight": 0.679993,
"depth": 2
},
{
"id": 13,
"name": "osd.13",
"type": "osd",
"type_id": 0,
"crush_weight": 0.679993,
"depth": 2
},
{
"id": 14,
"name": "osd.14",
"type": "osd",
"type_id": 0,
"crush_weight": 0.679993,
"depth": 2
},
{
"id": 9,
"name": "osd.9",
"type": "osd",
"type_id": 0,
"crush_weight": 0.679993,
"depth": 2
}
]
}
]
}
]
# ceph osd crush dump
{
"devices": [
{
"id": 0,
"name": "device0"
},
{
"id": 1,
"name": "device1"
},
{
"id": 2,
"name": "device2"
},
{
"id": 3,
"name": "device3"
},
{
"id": 4,
"name": "device4"
},
{
"id": 5,
"name": "device5"
},
{
"id": 6,
"name": "osd.6"
},
{
"id": 7,
"name": "osd.7"
},
{
"id": 8,
"name": "osd.8"
},
{
"id": 9,
"name": "osd.9"
},
{
"id": 10,
"name": "osd.10"
},
{
"id": 11,
"name": "osd.11"
},
{
"id": 12,
"name": "osd.12"
},
{
"id": 13,
"name": "osd.13"
},
{
"id": 14,
"name": "osd.14"
}
],
"types": [
{
"type_id": 0,
"name": "osd"
},
{
"type_id": 1,
"name": "host"
},
{
"type_id": 2,
"name": "chassis"
},
{
"type_id": 3,
"name": "rack"
},
{
"type_id": 4,
"name": "row"
},
{
"type_id": 5,
"name": "pdu"
},
{
"type_id": 6,
"name": "pod"
},
{
"type_id": 7,
"name": "room"
},
{
"type_id": 8,
"name": "datacenter"
},
{
"type_id": 9,
"name": "region"
},
{
"type_id": 10,
"name": "root"
}
],
"buckets": [
{
"id": -1,
"name": "default",
"type_id": 10,
"type_name": "root",
"weight": 563606,
"alg": "straw",
"hash": "rjenkins1",
"items": [
{
"id": -2,
"weight": 563606,
"pos": 0
}
]
},
{
"id": -2,
"name": "h1",
"type_id": 1,
"type_name": "host",
"weight": 563606,
"alg": "straw",
"hash": "rjenkins1",
"items": [
{
"id": 6,
"weight": 118620,
"pos": 0
},
{
"id": 7,
"weight": 118620,
"pos": 1
},
{
"id": 8,
"weight": 58982,
"pos": 2
},
{
"id": 10,
"weight": 44564,
"pos": 3
},
{
"id": 11,
"weight": 44564,
"pos": 4
},
{
"id": 12,
"weight": 44564,
"pos": 5
},
{
"id": 13,
"weight": 44564,
"pos": 6
},
{
"id": 14,
"weight": 44564,
"pos": 7
},
{
"id": 9,
"weight": 44564,
"pos": 8
}
]
}
],
"rules": [
{
"rule_id": 0,
"rule_name": "replicated_ruleset",
"ruleset": 0,
"type": 1,
"min_size": 1,
"max_size": 10,
"steps": [
{
"op": "take",
"item": -1,
"item_name": "default"
},
{
"op": "chooseleaf_firstn",
"num": 0,
"type": "host"
},
{
"op": "emit"
}
]
}
],
"tunables": {
"choose_local_tries": 0,
"choose_local_fallback_tries": 0,
"choose_total_tries": 50,
"chooseleaf_descend_once": 1,
"chooseleaf_vary_r": 1,
"chooseleaf_stable": 0,
"straw_calc_version": 1,
"allowed_bucket_algs": 22,
"profile": "firefly",
"optimal_tunables": 0,
"legacy_tunables": 0,
"minimum_required_version": "firefly",
"require_feature_tunables": 1,
"require_feature_tunables2": 1,
"has_v2_rules": 0,
"require_feature_tunables3": 1,
"has_v3_rules": 0,
"has_v4_buckets": 0,
"require_feature_tunables5": 0,
"has_v5_rules": 0
}
}