Advertisement
ChrRaible

ceph_config

Aug 23rd, 2011
88
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.23 KB | None | 0 0
  1. ###############################
  2. # #
  3. # Ceph-Konfigurationsdatei #
  4. # #
  5. ###############################
  6.  
  7. ; global
  8. [global]
  9. ; enable secure authentication
  10. ; auth supported = cephx
  11.  
  12. ; monitors
  13. ; You need at least one. You need at least three if you want to
  14. ; tolerate any node failures. Always create an odd number.
  15. [mon]
  16. mon data = /data/mon$id
  17.  
  18. ; some minimal logging (just message traffic) to aid debugging
  19. debug ms = 1
  20.  
  21. [mon0]
  22. host = ceph0
  23. mon addr = 10.1.9.40:6789
  24.  
  25. [mon1]
  26. host = ceph1
  27. mon addr = 10.1.9.41:6789
  28.  
  29. [mon2]
  30. host = ceph2
  31. mon addr = 10.1.9.42:6789
  32.  
  33. ; mds
  34. ; You need at least one. Define two to get a standby.
  35. [mds]
  36. ; where the mds keeps its secret encryption keys
  37. keyring = /data/keyring.$name
  38.  
  39. [mds.0]
  40. host = ceph0
  41. mds standby replay = true
  42. mds standby for name = ceph1
  43. [mds.1]
  44. host = ceph1
  45. mds standby replay = true
  46. mds standby for name = ceph2
  47. [mds.2]
  48. host = ceph2
  49. mds standby replay = true
  50. mds standby for name = ceph3
  51. [mds.3]
  52. host = ceph3
  53. mds standby replay = true
  54. mds standby for name = ceph0
  55.  
  56.  
  57. ; osd
  58. ; You need at least one. Two if you want data to be replicated.
  59. ; Define as many as you like.
  60. [osd]
  61. ; This is where the btrfs volume will be mounted.
  62. osd data = /data/osd$id
  63.  
  64. ; Ideally, make this a separate disk or partition. A few GB
  65. ; is usually enough; more if you have fast disks. You can use
  66. ; a file under the osd data dir if need be
  67. ; (e.g. /data/osd$id/journal), but it will be slower than a
  68. ; separate disk or partition.
  69. osd journal = /data/osd$id/journal
  70.  
  71. ; If the OSD journal is a file, you need to specify the size. This is specified in MB.
  72. osd journal size = 512
  73.  
  74.  
  75.  
  76. [osd0]
  77. ; if 'btrfs devs' is not specified, you're responsible for
  78. ; setting up the 'osd data' dir. if it is not btrfs, things
  79. ; will behave up until you try to recover from a crash (which
  80. ; usually fine for basic testing).
  81. host = ceph0
  82. osd data = /dev/sda6
  83.  
  84. [osd1]
  85. host = ceph1
  86. osd data = /dev/sda6
  87.  
  88. [osd2]
  89. host = ceph2
  90. osd data = /dev/sda6
  91.  
  92. [osd3]
  93. host = ceph3
  94. osd data = /dev/sda6
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement