From: Andre Noll Date: Fri, 9 Dec 2011 17:57:41 +0000 (+0100) Subject: doc: Add documentation of missing osd commands. X-Git-Tag: v0.40~185 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=9aadd41b2095c72f9683786fdbd36225b3cd0a9b;p=ceph.git doc: Add documentation of missing osd commands. 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 --- diff --git a/doc/control.rst b/doc/control.rst index 15a668664a6d..61e15233a1ee 100644 --- a/doc/control.rst +++ b/doc/control.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 [ [ ...]] + +Add a new item with the given id/name/weight at the specified +location. :: + + $ ceph osd crush remove + +Remove an existing item from the crush map. :: + + $ ceph osd crush reweight + +Set the weight of the item given by ```` to ````. :: + + $ ceph osd cluster_snap + +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 [] + +Create a new OSD. If no ID is given, a new ID is automatically selected +if possible. :: + + $ ceph osd rm [...] + +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