summaryrefslogtreecommitdiff
path: root/man/monmaptool.8
blob: eed42974c46ba607158d3e0129b550935a563875 (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
.TH MONMAPTOOL 8
.SH NAME
monmaptool \- ceph monitor cluster map manipulation tool
.SH SYNOPSIS
.B monmaptool
\fImapfilename\fP
[ \fB\-\-clobber\fR ]
[ \fB\-\-print\fR ]
[ \fB\-\-create\fR ]
[ \fB\-\-add \fIip:port\fP ... ]
[ \fB\-\-rm \fIip:port\fP ... ]
.SH DESCRIPTION
.B monmaptool
is a utility to create, view, and modify a monitor cluster map for the
Ceph distributed file 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.
.PP
When creating a map with \fB\-\-create\fP, a new monitor map with a
new, random UUID will be created.  It should be followed by one or
more monitor addresses.
.PP
The default Ceph monitor port is \fB6789\fP.
.SH OPTIONS
.TP
\fB\-\-print\fP
will print a plaintext dump of the map, after any modifications are made.
.TP
\fB\-\-clobber\fP
will allow
.B monmaptool
to overwrite \fImapfilename\fP if changes are made.
.TP
\fB\-\-create\fP
will create a new monitor map with a new UUID (and with it, a new, empty Ceph file system).
.TP
\fB\-\-add\fI name ip:port\fP
will add a monitor with the specified \fIip:port\fP to the map.
.TP
\fB\-\-rm\fI name\fP
will remove the monitor with the specified \fIip:port\fP from the map.
.SH EXAMPLE
To create a new map with three monitors (for a fresh Ceph file system):
.IP
monmaptool --create --add mon.a 192.168.0.10:6789 --add mon.b 192.168.0.11:6789 --add mon.c 192.168.0.12:6789 --clobber monmap
.PP
To display the contents of the map:
.IP
monmaptool --print onmap
.PP
To replace one monitor:
.IP
monmaptool --rm mon.a --add mon.a 192.168.0.9:6789 --clobber monmap
.SH AVAILABILITY
.B monmaptool
is part of the Ceph distributed file system.  Please refer to the Ceph wiki at
http://ceph.newdream.net/wiki for more information.
.SH SEE ALSO
.BR ceph (8),
.BR crushtool (8),
.BR mkcephfs (8)