From: Alfredo Deza Date: Fri, 21 Feb 2014 14:34:16 +0000 (-0500) Subject: add monitor documentation X-Git-Tag: v1.4.0~11^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=f3aaaead6b5b9820637e1143e0a902881d06ed52;p=ceph-deploy.git add monitor documentation Signed-off-by: Alfredo Deza --- diff --git a/docs/source/contents.rst b/docs/source/contents.rst index d48d66a..afd3624 100644 --- a/docs/source/contents.rst +++ b/docs/source/contents.rst @@ -8,3 +8,4 @@ Content Index changelog.rst install.rst pkg.rst + mon.rst diff --git a/docs/source/mon.rst b/docs/source/mon.rst new file mode 100644 index 0000000..9d74f55 --- /dev/null +++ b/docs/source/mon.rst @@ -0,0 +1,75 @@ +.. _mon: + +``mon`` +======= +The ``mon`` subcommand provides an interface to interact with a cluster's +monitors. The tool makes a few assumptions that are needed to implement the +most common scenarios. Monitors are usually very particular in what they need +to work correctly. + +``create-initial`` +------------------ +Will deploy for monitors defined in ``mon initial members``, wait until +they form quorum and then ``gatherkeys``, reporting the monitor status along +the process. If monitors don't form quorum the command will eventually +time out. + +This is the *preferred* way of initially deploying monitors since it will +compound a few of the steps needed together while looking for possible issues +along the way. + +:: + + ceph-deploy mon create-initial + + +``create`` +---------- +Deploy monitors by specifying directly like:: + + ceph-deploy mon create node1 node2 node3 + +If no hosts are passed it will default to use the `mon initial members` +defined in the configuration. + +Please note that if this is an initial monitor deployment, the preferred way +is to use ``create-initial``. + + +``add`` +------- +Add a monitor to an existing cluster:: + + ceph-deploy mon add node1 + +Since monitor hosts can have different network interfaces, this command allows +you to specify the interface IP in a few different ways. + +**``--address``**: this will explicitly override any configured address for +that host. Usage:: + + ceph-deploy mon add node1 --address 192.168.1.10 + + +**ceph.conf**: If a section for the node that is being added exists and it +defines a ``mon addr`` key. For example:: + + [mon.node1] + mon addr = 192.168.1.10 + +**resolving/dns**: if the monitor address is not defined in the configuration file +nor overridden in the command-line it will fall-back to resolving the address +of the provided host. + +.. warning:: If the monitor host has multiple addresses you should specify + the address directly to ensure the right IP is used. + +.. versionadded:: 1.3.6 + + +``destroy`` +----------- +Completely remove monitors on a remote host. Requires hostname(s) as +arguments:: + + ceph-deploy mon destroy node1