2017-08-17 12:07:38 +00:00
|
|
|
.. _mgr-administrator-guide:
|
2016-08-31 11:19:34 +00:00
|
|
|
|
|
|
|
ceph-mgr administrator's guide
|
|
|
|
==============================
|
|
|
|
|
2017-06-14 13:53:26 +00:00
|
|
|
Manual setup
|
|
|
|
------------
|
2016-08-31 11:19:34 +00:00
|
|
|
|
2017-06-14 13:53:26 +00:00
|
|
|
Usually, you would set up a ceph-mgr daemon using a tool such
|
|
|
|
as ceph-ansible. These instructions describe how to set up
|
|
|
|
a ceph-mgr daemon manually.
|
2016-08-31 11:19:34 +00:00
|
|
|
|
2017-06-14 13:53:26 +00:00
|
|
|
First, create an authentication key for your daemon::
|
|
|
|
|
|
|
|
ceph auth get-or-create mgr.$name mon 'allow profile mgr' osd 'allow *' mds 'allow *'
|
2016-08-31 11:19:34 +00:00
|
|
|
|
|
|
|
Place that key into ``mgr data`` path, which for a cluster "ceph"
|
|
|
|
and mgr $name "foo" would be ``/var/lib/ceph/mgr/ceph-foo``.
|
|
|
|
|
2016-10-26 01:44:57 +00:00
|
|
|
Start the ceph-mgr daemon::
|
2016-08-31 11:19:34 +00:00
|
|
|
|
|
|
|
ceph-mgr -i $name
|
|
|
|
|
|
|
|
Check that the mgr has come up by looking at the output
|
2016-10-26 01:44:57 +00:00
|
|
|
of ``ceph status``, which should now include a mgr status line::
|
2016-08-31 11:19:34 +00:00
|
|
|
|
|
|
|
mgr active: $name
|
|
|
|
|
2017-06-14 22:00:04 +00:00
|
|
|
Client authentication
|
|
|
|
---------------------
|
2017-07-07 03:41:28 +00:00
|
|
|
|
2017-06-14 22:00:04 +00:00
|
|
|
The manager is a new daemon which requires new CephX capabilities. If you upgrade
|
|
|
|
a cluster from an old version of Ceph, or use the default install/deploy tools,
|
|
|
|
your admin client should get this capability automatically. If you use tooling from
|
|
|
|
elsewhere, you may get EACCES errors when invoking certain ceph cluster commands.
|
2017-07-07 03:41:28 +00:00
|
|
|
To fix that, add a "mgr allow \*" stanza to your client's cephx capabilities by
|
2017-06-14 22:00:04 +00:00
|
|
|
`Modifying User Capabilities`_.
|
|
|
|
|
2016-08-31 11:19:34 +00:00
|
|
|
High availability
|
|
|
|
-----------------
|
|
|
|
|
|
|
|
In general, you should set up a ceph-mgr on each of the hosts
|
2017-08-17 12:07:38 +00:00
|
|
|
running a ceph-mon daemon to achieve the same level of availability.
|
2016-08-31 11:19:34 +00:00
|
|
|
|
|
|
|
By default, whichever ceph-mgr instance comes up first will be made
|
|
|
|
active by the monitors, and the others will be standbys. There is
|
|
|
|
no requirement for quorum among the ceph-mgr daemons.
|
|
|
|
|
|
|
|
If the active daemon fails to send a beacon to the monitors for
|
2016-10-19 09:01:28 +00:00
|
|
|
more than ``mon mgr beacon grace`` (default 30s), then it will be replaced
|
2016-08-31 11:19:34 +00:00
|
|
|
by a standby.
|
|
|
|
|
|
|
|
If you want to pre-empt failover, you can explicitly mark a ceph-mgr
|
|
|
|
daemon as failed using ``ceph mgr fail <mgr name>``.
|
|
|
|
|
|
|
|
Calling module commands
|
|
|
|
-----------------------
|
|
|
|
|
2017-06-29 22:06:34 +00:00
|
|
|
Where a module implements command line hooks, the commands will
|
|
|
|
be accessible as ordinary Ceph commands::
|
2016-08-31 11:19:34 +00:00
|
|
|
|
2017-06-29 22:06:34 +00:00
|
|
|
ceph <command | help>
|
|
|
|
|
|
|
|
If you would like to see the list of commands handled by the
|
|
|
|
manager (where normal ``ceph help`` would show all mon and mgr commands),
|
|
|
|
you can send a command directly to the manager daemon::
|
|
|
|
|
|
|
|
ceph tell mgr help
|
2016-08-31 11:19:34 +00:00
|
|
|
|
|
|
|
Note that it is not necessary to address a particular mgr instance,
|
|
|
|
simply ``mgr`` will pick the current active daemon.
|
|
|
|
|
|
|
|
Configuration
|
|
|
|
-------------
|
|
|
|
|
|
|
|
OPTION(mgr_module_path, OPT_STR, CEPH_PKGLIBDIR "/mgr") // where to load python modules from
|
|
|
|
|
|
|
|
``mgr module path``
|
|
|
|
|
|
|
|
:Description: Path to load modules from
|
|
|
|
:Type: String
|
|
|
|
:Default: ``"<library dir>/mgr"``
|
|
|
|
|
|
|
|
``mgr data``
|
|
|
|
|
|
|
|
:Description: Path to load daemon data (such as keyring)
|
|
|
|
:Type: String
|
|
|
|
:Default: ``"/var/lib/ceph/mgr/$cluster-$id"``
|
|
|
|
|
2017-06-14 14:04:22 +00:00
|
|
|
``mgr tick period``
|
2016-08-31 11:19:34 +00:00
|
|
|
|
2017-06-14 14:04:22 +00:00
|
|
|
:Description: How many seconds between mgr beacons to monitors, and other
|
|
|
|
periodic checks.
|
2016-08-31 11:19:34 +00:00
|
|
|
:Type: Integer
|
|
|
|
:Default: ``5``
|
|
|
|
|
|
|
|
``mon mgr beacon grace``
|
|
|
|
|
|
|
|
:Description: How long after last beacon should a mgr be considered failed
|
|
|
|
:Type: Integer
|
|
|
|
:Default: ``30``
|
|
|
|
|
2017-07-10 17:56:53 +00:00
|
|
|
.. _Modifying User Capabilities: ../../rados/operations/user-management/#modify-user-capabilities
|