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

F OpenNebula/one#3244: TM mix mode #716

Merged
merged 3 commits into from
Aug 7, 2019
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
2 changes: 2 additions & 0 deletions source/deployment/open_cloud_storage_setup/ceph_ds.rst
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,8 @@ For example, consider a system using an Image and System Datastore backed by a C

.. note:: In this case context disk and auxiliar files (deployment description and checkpoints) are stored locally in the nodes.

.. _ceph-ssh-mode:

SSH Mode
--------------------------------------------------------------------------------
In this mode, the associated rbd file for each disk is exported to a file and stored in the local file system of the hypervisor.
Expand Down
2 changes: 2 additions & 0 deletions source/deployment/open_cloud_storage_setup/fs_ds.rst
Original file line number Diff line number Diff line change
Expand Up @@ -198,6 +198,8 @@ Additional Configuration
The qcow2 drivers are a specialization of the shared drivers to work with the qcow2 format for disk images. Images are created and through the ``qemu-img`` command using the original image as backing file. Custom options can be sent to ``qemu-img`` clone action through the variable ``QCOW2_OPTIONS`` in ``/var/lib/one/remotes/tm/tmrc``.
* ``DD_BLOCK_SIZE``: Block size for `dd` operations (default: 64kB) could be set in ``/var/lib/one/remotes/etc/datastore/fs/fs.conf``.

.. _shared-ssh-mode:

Combining the shared & SSH Transfer Modes
--------------------------------------------------------------------------------

Expand Down
15 changes: 15 additions & 0 deletions source/integration/infrastructure_integration/sd.rst
Original file line number Diff line number Diff line change
Expand Up @@ -297,6 +297,21 @@ The monitor_ds.sh probe from the IM, if the ``.monitor`` file is present (e.g. `

The script is responsible from getting the information from all disks of all VMs in the datastore in that node.

.. _mixed-tm-modes:

Mixed Transfere modes
================================================================================

Certain types of TM can be used in so called *mixed mode* and allow different types of image and system datastore drivers to work together.

The following combinations are supported by default:

- **CEPH** + **SSH** described in :ref:`Ceph SSH mode <ceph-ssh-mode>`
- **Qcow2/shared** + **SSH** described in :ref:`Qcow2/shared SSH mode <shared-ssh-mode>`

The support in oned is generic, in a *mixed mode* every TM action (such as ``clone`` or ``delete``) is suffixed with the driver name of the system DS in use. For example, an action like ``clone.ssh`` is actually invoked in CEPH + SSH mode. The driver first tries to find the complete action script, including the system DS suffix (e.g. ``ceph/clone.ssh``) and only if that does not exist fallbacks to the default (``ceph/clone``).

In this way other combinations can be easily added.

An Example VM
================================================================================
Expand Down