1
==========================================================
2
monmaptool -- ceph monitor cluster map manipulation tool
3
==========================================================
5
.. program:: monmaptool
10
| **monmaptool** *mapfilename* [ --clobber ] [ --print ] [ --create ]
11
[ --add *ip*:*port* *...* ] [ --rm *ip*:*port* *...* ]
17
**monmaptool** is a utility to create, view, and modify a monitor
18
cluster map for the Ceph distributed file system. The monitor map
19
specifies the only fixed addresses in the Ceph distributed system.
20
All other daemons bind to arbitrary addresses and register themselves
23
When creating a map with --create, a new monitor map with a new,
24
random UUID will be created. It should be followed by one or more
27
The default Ceph monitor port is 6789.
35
will print a plaintext dump of the map, after any modifications are
40
will allow monmaptool to overwrite mapfilename if changes are made.
44
will create a new monitor map with a new UUID (and with it, a new,
45
empty Ceph file system).
47
.. option:: --generate
49
generate a new monmap based on the values on the command line or specified
50
in the ceph configuration. This is, in order of preference,
52
#. ``--monmap filename`` to specify a monmap to load
53
#. ``--mon-host 'host1,ip2'`` to specify a list of hosts or ip addresses
54
#. ``[mon.foo]`` sections containing ``mon addr`` settings in the config
56
.. option:: --filter-initial-members
58
filter the initial monmap by applying the ``mon initial members``
59
setting. Monitors not present in that list will be removed, and
60
initial members not present in the map will be added with dummy
63
.. option:: --add name ip:port
65
will add a monitor with the specified ip:port to the map.
69
will remove the monitor with the specified ip:port from the map.
71
.. option:: --fsid uuid
73
will set the fsid to the given uuid. If not specified with --create, a random fsid will be generated.
79
To create a new map with three monitors (for a fresh Ceph file system)::
81
monmaptool --create --add mon.a 192.168.0.10:6789 --add mon.b 192.168.0.11:6789 \
82
--add mon.c 192.168.0.12:6789 --clobber monmap
84
To display the contents of the map::
86
monmaptool --print onmap
88
To replace one monitor::
90
monmaptool --rm mon.a --add mon.a 192.168.0.9:6789 --clobber monmap
96
**monmaptool** is part of the Ceph distributed file system. Please
97
refer to the Ceph wiki at http://ceph.newdream.net/wiki for more
104
:doc:`ceph <ceph>`\(8),
105
:doc:`crushtool <crushtool>`\(8),
106
:doc:`mkcephfs <mkcephfs>`\(8)