From: Andre Noll <maan@systemlinux.org>
To: Tommi Virtanen <tommi.virtanen@dreamhost.com>
Cc: Gregory Farnum <gregory.farnum@dreamhost.com>,
Sage Weil <sage@newdream.net>,
ceph-devel@vger.kernel.org, Andre Noll <maan@systemlinux.org>
Subject: [PATCH/RFC 2/6] doc: Add documentation of missing osd commands.
Date: Mon, 28 Nov 2011 15:04:32 +0100 [thread overview]
Message-ID: <1322489076-31364-3-git-send-email-maan@systemlinux.org> (raw)
In-Reply-To: <1322489076-31364-1-git-send-email-maan@systemlinux.org>
The set of OSD commands which added by the previous commit is
incomplete. This patch adds documentation for the following
OSD commands which were previously missing: dump, tree, crush,
cluster_snap, lost, create, rm.
Signed-Off-By: Andre Noll <maan@systemlinux.org>
---
doc/ops/monitor.rst | 44 +++++++++++++++++++++++++++++++++++++++++---
1 files changed, 41 insertions(+), 3 deletions(-)
diff --git a/doc/ops/monitor.rst b/doc/ops/monitor.rst
index 626685e..07d9c4f 100644
--- a/doc/ops/monitor.rst
+++ b/doc/ops/monitor.rst
@@ -64,9 +64,48 @@ file. This is functionally equivalent to ::
$ ceph osd getmap -o /tmp/osdmap
$ osdmaptool /tmp/osdmap --export-crush file
-
::
+ $ ceph osd dump [--format format>]
+
+Dump the osd map. Valid formats for -f are "plain" and "json". If no
+--format option is given, the osd map is dumped as plain text. ::
+
+ $ ceph osd tree [--format format]
+
+Dump the osd map as a tree with one line per osd containing weight
+and state. ::
+
+ $ ceph osd crush add <id> <name> <weight> [<loc1> [<loc2> ...]]
+
+Add a new item with the given id/name/weight at the specified
+location. ::
+
+ $ ceph osd crush remove <id>
+
+Remove an existing item from the crush map. ::
+
+ $ ceph osd crush reweight <name> <weight>
+
+Set the weight of the item given by ``<name>`` to ``<weight>``. ::
+
+ $ ceph osd cluster_snap <name>
+
+Create a cluster snapshot. ::
+
+ $ ceph osd lost [--yes-i-really-mean-it]
+
+Mark an OSD as lost. This may result in permanent data loss. Use with caution. ::
+
+ $ ceph osd create [<id>]
+
+Create a new OSD. If no ID is given, a new ID is automatically selected
+if possible. ::
+
+ $ ceph osd rm [<id>...]
+
+Remove the given OSD(s). ::
+
$ ceph osd getmaxosd
Query the current max_osd parameter in the osd map. ::
@@ -179,5 +218,4 @@ Enables debug messages. ::
Displays the status of all metadata servers.
-dump, getmap, stop, set_max_mds, setmap: TODO
-
+set_max_mds: TODO
--
1.7.8.rc1.14.g248db
next prev parent reply other threads:[~2011-11-28 14:17 UTC|newest]
Thread overview: 23+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-11-11 5:14 v0.38 released Sage Weil
2011-11-15 16:42 ` Andre Noll
2011-11-15 19:53 ` Gregory Farnum
2011-11-16 9:56 ` Andre Noll
2011-11-16 18:04 ` Tommi Virtanen
2011-11-17 10:35 ` Andre Noll
2011-11-17 18:01 ` Tommi Virtanen
2011-11-18 15:01 ` Andre Noll
2011-11-18 18:47 ` Tommi Virtanen
2011-11-21 17:32 ` Andre Noll
2011-11-21 17:36 ` Tommi Virtanen
2011-11-21 18:06 ` Andre Noll
2011-11-28 14:04 ` [PATCH/RFC 0/6]: Introduction Andre Noll
2011-11-28 14:04 ` [PATCH/RFC 1/6] doc: Import the list of ceph subcommands from wiki Andre Noll
2011-11-28 14:04 ` Andre Noll [this message]
2011-11-28 14:04 ` [PATCH/RFC 3/6] doc: Document pause and unpause osd commands Andre Noll
2011-11-28 14:04 ` [PATCH/RFC 4/6] doc: Update the list of fields for the pool set command Andre Noll
2011-11-28 14:04 ` [PATCH/RFC 5/6] doc: Add missing documentation for osd pool get Andre Noll
2011-11-28 18:37 ` Gregory Farnum
2011-11-28 19:27 ` Andre Noll
2011-11-28 14:04 ` [PATCH/RFC 6/6] doc: Clarify documentation of reweight command Andre Noll
2011-12-05 21:09 ` [PATCH/RFC 0/6]: Introduction Tommi Virtanen
2011-12-06 17:01 ` Andre Noll
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1322489076-31364-3-git-send-email-maan@systemlinux.org \
--to=maan@systemlinux.org \
--cc=ceph-devel@vger.kernel.org \
--cc=gregory.farnum@dreamhost.com \
--cc=sage@newdream.net \
--cc=tommi.virtanen@dreamhost.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.