diff options
author | Laszlo Boszormenyi <gcs@debian.hu> | 2010-12-01 09:24:45 -0800 |
---|---|---|
committer | Sage Weil <sage@newdream.net> | 2010-12-01 09:24:45 -0800 |
commit | 15c272e8df77d1edb41e79fd6f5b425e2da61338 (patch) | |
tree | 281bdd6da6ed7caa6cce59ca30985fb033913927 /man | |
parent | 1b06332de69b332092d115451efbd29afec79269 (diff) | |
download | ceph-15c272e8df77d1edb41e79fd6f5b425e2da61338.tar.gz |
man: fix monmaptool man page
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>
Diffstat (limited to 'man')
-rw-r--r-- | man/monmaptool.8 | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/man/monmaptool.8 b/man/monmaptool.8 index 591e23ab1e8..eed42974c46 100644 --- a/man/monmaptool.8 +++ b/man/monmaptool.8 @@ -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 |