mirror of
https://github.com/ceph/ceph
synced 2025-02-22 18:47:18 +00:00
doc: Clean up quick start to ensure nobody uses "localhost".
Signed-off-by: John Wilkins <john.wilkins@inktank.com>
This commit is contained in:
parent
9755466619
commit
dd011aba90
@ -2,15 +2,21 @@
|
||||
osd journal size = 1000
|
||||
filestore xattr use omap = true
|
||||
|
||||
# Execute $ hostname to retrieve the name of your host,
|
||||
# and replace {hostname} with the name of your host.
|
||||
# For the monitor, replace {ip-address} with the IP
|
||||
# address of your host.
|
||||
|
||||
[mon.a]
|
||||
host = localhost
|
||||
mon addr = 127.0.0.1:6789
|
||||
|
||||
host = {hostname}
|
||||
mon addr = {ip-address}:6789
|
||||
|
||||
[osd.0]
|
||||
host = localhost
|
||||
host = {hostname}
|
||||
|
||||
[osd.1]
|
||||
host = localhost
|
||||
host = {hostname}
|
||||
|
||||
[mds.a]
|
||||
host = localhost
|
||||
host = {hostname}
|
@ -30,12 +30,14 @@ install Ceph. ::
|
||||
Add a Configuration File
|
||||
------------------------
|
||||
|
||||
Modify the contents of the following configuration file such that
|
||||
``localhost`` is the actual host name, and the monitor IP address
|
||||
is the actual IP address of the host (i.e., not 127.0.0.1).Then,
|
||||
copy the contents of the modified configuration file and save it to
|
||||
``/etc/ceph/ceph.conf``. This file will configure Ceph to operate a monitor,
|
||||
two OSD daemons and one metadata server on your local machine.
|
||||
Execute ``hostname`` on the command line to retrieve the name of your
|
||||
host. Then, replace ``{localhost}`` in the sample configuration file
|
||||
with your host name. Execute ``ifconfig`` on the command line to
|
||||
retrieve the IP address of your host. Then, replace ``{ip-address}``
|
||||
with the IP address of your host. Finally, copy the contents of the
|
||||
modified configuration file and save it to ``/etc/ceph/ceph.conf``.
|
||||
This file will configure Ceph to operate a monitor, two OSD daemons
|
||||
and one metadata server on your local machine.
|
||||
|
||||
.. literalinclude:: ceph.conf
|
||||
:language: ini
|
||||
|
Loading…
Reference in New Issue
Block a user