Skip to content

Commit

Permalink
Add RBD features
Browse files Browse the repository at this point in the history
  • Loading branch information
socketpair committed May 2, 2018
1 parent 988d63d commit 6e2659a
Showing 1 changed file with 49 additions and 0 deletions.
49 changes: 49 additions & 0 deletions rbd.rst
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,55 @@ RBD

.. include:: rbd-qemu.rst

RBD Features
++++++++++++

В ceph.conf есть параметр rbd_default_features. Там указываются фичи RBD. В
зависимости от версии Ceph можно указывать только числами, либо ещё можно
строками: https://github.com/ceph/ceph/pull/11175.

.. http://www.tablesgenerator.com
+----------------------------+-----------+----------------+-------------------------------------------------------------+
| #define | Численное | Численное | Описание |
| | значение | значение | |
| | | в ceph.conf | |
+----------------------------+-----------+----------------+-------------------------------------------------------------+
| RBD_FEATURE_LAYERING | 1 | layering | Layering support. Layering enables you to use cloning. |
+----------------------------+-----------+----------------+-------------------------------------------------------------+
| RBD_FEATURE_STRIPINGV2 | 2 | striping | Striping spreads data across multiple objects. |
| | | | Striping helps with parallelism for sequential |
| | | | read/write workloads. |
+----------------------------+-----------+----------------+-------------------------------------------------------------+
| RBD_FEATURE_EXCLUSIVE_LOCK | 4 | exclusive-lock | When enabled, it requires a client to get a lock |
| | | | on an object before making a write. |
+----------------------------+-----------+----------------+-------------------------------------------------------------+
| RBD_FEATURE_OBJECT_MAP | 8 | object-map | Block devices are thin provisioned. That mean, they |
| | | | only store data that actually exists. Object map |
| | | | support helps track which objects actually exist |
| | | | (have data stored on a drive). Enabling object map |
| | | | support speeds up I/O operations for cloning, or |
| | | | importing and exporting a sparsely populated image. |
+----------------------------+-----------+----------------+-------------------------------------------------------------+
| RBD_FEATURE_FAST_DIFF | 16 | fast-diff | Fast-diff support depends on object map support and |
| | | | exclusive lock support. It adds another property to the |
| | | | object map, which makes it much faster to generate diffs |
| | | | between snapshots of an image, and the actual data usage |
| | | | of a snapshot much faster. |
+----------------------------+-----------+----------------+-------------------------------------------------------------+
| RBD_FEATURE_DEEP_FLATTEN | 32 | deep-flatten | Deep-flatten makes rbd flatten work on all the snapshots |
| | | | of an image, in addition to the image itself. Without it, |
| | | | snapshots of an image will still rely on the parent, so the |
| | | | parent will not be delete-able until the snapshots are |
| | | | deleted. Deep-flatten makes a parent independent of its |
| | | | clones, even if they have snapshots. |
+----------------------------+-----------+----------------+-------------------------------------------------------------+
| RBD_FEATURE_JOURNALING | 64 | journaling | |
+----------------------------+-----------+----------------+-------------------------------------------------------------+
| RBD_FEATURE_DATA_POOL | 128 | data-pool | |
+----------------------------+-----------+----------------+-------------------------------------------------------------+


Недорасписанное
+++++++++++++++

Expand Down

0 comments on commit 6e2659a

Please sign in to comment.