inventory
---------
+.. program:: ceph-volume 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
lvm
---
+.. program:: ceph-volume lvm
+
By making use of LVM tags, the ``lvm`` sub-command is able to store and later
re-discover and query devices associated with OSDs so that they can later
activated.
batch
^^^^^
+.. program:: ceph-volume lvm batch
+
Creates OSDs from a list of devices using a ``filestore``
or ``bluestore`` (default) setup. It will create all necessary volume groups
and logical volumes required to have a working OSD.
Full path to a raw device, like ``/dev/sda``. Multiple
``<DEVICE>`` paths can be passed in.
-.. describe:: **activate**
+activate
+^^^^^^^^
+
+.. program:: ceph-volume lvm activate
- Enables a systemd unit that persists the OSD ID and its UUID (also called
- ``fsid`` in Ceph CLI tools), so that at boot time it can understand what OSD is
- enabled and needs to be mounted.
+Enables a systemd unit that persists the OSD ID and its UUID (also called
+``fsid`` in Ceph CLI tools), so that at boot time it can understand what OSD is
+enabled and needs to be mounted.
Usage::
prepare
^^^^^^^
+.. program:: ceph-volume lvm prepare
+
Prepares a logical volume to be used as an OSD and journal using a ``filestore``
or ``bluestore`` (default) setup. It will not create or modify the logical volumes
except for adding extra metadata.
new-wal
^^^^^^^
+.. program:: ceph-volume lvm new-wal
+
Attaches the given logical volume to OSD as a WAL. Logical volume
name format is vg/lv. Fails if OSD has already got attached WAL.
new-db
^^^^^^
+.. program:: ceph-volume lvm new-db
+
Attaches the given logical volume to OSD as a DB. Logical volume
name format is vg/lv. Fails if OSD has already got attached DB.
migrate
^^^^^^^
+.. program:: ceph-volume lvm migrate
+
Moves BlueFS data from source volume(s) to the target one, source volumes
(except the main, i.e. data or block one) are removed on success. LVM volumes
are permitted for Target only, both already attached or new one. In the latter
activate
^^^^^^^^
+.. program:: ceph-volume simple activate
+
Enables a systemd unit that persists the OSD ID and its UUID (also called
``fsid`` in Ceph CLI tools), so that at boot time it can understand what OSD is
enabled and needs to be mounted, while reading information that was previously
scan
^^^^
+.. program:: ceph-volume simple scan
+
Scan a running OSD or data device for an OSD for metadata that can later be
used to activate and manage the OSD with ceph-volume. The scan method will
create a JSON file with the required information plus anything found in the OSD