]> git.proxmox.com Git - ceph.git/blame - ceph/doc/man/8/ceph-conf.rst
import 15.2.5
[ceph.git] / ceph / doc / man / 8 / ceph-conf.rst
CommitLineData
7c673cae
FG
1:orphan:
2
3==================================
4 ceph-conf -- ceph conf file tool
5==================================
6
7.. program:: ceph-conf
8
9Synopsis
10========
11
12| **ceph-conf** -c *conffile* --list-all-sections
13| **ceph-conf** -c *conffile* -L
14| **ceph-conf** -c *conffile* -l *prefix*
15| **ceph-conf** *key* -s *section1* ...
16| **ceph-conf** [-s *section* ] [-r] --lookup *key*
17| **ceph-conf** [-s *section* ] *key*
18
19
20Description
21===========
22
11fdf7f2 23**ceph-conf** is a utility for getting information from a ceph
7c673cae
FG
24configuration file. As with most Ceph programs, you can specify which
25Ceph configuration file to use with the ``-c`` flag.
26
11fdf7f2
TL
27Note that unlike other ceph tools, **ceph-conf** will *only* read from
28config files (or return compiled-in default values)--it will *not*
29fetch config values from the monitor cluster. For this reason it is
30recommended that **ceph-conf** only be used in legacy environments
31that are strictly config-file based. New deployments and tools should
32instead rely on either querying the monitor explicitly for
33configuration (e.g., ``ceph config get <daemon> <option>``) or use
34daemons themselves to fetch effective config options (e.g.,
35``ceph-osd -i 123 --show-config-value osd_data``). The latter option
36has the advantages of drawing from compiled-in defaults (which
37occasionally vary between daemons), config files, and the monitor's
38config database, providing the exact value that that daemon would be
39using if it were started.
7c673cae
FG
40
41Actions
42=======
43
44**ceph-conf** performs one of the following actions:
45
46.. option:: -L, --list-all-sections
47
48 list all sections in the configuration file.
49
50.. option:: -l, --list-sections *prefix*
51
52 list the sections with the given *prefix*. For example, ``--list-sections mon``
53 would list all sections beginning with ``mon``.
54
55.. option:: --lookup *key*
56
57 search and print the specified configuration setting. Note: ``--lookup`` is
58 the default action. If no other actions are given on the command line, we will
59 default to doing a lookup.
60
61.. option:: -h, --help
62
63 print a summary of usage.
64
65
66Options
67=======
68
69.. option:: -c *conffile*
70
71 the Ceph configuration file.
72
73.. option:: --filter-key *key*
74
75 filter section list to only include sections with given *key* defined.
76
77.. option:: --filter-key-value *key* ``=`` *value*
78
79 filter section list to only include sections with given *key*/*value* pair.
80
81.. option:: --name *type.id*
82
83 the Ceph name in which the sections are searched (default 'client.admin').
84 For example, if we specify ``--name osd.0``, the following sections will be
85 searched: [osd.0], [osd], [global]
86
87.. option:: -r, --resolve-search
88
89 search for the first file that exists and can be opened in the resulted
90 comma delimited search list.
91
92.. option:: -s, --section
93
94 additional sections to search. These additional sections will be searched
95 before the sections that would normally be searched. As always, the first
96 matching entry we find will be returned.
97
98
99Examples
100========
101
102To find out what value osd 0 will use for the "osd data" option::
103
104 ceph-conf -c foo.conf --name osd.0 --lookup "osd data"
105
106To find out what value will mds a use for the "log file" option::
107
108 ceph-conf -c foo.conf --name mds.a "log file"
109
110To list all sections that begin with "osd"::
111
112 ceph-conf -c foo.conf -l osd
113
114To list all sections::
115
116 ceph-conf -c foo.conf -L
117
118To print the path of the "keyring" used by "client.0"::
119
120 ceph-conf --name client.0 -r -l keyring
121
122
123Files
124=====
125
126``/etc/ceph/$cluster.conf``, ``~/.ceph/$cluster.conf``, ``$cluster.conf``
127
128the Ceph configuration files to use if not specified.
129
130
131Availability
132============
133
134**ceph-conf** is part of Ceph, a massively scalable, open-source, distributed storage system. Please refer
135to the Ceph documentation at http://ceph.com/docs for more
136information.
137
138
139See also
140========
141
142:doc:`ceph <ceph>`\(8),