Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

mimic doc: add ceph-volume inventory sections #25130

Merged
merged 1 commit into from
Nov 16, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions doc/ceph-volume/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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
---------
Expand Down Expand Up @@ -51,6 +57,7 @@ and ``ceph-disk`` is fully disabled. Encryption is fully supported.

intro
systemd
inventory
lvm/index
lvm/activate
lvm/batch
Expand Down
17 changes: 17 additions & 0 deletions doc/ceph-volume/inventory.rst
Original file line number Diff line number Diff line change
@@ -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.
29 changes: 26 additions & 3 deletions doc/man/8/ceph-volume.rst
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
:orphan:

========================================
ceph-volume -- Ceph OSD deployment tool
========================================
=======================================================
ceph-volume -- Ceph OSD deployment and inspection tool
=======================================================

.. program:: ceph-volume

Expand All @@ -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*]

Expand All @@ -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
---

Expand Down