]> git.proxmox.com Git - ceph.git/blame - ceph/doc/mgr/administrator.rst
bump version to 12.1.4-pve1
[ceph.git] / ceph / doc / mgr / administrator.rst
CommitLineData
7c673cae
FG
1
2ceph-mgr administrator's guide
3==============================
4
31f18b77
FG
5Manual setup
6------------
7c673cae 7
31f18b77
FG
8Usually, you would set up a ceph-mgr daemon using a tool such
9as ceph-ansible. These instructions describe how to set up
10a ceph-mgr daemon manually.
7c673cae 11
31f18b77
FG
12First, create an authentication key for your daemon::
13
14 ceph auth get-or-create mgr.$name mon 'allow profile mgr' osd 'allow *' mds 'allow *'
7c673cae
FG
15
16Place that key into ``mgr data`` path, which for a cluster "ceph"
17and mgr $name "foo" would be ``/var/lib/ceph/mgr/ceph-foo``.
18
19Start the ceph-mgr daemon::
20
21 ceph-mgr -i $name
22
23Check that the mgr has come up by looking at the output
24of ``ceph status``, which should now include a mgr status line::
25
26 mgr active: $name
27
31f18b77
FG
28Client authentication
29---------------------
224ce89b 30
31f18b77
FG
31The manager is a new daemon which requires new CephX capabilities. If you upgrade
32a cluster from an old version of Ceph, or use the default install/deploy tools,
33your admin client should get this capability automatically. If you use tooling from
34elsewhere, you may get EACCES errors when invoking certain ceph cluster commands.
224ce89b 35To fix that, add a "mgr allow \*" stanza to your client's cephx capabilities by
31f18b77
FG
36`Modifying User Capabilities`_.
37
7c673cae
FG
38High availability
39-----------------
40
41In general, you should set up a ceph-mgr on each of the hosts
42running a ceph-mon daemon to achieve the same level of availability.
43
44By default, whichever ceph-mgr instance comes up first will be made
45active by the monitors, and the others will be standbys. There is
46no requirement for quorum among the ceph-mgr daemons.
47
48If the active daemon fails to send a beacon to the monitors for
49more than ``mon mgr beacon grace`` (default 30s), then it will be replaced
50by a standby.
51
52If you want to pre-empt failover, you can explicitly mark a ceph-mgr
53daemon as failed using ``ceph mgr fail <mgr name>``.
54
55Calling module commands
56-----------------------
57
c07f9fc5
FG
58Where a module implements command line hooks, the commands will
59be accessible as ordinary Ceph commands::
7c673cae 60
c07f9fc5
FG
61 ceph <command | help>
62
63If you would like to see the list of commands handled by the
64manager (where normal ``ceph help`` would show all mon and mgr commands),
65you can send a command directly to the manager daemon::
66
67 ceph tell mgr help
7c673cae
FG
68
69Note that it is not necessary to address a particular mgr instance,
70simply ``mgr`` will pick the current active daemon.
71
7c673cae
FG
72Configuration
73-------------
74
75OPTION(mgr_module_path, OPT_STR, CEPH_PKGLIBDIR "/mgr") // where to load python modules from
76
77``mgr module path``
78
79:Description: Path to load modules from
80:Type: String
81:Default: ``"<library dir>/mgr"``
82
7c673cae
FG
83``mgr data``
84
85:Description: Path to load daemon data (such as keyring)
86:Type: String
87:Default: ``"/var/lib/ceph/mgr/$cluster-$id"``
88
31f18b77 89``mgr tick period``
7c673cae 90
31f18b77
FG
91:Description: How many seconds between mgr beacons to monitors, and other
92 periodic checks.
7c673cae
FG
93:Type: Integer
94:Default: ``5``
95
96``mon mgr beacon grace``
97
98:Description: How long after last beacon should a mgr be considered failed
99:Type: Integer
100:Default: ``30``
101
224ce89b 102.. _Modifying User Capabilities: ../../rados/operations/user-management/#modify-user-capabilities