Merge "Fix installation instructions format"

This commit is contained in:
Jenkins 2017-08-31 16:05:27 +00:00 committed by Gerrit Code Review
commit d21ea90810
3 changed files with 58 additions and 86 deletions

View File

@ -15,9 +15,9 @@ storage node, you must prepare the storage device.
#. Install the LVM packages:
.. code-block:: console
.. code-block:: console
# zypper install lvm2
# zypper install lvm2
#. (Optional) If you intend to use non-raw image types such as QCOW2
and VMDK, install the QEMU package:
@ -26,9 +26,11 @@ storage node, you must prepare the storage device.
# zypper install qemu
.. note::
.. end
Some distributions include LVM by default.
.. note::
Some distributions include LVM by default.
#. Create the LVM physical volume ``/dev/sdb``:
@ -192,24 +194,21 @@ Install and configure components
typically 10.0.0.41 for the first node in the
:ref:`example architecture <overview-example-architectures>`.
* In the ``[lvm]`` section, configure the LVM back end with the
LVM driver, ``cinder-volumes`` volume group, iSCSI protocol,
and appropriate iSCSI service:
* In the ``[lvm]`` section, configure the LVM back end with the
LVM driver, ``cinder-volumes`` volume group, iSCSI protocol,
and appropriate iSCSI service:
.. path /etc/cinder/cinder.conf
.. code-block:: ini
[lvm]
# ...
volume_driver = cinder.volume.drivers.lvm.LVMVolumeDriver
volume_group = cinder-volumes
iscsi_protocol = iscsi
iscsi_helper = tgtadm
.. end
.. path /etc/cinder/cinder.conf
.. code-block:: ini
[lvm]
# ...
volume_driver = cinder.volume.drivers.lvm.LVMVolumeDriver
volume_group = cinder-volumes
iscsi_protocol = iscsi
iscsi_helper = tgtadm
.. end
* In the ``[DEFAULT]`` section, enable the LVM back end:
@ -251,7 +250,7 @@ Install and configure components
.. end
3. Create the ``/etc/tgt/conf.d/cinder.conf`` file
#. Create the ``/etc/tgt/conf.d/cinder.conf`` file
with the following data:
.. code-block:: shell

View File

@ -13,27 +13,23 @@ storage node, you must prepare the storage device.
#. Install the supporting utility packages:
* Install the LVM packages:
.. code-block:: console
* Install the LVM packages:
# yum install lvm2
.. code-block:: console
.. end
# yum install lvm2
* Start the LVM metadata service and configure it to start when the
system boots:
.. end
* Start the LVM metadata service and configure it to start when the
system boots:
.. code-block:: console
# systemctl enable lvm2-lvmetad.service
# systemctl start lvm2-lvmetad.service
.. end
.. code-block:: console
# systemctl enable lvm2-lvmetad.service
# systemctl start lvm2-lvmetad.service
.. end
.. note::
@ -119,8 +115,6 @@ storage node, you must prepare the storage device.
Install and configure components
--------------------------------
#. Install the packages:
.. code-block:: console
@ -129,9 +123,7 @@ Install and configure components
.. end
2. Edit the ``/etc/cinder/cinder.conf`` file
#. Edit the ``/etc/cinder/cinder.conf`` file
and complete the following actions:
* In the ``[database]`` section, configure database access:
@ -211,24 +203,21 @@ Install and configure components
typically 10.0.0.41 for the first node in the
:ref:`example architecture <overview-example-architectures>`.
* In the ``[lvm]`` section, configure the LVM back end with the
LVM driver, ``cinder-volumes`` volume group, iSCSI protocol,
and appropriate iSCSI service. If the ``[lvm]`` section does not exist,
create it:
.. path /etc/cinder/cinder.conf
.. code-block:: ini
* In the ``[lvm]`` section, configure the LVM back end with the
LVM driver, ``cinder-volumes`` volume group, iSCSI protocol,
and appropriate iSCSI service. If the ``[lvm]`` section does not exist,
create it:
.. path /etc/cinder/cinder.conf
.. code-block:: ini
[lvm]
volume_driver = cinder.volume.drivers.lvm.LVMVolumeDriver
volume_group = cinder-volumes
iscsi_protocol = iscsi
iscsi_helper = lioadm
.. end
[lvm]
volume_driver = cinder.volume.drivers.lvm.LVMVolumeDriver
volume_group = cinder-volumes
iscsi_protocol = iscsi
iscsi_helper = lioadm
.. end
* In the ``[DEFAULT]`` section, enable the LVM back end:
@ -273,8 +262,6 @@ Install and configure components
Finalize installation
---------------------
* Start the Block Storage volume service including its dependencies
and configure them to start when the system boots:
@ -284,5 +271,3 @@ Finalize installation
# systemctl start openstack-cinder-volume.service target.service
.. end

View File

@ -13,15 +13,11 @@ storage node, you must prepare the storage device.
#. Install the supporting utility packages:
.. code-block:: console
# apt install lvm2
.. code-block:: console
# apt install lvm2
.. end
.. end
.. note::
@ -107,9 +103,6 @@ storage node, you must prepare the storage device.
Install and configure components
--------------------------------
#. Install the packages:
.. code-block:: console
@ -119,7 +112,7 @@ Install and configure components
.. end
2. Edit the ``/etc/cinder/cinder.conf`` file
#. Edit the ``/etc/cinder/cinder.conf`` file
and complete the following actions:
* In the ``[database]`` section, configure database access:
@ -200,23 +193,21 @@ Install and configure components
:ref:`example architecture <overview-example-architectures>`.
* In the ``[lvm]`` section, configure the LVM back end with the
LVM driver, ``cinder-volumes`` volume group, iSCSI protocol,
and appropriate iSCSI service:
* In the ``[lvm]`` section, configure the LVM back end with the
LVM driver, ``cinder-volumes`` volume group, iSCSI protocol,
and appropriate iSCSI service:
.. path /etc/cinder/cinder.conf
.. code-block:: ini
[lvm]
# ...
volume_driver = cinder.volume.drivers.lvm.LVMVolumeDriver
volume_group = cinder-volumes
iscsi_protocol = iscsi
iscsi_helper = tgtadm
.. end
.. path /etc/cinder/cinder.conf
.. code-block:: ini
[lvm]
# ...
volume_driver = cinder.volume.drivers.lvm.LVMVolumeDriver
volume_group = cinder-volumes
iscsi_protocol = iscsi
iscsi_helper = tgtadm
.. end
* In the ``[DEFAULT]`` section, enable the LVM back end:
@ -261,9 +252,6 @@ Install and configure components
Finalize installation
---------------------
#. Restart the Block Storage volume service including its dependencies:
.. code-block:: console