2009-03-01 05:37:16 +00:00
|
|
|
;
|
2009-03-11 23:07:16 +00:00
|
|
|
; Sample ceph ceph.conf file.
|
2009-03-01 05:37:16 +00:00
|
|
|
;
|
2009-03-11 23:07:16 +00:00
|
|
|
; This file defines cluster membership, the various locations
|
|
|
|
; that Ceph stores data, and any other runtime options.
|
2009-03-01 05:37:16 +00:00
|
|
|
|
2012-12-11 23:13:44 +00:00
|
|
|
; If a 'host' is defined for a daemon, the init.d start/stop script will
|
2009-03-11 23:07:16 +00:00
|
|
|
; verify that it matches the hostname (or else ignore it). If it is
|
|
|
|
; not defined, it is assumed that the daemon is intended to start on
|
|
|
|
; the current host (e.g., in a setup with a startup.conf on each
|
|
|
|
; node).
|
2009-03-01 05:37:16 +00:00
|
|
|
|
2011-04-29 17:39:04 +00:00
|
|
|
; The variables $type, $id and $name are available to use in paths
|
|
|
|
; $type = The type of daemon, possible values: mon, mds and osd
|
|
|
|
; $id = The ID of the daemon, for mon.alpha, $id will be alpha
|
|
|
|
; $name = $type.$id
|
|
|
|
|
|
|
|
; For example:
|
|
|
|
; osd.0
|
|
|
|
; $type = osd
|
|
|
|
; $id = 0
|
|
|
|
; $name = osd.0
|
|
|
|
|
|
|
|
; mon.beta
|
|
|
|
; $type = mon
|
|
|
|
; $id = beta
|
|
|
|
; $name = mon.beta
|
|
|
|
|
2009-03-01 05:37:16 +00:00
|
|
|
; global
|
2009-03-11 23:07:16 +00:00
|
|
|
[global]
|
2010-04-20 23:20:11 +00:00
|
|
|
; enable secure authentication
|
|
|
|
auth supported = cephx
|
2009-03-01 05:37:16 +00:00
|
|
|
|
2011-01-04 01:18:14 +00:00
|
|
|
; allow ourselves to open a lot of files
|
|
|
|
max open files = 131072
|
|
|
|
|
2011-04-29 17:39:04 +00:00
|
|
|
; set log file
|
2011-04-13 17:02:25 +00:00
|
|
|
log file = /var/log/ceph/$name.log
|
2011-04-29 17:39:04 +00:00
|
|
|
; log_to_syslog = true ; uncomment this line to log to syslog
|
2011-04-13 17:02:25 +00:00
|
|
|
|
|
|
|
; set up pid files
|
|
|
|
pid file = /var/run/ceph/$name.pid
|
|
|
|
|
2011-04-29 17:39:04 +00:00
|
|
|
; If you want to run a IPv6 cluster, set this to true. Dual-stack isn't possible
|
|
|
|
;ms bind ipv6 = true
|
|
|
|
|
2010-04-20 23:20:11 +00:00
|
|
|
; monitors
|
|
|
|
; You need at least one. You need at least three if you want to
|
|
|
|
; tolerate any node failures. Always create an odd number.
|
2009-03-11 23:07:16 +00:00
|
|
|
[mon]
|
2011-04-29 17:39:04 +00:00
|
|
|
mon data = /data/$name
|
|
|
|
|
|
|
|
; If you are using for example the RADOS Gateway and want to have your newly created
|
|
|
|
; pools a higher replication level, you can set a default
|
|
|
|
;osd pool default size = 3
|
|
|
|
|
|
|
|
; You can also specify a CRUSH rule for new pools
|
|
|
|
; Wiki: http://ceph.newdream.net/wiki/Custom_data_placement_with_CRUSH
|
|
|
|
;osd pool default crush rule = 0
|
|
|
|
|
|
|
|
; Timing is critical for monitors, but if you want to allow the clocks to drift a
|
|
|
|
; bit more, you can specify the max drift.
|
|
|
|
;mon clock drift allowed = 1
|
|
|
|
|
|
|
|
; Tell the monitor to backoff from this warning for 30 seconds
|
|
|
|
;mon clock drift warn backoff = 30
|
2009-03-01 05:37:16 +00:00
|
|
|
|
2010-05-27 04:47:35 +00:00
|
|
|
; logging, for debugging monitor crashes, in order of
|
|
|
|
; their likelihood of being helpful :)
|
|
|
|
;debug ms = 1
|
|
|
|
;debug mon = 20
|
|
|
|
;debug paxos = 20
|
|
|
|
;debug auth = 20
|
2010-04-20 23:20:11 +00:00
|
|
|
|
2011-04-29 17:39:04 +00:00
|
|
|
[mon.alpha]
|
2009-03-11 23:07:16 +00:00
|
|
|
host = alpha
|
|
|
|
mon addr = 192.168.0.10:6789
|
2009-03-01 05:37:16 +00:00
|
|
|
|
2011-04-29 17:39:04 +00:00
|
|
|
[mon.beta]
|
2009-03-11 23:07:16 +00:00
|
|
|
host = beta
|
|
|
|
mon addr = 192.168.0.11:6789
|
2009-03-01 05:37:16 +00:00
|
|
|
|
2011-04-29 17:39:04 +00:00
|
|
|
[mon.gamma]
|
2009-03-11 23:07:16 +00:00
|
|
|
host = gamma
|
|
|
|
mon addr = 192.168.0.12:6789
|
2009-03-01 05:37:16 +00:00
|
|
|
|
2009-03-11 23:07:16 +00:00
|
|
|
; mds
|
2010-04-20 23:20:11 +00:00
|
|
|
; You need at least one. Define two to get a standby.
|
2009-03-11 23:07:16 +00:00
|
|
|
[mds]
|
2010-04-20 23:20:11 +00:00
|
|
|
; where the mds keeps it's secret encryption keys
|
|
|
|
keyring = /data/keyring.$name
|
2009-03-01 05:37:16 +00:00
|
|
|
|
2010-05-27 04:47:35 +00:00
|
|
|
; mds logging to debug issues.
|
|
|
|
;debug ms = 1
|
|
|
|
;debug mds = 20
|
|
|
|
|
2009-03-11 23:07:16 +00:00
|
|
|
[mds.alpha]
|
|
|
|
host = alpha
|
2009-03-11 23:31:00 +00:00
|
|
|
|
2010-04-20 23:20:11 +00:00
|
|
|
[mds.beta]
|
|
|
|
host = beta
|
2009-03-01 05:37:16 +00:00
|
|
|
|
2009-03-11 23:07:16 +00:00
|
|
|
; osd
|
2010-04-20 23:20:11 +00:00
|
|
|
; You need at least one. Two if you want data to be replicated.
|
|
|
|
; Define as many as you like.
|
2009-03-11 23:07:16 +00:00
|
|
|
[osd]
|
2012-12-11 23:13:44 +00:00
|
|
|
; This is where the osd expects its data
|
2011-04-29 17:39:04 +00:00
|
|
|
osd data = /data/$name
|
2009-03-01 05:37:16 +00:00
|
|
|
|
2012-12-14 17:53:30 +00:00
|
|
|
; Ideally, make the journal a separate disk or partition.
|
2012-12-11 23:13:44 +00:00
|
|
|
; 1-10GB should be enough; more if you have fast or many
|
2010-05-27 04:47:35 +00:00
|
|
|
; disks. You can use a file under the osd data dir if need be
|
2011-04-29 17:39:04 +00:00
|
|
|
; (e.g. /data/$name/journal), but it will be slower than a
|
2010-04-20 23:20:11 +00:00
|
|
|
; separate disk or partition.
|
2010-11-09 22:06:42 +00:00
|
|
|
; This is an example of a file-based journal.
|
2011-04-29 17:39:04 +00:00
|
|
|
osd journal = /data/$name/journal
|
2010-11-09 22:06:42 +00:00
|
|
|
osd journal size = 1000 ; journal size, in megabytes
|
2010-04-20 23:20:11 +00:00
|
|
|
|
2012-12-11 23:13:44 +00:00
|
|
|
; If you want to run the journal on a tmpfs (don't), disable DirectIO
|
2011-04-29 17:39:04 +00:00
|
|
|
;journal dio = false
|
|
|
|
|
|
|
|
; You can change the number of recovery operations to speed up recovery
|
|
|
|
; or slow it down if your machines can't handle it
|
|
|
|
; osd recovery max active = 3
|
|
|
|
|
2010-05-27 04:47:35 +00:00
|
|
|
; osd logging to debug osd issues, in order of likelihood of being
|
|
|
|
; helpful
|
|
|
|
;debug ms = 1
|
|
|
|
;debug osd = 20
|
|
|
|
;debug filestore = 20
|
|
|
|
;debug journal = 20
|
|
|
|
|
2012-12-11 23:13:44 +00:00
|
|
|
|
|
|
|
; ### The below options only apply if you're using mkcephfs
|
|
|
|
; ### and the devs options
|
2012-11-23 17:31:10 +00:00
|
|
|
; The filesystem used on the volumes
|
|
|
|
osd mkfs type = btrfs
|
|
|
|
; If you want to specify some other mount options, you can do so.
|
|
|
|
; for other filesystems use 'osd mount options $fstype'
|
|
|
|
osd mount options btrfs = rw,noatime
|
|
|
|
; The options used to format the filesystem via mkfs.$fstype
|
|
|
|
; for other filesystems use 'osd mkfs options $fstype'
|
|
|
|
; osd mkfs options btrfs =
|
|
|
|
|
|
|
|
|
2011-04-15 21:45:56 +00:00
|
|
|
[osd.0]
|
2010-04-20 23:20:11 +00:00
|
|
|
host = delta
|
2009-05-09 18:25:27 +00:00
|
|
|
|
2012-11-23 17:31:10 +00:00
|
|
|
; if 'devs' is not specified, you're responsible for
|
2012-12-11 23:13:44 +00:00
|
|
|
; setting up the 'osd data' dir.
|
2012-11-23 17:31:10 +00:00
|
|
|
devs = /dev/sdx
|
2011-04-29 17:39:04 +00:00
|
|
|
|
2011-04-15 21:45:56 +00:00
|
|
|
[osd.1]
|
2010-04-20 23:20:11 +00:00
|
|
|
host = epsilon
|
2012-11-23 17:31:10 +00:00
|
|
|
devs = /dev/sdy
|
2009-03-11 23:07:16 +00:00
|
|
|
|
2011-04-15 21:45:56 +00:00
|
|
|
[osd.2]
|
2010-04-20 23:20:11 +00:00
|
|
|
host = zeta
|
2012-11-23 17:31:10 +00:00
|
|
|
devs = /dev/sdx
|
2009-03-11 23:07:16 +00:00
|
|
|
|
2011-04-15 21:45:56 +00:00
|
|
|
[osd.3]
|
2010-04-20 23:20:11 +00:00
|
|
|
host = eta
|
2012-11-23 17:31:10 +00:00
|
|
|
devs = /dev/sdy
|