summaryrefslogtreecommitdiffstats
path: root/doc/man/8/monmaptool.rst
blob: f564f8f2ea3c1655db9c7717eba16a564282aec8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
:orphan:

==========================================================
 monmaptool -- ceph monitor cluster map manipulation tool
==========================================================

.. program:: monmaptool

Synopsis
========

| **monmaptool** <action> [options] *mapfilename*


Description
===========

**monmaptool** is a utility to create, view, and modify a monitor
cluster map for the Ceph distributed storage system. The monitor map
specifies the only fixed addresses in the Ceph distributed system.
All other daemons bind to arbitrary addresses and register themselves
with the monitors.

When creating a map with --create, a new monitor map with a new,
random UUID will be created. It should be followed by one or more
monitor addresses.

The default Ceph monitor port for messenger protocol v1 is 6789, and
3300 for protocol v2.

Multiple actions can be performed per invocation.


Options
=======

.. option:: --print

   print a plaintext dump of the map, after any modifications are
   made.

.. option:: --feature-list [plain|parseable]

   list the enabled features as well as the available ones.

   By default, a human readable output is produced.

.. option:: --create

   create a new monitor map with a new UUID (and with it, a new,
   empty Ceph cluster).

.. option:: --clobber

   allow monmaptool to create a new mapfilename in place of an existing map.

   Only useful when *--create* is used.

.. option:: --generate

   generate a new monmap based on the values on the command line or specified
   in the ceph configuration.  This is, in order of preference,

      #. ``--monmap filename`` to specify a monmap to load
      #. ``--mon-host 'host1,ip2'`` to specify a list of hosts or ip addresses
      #. ``[mon.foo]`` sections containing ``mon addr`` settings in the config. Note that this method is not recommended and support will be removed in a future release.

.. option:: --filter-initial-members

   filter the initial monmap by applying the ``mon initial members``
   setting.  Monitors not present in that list will be removed, and
   initial members not present in the map will be added with dummy
   addresses.

.. option:: --add name ip[:port]

   add a monitor with the specified ip:port to the map.

   If the *nautilus* feature is set, and the port is not, the monitor
   will be added for both messenger protocols.

.. option:: --addv name [protocol:ip:port[,...]]

   add a monitor with the specified version:ip:port to the map.

.. option:: --rm name

   remove the monitor with the specified name from the map.

.. option:: --fsid uuid

   set the fsid to the given uuid.  If not specified with *--create*, a random fsid will be generated.

.. option:: --feature-set value [--optional|--persistent]

   enable a feature.

.. option:: --feature-unset value [--optional|--persistent]

   disable a feature.

.. option:: --enable-all-features

   enable all supported features.

.. option:: --set-min-mon-release release

   set the min_mon_release.

Example
=======

To create a new map with three monitors (for a fresh Ceph cluster)::

        monmaptool --create --add nodeA 192.168.0.10 --add nodeB 192.168.0.11 \
          --add nodeC 192.168.0.12 --enable-all-features --clobber monmap

To display the contents of the map::

        monmaptool --print monmap

To replace one monitor::

        monmaptool --rm nodeA monmap
        monmaptool --add nodeA 192.168.0.9 monmap


Availability
============

**monmaptool** is part of Ceph, a massively scalable, open-source, distributed 
storage system. Please refer to the Ceph documentation at http://ceph.com/docs 
for more information.


See also
========

:doc:`ceph <ceph>`\(8),
:doc:`crushtool <crushtool>`\(8),