]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
man: fix monmaptool man page
authorLaszlo Boszormenyi <gcs@debian.hu>
Wed, 1 Dec 2010 17:24:45 +0000 (09:24 -0800)
committerSage Weil <sage@newdream.net>
Wed, 1 Dec 2010 17:24:45 +0000 (09:24 -0800)
I've found the manpage problem that I've noted before. It's about
monmaptool, the CLI says it's usage:
[--print] [--create [--clobber]] [--add name 1.2.3.4:567] [--rm name]
<mapfilename>
But the manpage states this as an example:
monmaptool --create --add 192.168.0.10:6789 --add 192.168.0.11:6789 --add
192.168.0.12:6789 --clobber monmap
This definitely misses 'name' after the 'add' switch, resulting:
"invalid ip:port '--add'" as an error message. Attached patch fixes this
inconsistency.

Signed-off-by: Laszlo Boszormenyi <gcs@debian.hu>
man/monmaptool.8

index 591e23ab1e8622f85bf8f5b302896fa932ffde56..eed42974c46ba607158d3e0129b550935a563875 100644 (file)
@@ -34,15 +34,15 @@ to overwrite \fImapfilename\fP if changes are made.
 \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 ip:port\fP
+\fB\-\-add\fI name ip:port\fP
 will add a monitor with the specified \fIip:port\fP to the map.
 .TP
-\fB\-\-rm\fI ip:port\fP
+\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 192.168.0.10:6789 --add 192.168.0.11:6789 --add 192.168.0.12:6789 --clobber monmap
+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
@@ -50,7 +50,7 @@ monmaptool --print onmap
 .PP
 To replace one monitor:
 .IP
-monmaptool --rm 192.168.0.10:6789 --add 192.168.0.9:6789 --clobber monmap
+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