3 ==========================================================
4 monmaptool -- ceph monitor cluster map manipulation tool
5 ==========================================================
7 .. program:: monmaptool
12 | **monmaptool** *mapfilename* [ --clobber ] [ --print ] [ --create ]
13 [ --add *ip*:*port* *...* ] [ --rm *ip*:*port* *...* ]
19 **monmaptool** is a utility to create, view, and modify a monitor
20 cluster map for the Ceph distributed storage system. The monitor map
21 specifies the only fixed addresses in the Ceph distributed system.
22 All other daemons bind to arbitrary addresses and register themselves
25 When creating a map with --create, a new monitor map with a new,
26 random UUID will be created. It should be followed by one or more
29 The default Ceph monitor port is 6789.
37 will print a plaintext dump of the map, after any modifications are
42 will allow monmaptool to overwrite mapfilename if changes are made.
46 will create a new monitor map with a new UUID (and with it, a new,
47 empty Ceph file system).
49 .. option:: --generate
51 generate a new monmap based on the values on the command line or specified
52 in the ceph configuration. This is, in order of preference,
54 #. ``--monmap filename`` to specify a monmap to load
55 #. ``--mon-host 'host1,ip2'`` to specify a list of hosts or ip addresses
56 #. ``[mon.foo]`` sections containing ``mon addr`` settings in the config
58 .. option:: --filter-initial-members
60 filter the initial monmap by applying the ``mon initial members``
61 setting. Monitors not present in that list will be removed, and
62 initial members not present in the map will be added with dummy
65 .. option:: --add name ip:port
67 will add a monitor with the specified ip:port to the map.
71 will remove the monitor with the specified ip:port from the map.
73 .. option:: --fsid uuid
75 will set the fsid to the given uuid. If not specified with --create, a random fsid will be generated.
81 To create a new map with three monitors (for a fresh Ceph file system)::
83 monmaptool --create --add mon.a 192.168.0.10:6789 --add mon.b 192.168.0.11:6789 \
84 --add mon.c 192.168.0.12:6789 --clobber monmap
86 To display the contents of the map::
88 monmaptool --print monmap
90 To replace one monitor::
92 monmaptool --rm mon.a --add mon.a 192.168.0.9:6789 --clobber monmap
98 **monmaptool** is part of Ceph, a massively scalable, open-source, distributed
99 storage system. Please refer to the Ceph documentation at http://ceph.com/docs
100 for more information.
106 :doc:`ceph <ceph>`\(8),
107 :doc:`crushtool <crushtool>`\(8),