7a3e88d964
Change-Id: Id1890a5b17ab31ea898677264de44e37a4da6a2f backport: newton
113 lines
2.1 KiB
ReStructuredText
113 lines
2.1 KiB
ReStructuredText
:orphan:
|
|
|
|
.. _cinder-backup-install:
|
|
|
|
Install and configure the backup service
|
|
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
|
|
|
Optionally, install and configure the backup service. For simplicity,
|
|
this configuration uses the Block Storage node and the Object Storage
|
|
(swift) driver, thus depending on the
|
|
`Object Storage service <https://docs.openstack.org/project-install-guide/newton/object-storage>`_.
|
|
|
|
.. note::
|
|
|
|
You must :ref:`install and configure a storage node <cinder-storage>` prior
|
|
to installing and configuring the backup service.
|
|
|
|
Install and configure components
|
|
--------------------------------
|
|
|
|
.. note::
|
|
|
|
Perform these steps on the Block Storage node.
|
|
|
|
.. only:: obs
|
|
|
|
#. Install the packages:
|
|
|
|
.. code-block:: console
|
|
|
|
# zypper install openstack-cinder-backup
|
|
|
|
.. end
|
|
|
|
.. endonly
|
|
|
|
.. only:: rdo
|
|
|
|
#. Install the packages:
|
|
|
|
.. code-block:: console
|
|
|
|
# yum install openstack-cinder
|
|
|
|
.. end
|
|
|
|
.. endonly
|
|
|
|
.. only:: ubuntu or debian
|
|
|
|
#. Install the packages:
|
|
|
|
.. code-block:: console
|
|
|
|
# apt install cinder-backup
|
|
|
|
.. end
|
|
|
|
.. endonly
|
|
|
|
2. Edit the ``/etc/cinder/cinder.conf`` file
|
|
and complete the following actions:
|
|
|
|
* In the ``[DEFAULT]`` section, configure backup options:
|
|
|
|
.. path /etc/cinder/cinder.conf
|
|
.. code-block:: ini
|
|
|
|
[DEFAULT]
|
|
# ...
|
|
backup_driver = cinder.backup.drivers.swift
|
|
backup_swift_url = SWIFT_URL
|
|
|
|
.. end
|
|
|
|
Replace ``SWIFT_URL`` with the URL of the Object Storage service. The
|
|
URL can be found by showing the object-store API endpoints:
|
|
|
|
.. code-block:: console
|
|
|
|
$ openstack catalog show object-store
|
|
|
|
.. end
|
|
|
|
Finalize installation
|
|
---------------------
|
|
|
|
.. only:: obs or rdo
|
|
|
|
Start the Block Storage backup service and configure it to
|
|
start when the system boots:
|
|
|
|
.. code-block:: console
|
|
|
|
# systemctl enable openstack-cinder-backup.service
|
|
# systemctl start openstack-cinder-backup.service
|
|
|
|
.. end
|
|
|
|
.. endonly
|
|
|
|
.. only:: ubuntu or debian
|
|
|
|
Restart the Block Storage backup service:
|
|
|
|
.. code-block:: console
|
|
|
|
# service cinder-backup restart
|
|
|
|
.. end
|
|
|
|
.. endonly
|