Display the default Ceph configuration

The ceph-conf command line queries the /etc/ceph/ceph.conf file.

# ceph-conf --lookup fsid
571bb920-6d85-44d7-9eca-1bc114d1cd75

The –show-config option can be used to display the config of a running daemon:

ceph -n osd.123 --show-config

When no name is specified, it will show the default Ceph configuration

ceph --show-config --conf /dev/null
This entry was posted in ceph. Bookmark the permalink.

One Response to Display the default Ceph configuration

  1. Simon Leinen says:

    The –show-config option can be used to display the config of a running daemon:

    I just tried to use this on our Jewel cluster, and found that it works slightly differently. The situation is that we have changed the osd snap trim sleep parameter in /etc/ceph/ceph.conf from 1 to undespecified (default 0), but haven’t restarted the OSD daemons yet. But --show-config seems to show what’s in ceph.conf, not what is actually running:

    $ ceph -n osd.123 --show-config | grep trim_sleep
    osd_snap_trim_sleep = 0
    $ sudo ceph --admin-daemon /var/run/ceph/ceph-osd.123.asok config show | grep trim_sleep
    "osd_snap_trim_sleep": "1",

Leave a Reply

Your email address will not be published. Required fields are marked *

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>