Kamenets

Conf

Mar 12th, 2021
66
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 5.92 KB | None | 0 0
  1. [global]
  2.      auth_client_required = cephx
  3.      auth_cluster_required = cephx
  4.      auth_service_required = cephx
  5.      cluster_network = 10.10.10.4/16
  6.      fsid = 87dd1f45-1cce-4826-8098-db1770210b97
  7.      mon_allow_pool_delete = true
  8.      mon_host = 10.10.10.4 10.10.10.5 10.10.10.6 10.10.10.7
  9.      osd_pool_default_min_size = 2
  10.      osd_pool_default_size = 3
  11.      public_network = 10.10.10.4/16
  12.      osd_crush_update_on_start = false
  13.  
  14. [client]
  15.      keyring = /etc/pve/priv/$cluster.$name.keyring
  16.  
  17. # begin crush map
  18. tunable choose_local_tries 0
  19. tunable choose_local_fallback_tries 0
  20. tunable choose_total_tries 50
  21. tunable chooseleaf_descend_once 1
  22. tunable chooseleaf_vary_r 1
  23. tunable chooseleaf_stable 1
  24. tunable straw_calc_version 1
  25. tunable allowed_bucket_algs 54
  26.  
  27. # devices
  28. device 0 osd.0 class nvme
  29. device 1 osd.1 class hdd
  30. device 2 osd.2 class hdd
  31. device 3 osd.3 class ssd
  32. device 4 osd.4 class nvme
  33. device 5 osd.5 class hdd
  34. device 6 osd.6 class hdd
  35. device 7 osd.7 class ssd
  36. device 8 osd.8 class nvme
  37. device 9 osd.9 class hdd
  38. device 10 osd.10 class hdd
  39. device 11 osd.11 class ssd
  40. device 12 osd.12 class nvme
  41. device 13 osd.13 class hdd
  42. device 14 osd.14 class hdd
  43. device 15 osd.15 class ssd
  44.  
  45. # types
  46. type 0 osd
  47. type 1 host
  48. type 2 chassis
  49. type 3 rack
  50. type 4 row
  51. type 5 pdu
  52. type 6 pod
  53. type 7 room
  54. type 8 datacenter
  55. type 9 zone
  56. type 10 region
  57. type 11 root
  58.  
  59. # buckets
  60. host pve4-ssd {
  61.     id -101     # do not change unnecessarily
  62.     id -34 class nvme       # do not change unnecessarily
  63.     id -39 class hdd        # do not change unnecessarily
  64.     # weight 0.218
  65.     alg straw2
  66.     hash 0  # rjenkins1
  67.     item osd.3 weight 0.218
  68. }
  69. host pve5-ssd {
  70.     id -102     # do not change unnecessarily
  71.     id -35 class nvme       # do not change unnecessarily
  72.     # weight 0.218
  73.     alg straw2
  74.     hash 0  # rjenkins1
  75.     item osd.7 weight 0.218
  76. }
  77. host pve6-ssd {
  78.     id -103     # do not change unnecessarily
  79.     id -36 class nvme       # do not change unnecessarily
  80.     # weight 0.233
  81.     alg straw2
  82.     hash 0  # rjenkins1
  83.     item osd.11 weight 0.233
  84. }
  85. host pve7-ssd {
  86.     id -104     # do not change unnecessarily
  87.     id -37 class nvme       # do not change unnecessarily
  88.     # weight 0.233
  89.     alg straw2
  90.     hash 0  # rjenkins1
  91.     item osd.15 weight 0.233
  92. }
  93. root ssd {
  94.     id -100     # do not change unnecessarily
  95.     id -38 class nvme       # do not change unnecessarily
  96.     # weight 0.872
  97.     alg straw2
  98.     hash 0  # rjenkins1
  99.     item pve4-ssd weight 0.218
  100.     item pve5-ssd weight 0.218
  101.     item pve6-ssd weight 0.218
  102.     item pve7-ssd weight 0.218
  103. }
  104. host pve4-hdd {
  105.     id -201     # do not change unnecessarily
  106.     id -19 class nvme       # do not change unnecessarily
  107.     id -24 class hdd        # do not change unnecessarily
  108.     id -29 class ssd        # do not change unnecessarily
  109.     # weight 2.728
  110.     alg straw2
  111.     hash 0  # rjenkins1
  112.     item osd.1 weight 1.819
  113.     item osd.2 weight 0.909
  114. }
  115. host pve5-hdd {
  116.     id -202     # do not change unnecessarily
  117.     id -20 class nvme       # do not change unnecessarily
  118.     id -25 class hdd        # do not change unnecessarily
  119.     id -30 class ssd        # do not change unnecessarily
  120.     # weight 2.728
  121.     alg straw2
  122.     hash 0  # rjenkins1
  123.     item osd.5 weight 1.819
  124.     item osd.6 weight 0.909
  125. }
  126. host pve6-hdd {
  127.     id -203     # do not change unnecessarily
  128.     id -21 class nvme       # do not change unnecessarily
  129.     id -26 class hdd        # do not change unnecessarily
  130.     id -31 class ssd        # do not change unnecessarily
  131.     # weight 2.728
  132.     alg straw2
  133.     hash 0  # rjenkins1
  134.     item osd.9 weight 1.819
  135.     item osd.10 weight 0.909
  136. }
  137. host pve7-hdd {
  138.     id -204     # do not change unnecessarily
  139.     id -22 class nvme       # do not change unnecessarily
  140.     id -27 class hdd        # do not change unnecessarily
  141.     id -32 class ssd        # do not change unnecessarily
  142.     # weight 2.728
  143.     alg straw2
  144.     hash 0  # rjenkins1
  145.     item osd.13 weight 1.819
  146.     item osd.14 weight 0.909
  147. }
  148. root hdd {
  149.     id -200     # do not change unnecessarily
  150.     id -23 class nvme       # do not change unnecessarily
  151.     id -28 class hdd        # do not change unnecessarily
  152.     id -33 class ssd        # do not change unnecessarily
  153.     # weight 10.912
  154.     alg straw2
  155.     hash 0  # rjenkins1
  156.     item pve4-hdd weight 2.728
  157.     item pve5-hdd weight 2.728
  158.     item pve6-hdd weight 2.728
  159.     item pve7-hdd weight 2.728
  160. }
  161. host pve4-nvme {
  162.     id -301     # do not change unnecessarily
  163.     id -4 class nvme        # do not change unnecessarily
  164.     id -9 class hdd     # do not change unnecessarily
  165.     id -14 class ssd        # do not change unnecessarily
  166.     # weight 0.218
  167.     alg straw2
  168.     hash 0  # rjenkins1
  169.     item osd.0 weight 0.218
  170. }
  171. host pve5-nvme {
  172.     id -302     # do not change unnecessarily
  173.     id -5 class nvme        # do not change unnecessarily
  174.     id -10 class hdd        # do not change unnecessarily
  175.     id -15 class ssd        # do not change unnecessarily
  176.     # weight 0.218
  177.     alg straw2
  178.     hash 0  # rjenkins1
  179.     item osd.4 weight 0.218
  180. }
  181. host pve6-nvme {
  182.     id -303     # do not change unnecessarily
  183.     id -6 class nvme        # do not change unnecessarily
  184.     id -11 class hdd        # do not change unnecessarily
  185.     id -16 class ssd        # do not change unnecessarily
  186.     # weight 0.218
  187.     alg straw2
  188.     hash 0  # rjenkins1
  189.     item osd.8 weight 0.218
  190. }
  191. host pve7-nvme {
  192.     id -304     # do not change unnecessarily
  193.     id -7 class nvme        # do not change unnecessarily
  194.     id -12 class hdd        # do not change unnecessarily
  195.     id -17 class ssd        # do not change unnecessarily
  196.     # weight 0.218
  197.     alg straw2
  198.     hash 0  # rjenkins1
  199.     item osd.12 weight 0.218
  200. }
  201. root nvme {
  202.     id -300     # do not change unnecessarily
  203.     id -8 class nvme        # do not change unnecessarily
  204.     id -13 class hdd        # do not change unnecessarily
  205.     id -18 class ssd        # do not change unnecessarily
  206.     # weight 0.872
  207.     alg straw2
  208.     hash 0  # rjenkins1
  209.     item pve4-nvme weight 0.218
  210.     item pve5-nvme weight 0.218
  211.     item pve6-nvme weight 0.218
  212.     item pve7-nvme weight 0.218
  213. }
  214.  
  215. # rules
  216. rule ssd {
  217.     id 1
  218.     type replicated
  219.     min_size 1
  220.     max_size 10
  221.     step take ssd
  222.     step chooseleaf firstn 0 type host
  223.     step emit
  224. }
  225. rule hdd {
  226.     id 2
  227.     type replicated
  228.     min_size 1
  229.     max_size 10
  230.     step take hdd
  231.     step chooseleaf firstn 0 type host
  232.     step emit
  233. }
  234. rule nvme {
  235.     id 3
  236.     type replicated
  237.     min_size 1
  238.     max_size 10
  239.     step take nvme
  240.     step chooseleaf firstn 0 type host
  241.     step emit
  242. }
  243.  
  244. # end crush map
Advertisement
Add Comment
Please, Sign In to add comment