Skip to content

Instantly share code, notes, and snippets.

@djw8605
Created February 17, 2012 04:34
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 2 You must be signed in to fork a gist
  • Save djw8605/1850697 to your computer and use it in GitHub Desktop.
Save djw8605/1850697 to your computer and use it in GitHub Desktop.
Example Ceph configuration
[global]
; enable secure authentication
auth supported = none
; allow ourselves to open a lot of files
max open files = 131072
; set log file
log file = /var/log/ceph/$name.log
; log_to_syslog = true ; uncomment this line to log to syslog
; set up pid files
pid file = /var/run/ceph/$name.pid
; If you want to run a IPv6 cluster, set this to true. Dual-stack isn't possible
;ms bind ipv6 = true
; monitors
; You need at least one. You need at least three if you want to
; tolerate any node failures. Always create an odd number.
[mon]
mon data = /data/$name
[mon.alpha]
host = i-000000c0
mon addr = 10.148.2.147:6789
[mon.gamma]
host = i-000000c2
mon addr = 10.148.2.149:6789
; mds
; You need at least one. Define two to get a standby.
[mds]
; where the mds keeps it's secret encryption keys
keyring = /data/keyring.$name
; mds logging to debug issues.
;debug ms = 1
;debug mds = 20
[mds.alpha]
host = i-000000c0
[mds.gamma]
host = i-000000c2
; osd
; You need at least one. Two if you want data to be replicated.
; Define as many as you like.
[osd]
; This is where the btrfs volume will be mounted.
osd data = /data/$name
; This is an example of a file-based journal.
osd journal = /data/$name/journal
osd journal size = 1000 ; journal size, in megabytes
[osd.0]
host = i-000000c0
[osd.1]
host = i-000000c2
;btrfs devs = /dev/sdx
[osd.2]
host = i-000000c3
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment