]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
doc: add ceph-volume inventory sections 25131/head
authorJan Fajerski <jfajerski@suse.com>
Wed, 14 Nov 2018 13:09:37 +0000 (14:09 +0100)
committerAlfredo Deza <adeza@redhat.com>
Fri, 16 Nov 2018 14:30:13 +0000 (09:30 -0500)
Signed-off-by: Jan Fajerski <jfajerski@suse.com>
(cherry picked from commit dfc0e1d9a69f6f9ffb1d3e0b0ec33a75827c36e0)

doc/ceph-volume/index.rst
doc/ceph-volume/inventory.rst [new file with mode: 0644]
doc/man/8/ceph-volume.rst

index 34094b73393a4c1617a8cd63fc479fdf87abae16..1e8efe5d4160948f0dc9b85151facac51ce524e3 100644 (file)
@@ -11,12 +11,18 @@ follow a predictable, and robust way of preparing, activating, and starting OSDs
 
 
 **Command Line Subcommands**
+
 There is currently support for ``lvm``, and plain disks (with GPT partitions)
 that may have been deployed with ``ceph-disk``.
 
 * :ref:`ceph-volume-lvm`
 * :ref:`ceph-volume-simple`
 
+**Node inventory**
+
+The :ref:`ceph-volume-inventory` subcommand provides information and metadata
+about a nodes physical disk inventory.
+
 
 Migrating
 ---------
@@ -51,6 +57,7 @@ and ``ceph-disk`` is fully disabled. Encryption is fully supported.
 
    intro
    systemd
+   inventory
    lvm/index
    lvm/activate
    lvm/batch
diff --git a/doc/ceph-volume/inventory.rst b/doc/ceph-volume/inventory.rst
new file mode 100644 (file)
index 0000000..edb1fd2
--- /dev/null
@@ -0,0 +1,17 @@
+.. _ceph-volume-inventory:
+
+``inventory``
+=============
+The ``inventory`` subcommand queries a host's disc inventory and provides
+hardware information and metadata on every physical device.
+
+By default the command returns a short, human-readable report of all physical disks.
+
+For programmatic consumption of this report pass ``--format json`` to generate a
+JSON formatted report. This report includes extensive information on the
+physical drives such as disk metadata (like model and size), logical volumes
+and whether they are used by ceph, and if the disk is usable by ceph and
+reasons why not.
+
+A device path can be specified to report extensive information on a device in
+both plain and json format.
index a7c17d800b530b9d410a16eec6d3e3a6f940f060..af5775997fcb138e94777192fba074f8f91e3b9f 100644 (file)
@@ -1,8 +1,8 @@
 :orphan:
 
-========================================
- ceph-volume -- Ceph OSD deployment tool
-========================================
+=======================================================
+ ceph-volume -- Ceph OSD deployment and inspection tool
+=======================================================
 
 .. program:: ceph-volume
 
@@ -12,6 +12,8 @@ Synopsis
 | **ceph-volume** [-h] [--cluster CLUSTER] [--log-level LOG_LEVEL]
 |                 [--log-path LOG_PATH]
 
+| **ceph-volume** **inventory**
+
 | **ceph-volume** **lvm** [ *trigger* | *create* | *activate* | *prepare*
 | *zap* | *list* | *batch*]
 
@@ -34,6 +36,27 @@ them.
 Commands
 ========
 
+inventory
+---------
+
+This subcommand provides information about a host's physical disc inventory and
+reports metadata about these discs. Among this metadata one can find disc
+specific data items (like model, size, rotational or solid state) as well as
+data items specific to ceph using a device, such as if it is available for
+use with ceph or if logical volumes are present.
+
+Examples::
+
+    ceph-volume inventory
+    ceph-volume inventory /dev/sda
+    ceph-volume inventory --format json-pretty
+
+Optional arguments:
+
+* [-h, --help]          show the help message and exit
+* [--format]            report format, valid values are ``plain`` (default),
+                        ``json`` and ``json-pretty``
+
 lvm
 ---