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
|
|
|
|
2009-03-11 23:07:16 +00:00
|
|
|
; If a 'host' is defined for a daemon, the start/stop script will
|
|
|
|
; 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
|
|
|
|
|
|
|
; global
|
2009-03-11 23:07:16 +00:00
|
|
|
[global]
|
|
|
|
pid file = /var/run/ceph/$name.pid
|
2009-03-01 05:37:16 +00:00
|
|
|
|
2009-05-09 18:25:27 +00:00
|
|
|
; some minimal logging (just message traffic) to aid debugging
|
|
|
|
debug ms = 1
|
|
|
|
|
2009-03-11 23:07:16 +00:00
|
|
|
; monitor
|
|
|
|
[mon]
|
2009-03-11 23:31:00 +00:00
|
|
|
mon data = /data/mon$id
|
2009-03-01 05:37:16 +00:00
|
|
|
|
2009-03-11 23:07:16 +00:00
|
|
|
[mon0]
|
|
|
|
host = alpha
|
|
|
|
mon addr = 192.168.0.10:6789
|
2009-03-01 05:37:16 +00:00
|
|
|
|
2009-03-11 23:07:16 +00:00
|
|
|
[mon1]
|
|
|
|
host = beta
|
|
|
|
mon addr = 192.168.0.11:6789
|
2009-03-01 05:37:16 +00:00
|
|
|
|
2009-03-11 23:07:16 +00:00
|
|
|
[mon2]
|
|
|
|
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
|
|
|
|
[mds]
|
2009-03-01 05:37:16 +00:00
|
|
|
|
2009-03-11 23:07:16 +00:00
|
|
|
[mds.alpha]
|
|
|
|
host = alpha
|
2009-03-11 23:31:00 +00:00
|
|
|
|
2009-03-01 05:37:16 +00:00
|
|
|
|
2009-03-11 23:07:16 +00:00
|
|
|
; osd
|
|
|
|
[osd]
|
|
|
|
sudo = true
|
2009-05-09 18:25:27 +00:00
|
|
|
osd data = /data/osd$id
|
2009-03-01 05:37:16 +00:00
|
|
|
|
2009-03-11 23:07:16 +00:00
|
|
|
[osd0]
|
|
|
|
host = alpha
|
2009-05-09 18:25:27 +00:00
|
|
|
|
|
|
|
; if 'btrfs devs' is not specified, you're responsible for
|
|
|
|
; setting up the 'osd data' dir. if it is not btrfs, things
|
|
|
|
; will behave up until you try to recover from a crash (which
|
|
|
|
; usually fine for basic testing).
|
|
|
|
btrfs devs = /dev/sdx
|
2009-03-01 05:37:16 +00:00
|
|
|
|
2009-03-11 23:07:16 +00:00
|
|
|
[osd1]
|
|
|
|
host = alpha
|
2009-05-09 18:25:27 +00:00
|
|
|
btrfs devs = /data/dev/sdy
|
2009-03-11 23:07:16 +00:00
|
|
|
|
|
|
|
[osd2]
|
|
|
|
host = beta
|
2009-05-09 18:25:27 +00:00
|
|
|
btrfs devs = /dev/sdx
|
2009-03-11 23:07:16 +00:00
|
|
|
|
|
|
|
[osd3]
|
|
|
|
host = beta
|
2010-04-16 22:51:55 +00:00
|
|
|
btrfs devs = /dev/sdy
|