Skip to content

Instantly share code, notes, and snippets.

@shawngmc
Created June 7, 2019 15:58
Show Gist options
  • Save shawngmc/881e50451b3997b646ed6f3076c47c65 to your computer and use it in GitHub Desktop.
Save shawngmc/881e50451b3997b646ed6f3076c47c65 to your computer and use it in GitHub Desktop.
ceph 5-minute quickstart stuff
[global]
# For version 0.55 and beyond, you must explicitly enable
# or disable authentication with "auth" entries in [global].
auth cluster required = cephx
auth service required = cephx
auth client required = cephx
[osd]
osd journal size = 1000
#The following assumes ext4 filesystem.
filestore xattr use omap = true
# For Bobtail (v 0.56) and subsequent versions, you may
# add settings for mkcephfs so that it will create and mount
# the file system on a particular OSD for you. Remove the comment `#`
# character for the following settings and replace the values
# in braces with appropriate values, or leave the following settings
# commented out to accept the default values. You must specify the
# --mkfs option with mkcephfs in order for the deployment script to
# utilize the following settings, and you must define the 'devs'
# option for each osd instance; see below.
#osd mkfs type = {fs-type}
#osd mkfs options {fs-type} = {mkfs options} # default for xfs is "-f"
#osd mount options {fs-type} = {mount options} # default mount option is "rw,noatime"
# For example, for ext4, the mount option might look like this:
#osd mkfs options ext4 = user_xattr,rw,noatime
# Execute $ hostname to retrieve the name of your host,
# and replace ceph-server with the name of your host.
# For the monitor, replace 134.209.117.233 with the IP
# address of your host.
[mon.a]
host = ceph-server
mon addr = 134.209.117.233:6789
[osd.0]
host = ceph-server
# For Bobtail (v 0.56) and subsequent versions, you may
# add settings for mkcephfs so that it will create and mount
# the file system on a particular OSD for you. Remove the comment `#`
# character for the following setting for each OSD and specify
# a path to the device if you use mkcephfs with the --mkfs option.
#devs = {path-to-device}
[osd.1]
host = ceph-server
#devs = {path-to-device}
[mds.a]
host = ceph-server
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment