Advertisement
ChrRaible

ceph.conf

Apr 27th, 2011
481
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.36 KB | None | 0 0
  1. ; global
  2. [global]
  3. ; enable secure authentication
  4. ;auth supported = cephx
  5.  
  6. ; allow ourselves to open a lot of files
  7. max open files = 131072
  8.  
  9. ; set up logging
  10. log file = /var/log/ceph/$name.log
  11.  
  12. ; set up pid files
  13. pid file = /var/run/ceph/$name.pid
  14.  
  15. ; monitors
  16. ; You need at least one. You need at least three if you want to
  17. ; tolerate any node failures. Always create an odd number.
  18. [mon]
  19. mon data = /mnt/data/mon$id
  20.  
  21. ; logging, for debugging monitor crashes, in order of
  22. ; their likelihood of being helpful :)
  23. ;debug ms = 1
  24. ;debug mon = 20
  25. ;debug paxos = 20
  26. ;debug auth = 20
  27.  
  28. [mon.0]
  29. host = nebula0
  30. mon addr = 10.1.9.40:6789
  31.  
  32. [mon.1]
  33. host = nebula1
  34. mon addr = 10.1.9.41:6789
  35.  
  36. [mon.2]
  37. host = nebula2
  38. mon addr = 10.1.9.42:6789
  39.  
  40. ; mds
  41. ; You need at least one. Define two to get a standby.
  42. [mds]
  43. ; where the mds keeps it's secret encryption keys
  44. ;keyring = /data/keyring.$name
  45.  
  46. ; mds logging to debug issues.
  47. ;debug ms = 1
  48. ;debug mds = 20
  49.  
  50. [mds.nebula0]
  51. host = nebula0
  52. debug ms = 1
  53. debug mds = 20
  54.  
  55. [mds.nebula1]
  56. host = nebula1
  57.  
  58. [mds.nebula2]
  59. host = nebula2
  60.  
  61. ; osd
  62. ; You need at least one. Two if you want data to be replicated.
  63. ; Define as many as you like.
  64. [osd]
  65. ; This is where the btrfs volume will be mounted.
  66. osd data = /mnt/data/osd$id
  67.  
  68. ; Ideally, make this a separate disk or partition. A few
  69. ; hundred MB should be enough; more if you have fast or many
  70. ; disks. You can use a file under the osd data dir if need be
  71. ; (e.g. /data/osd$id/journal), but it will be slower than a
  72. ; separate disk or partition.
  73.  
  74. ; This is an example of a file-based journal.
  75. osd journal = /mnt/journal/osd$id/journal
  76. osd journal size = 500 ; journal size, in megabytes
  77.  
  78. ; osd logging to debug osd issues, in order of likelihood of being
  79. ; helpful
  80. ;debug ms = 1
  81. ;debug osd = 20
  82. ;debug filestore = 20
  83. ;debug journal = 20
  84.  
  85. [osd.0]
  86. host = nebula0
  87.  
  88. ; if 'btrfs devs' is not specified, you're responsible for
  89. ; setting up the 'osd data' dir. if it is not btrfs, things
  90. ; will behave up until you try to recover from a crash (which
  91. ; usually fine for basic testing).
  92. devs = /dev/sda6
  93.  
  94. [osd.1]
  95. host = nebula1
  96. devs = /dev/sda6
  97.  
  98. [osd.2]
  99. host = nebula2
  100. devs = /dev/sda6
  101.  
  102. [osd.3]
  103. host = nebula3
  104. devs = /dev/sda6
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement