Merge "Change default of option volume_driver to LVMVolumeDriver"
This commit is contained in:
commit
b828725ead
@ -330,21 +330,21 @@ properties::
|
||||
|
||||
[lvm-1]
|
||||
volume_group = stack-volumes-lvmdriver-1
|
||||
volume_driver = cinder.volume.drivers.lvm.LVMISCSIDriver
|
||||
volume_driver = cinder.volume.drivers.lvm.LVMVolumeDriver
|
||||
volume_backend_name = lvmdriver-1
|
||||
filter_function = "volume.size < 5"
|
||||
goodness_function = "(capabilities.total_volumes < 3) ? 100 : 50"
|
||||
|
||||
[lvm-2]
|
||||
volume_group = stack-volumes-lvmdriver-2
|
||||
volume_driver = cinder.volume.drivers.lvm.LVMISCSIDriver
|
||||
volume_driver = cinder.volume.drivers.lvm.LVMVolumeDriver
|
||||
volume_backend_name = lvmdriver-2
|
||||
filter_function = "volumes.size < 5"
|
||||
goodness_function = "(capabilities.total_volumes < 8) ? 100 : 50"
|
||||
|
||||
[lvm-3]
|
||||
volume_group = stack-volumes-lvmdriver-3
|
||||
volume_driver = cinder.volume.drivers.lvm.LVMISCSIDriver
|
||||
volume_driver = cinder.volume.drivers.LVMVolumeDriver
|
||||
volume_backend_name = lvmdriver-3
|
||||
goodness_function = "55"
|
||||
|
||||
|
@ -18,7 +18,7 @@ In that case, the scheduler properly decides which back end the volume
|
||||
has to be created in.
|
||||
|
||||
The name of the back end is declared as an extra-specification of a
|
||||
volume type (such as, ``volume_backend_name=LVM_iSCSI``). When a volume
|
||||
volume type (such as, ``volume_backend_name=LVM``). When a volume
|
||||
is created, the scheduler chooses an appropriate back end to handle the
|
||||
request, according to the volume type specified by the user.
|
||||
|
||||
@ -60,19 +60,19 @@ These examples show three back ends:
|
||||
enabled_backends=lvmdriver-1,lvmdriver-2,lvmdriver-3
|
||||
[lvmdriver-1]
|
||||
volume_group=cinder-volumes-1
|
||||
volume_driver=cinder.volume.drivers.lvm.LVMISCSIDriver
|
||||
volume_backend_name=LVM_iSCSI
|
||||
volume_driver=cinder.volume.drivers.lvm.LVMVolumeDriver
|
||||
volume_backend_name=LVM
|
||||
[lvmdriver-2]
|
||||
volume_group=cinder-volumes-2
|
||||
volume_driver=cinder.volume.drivers.lvm.LVMISCSIDriver
|
||||
volume_backend_name=LVM_iSCSI
|
||||
volume_driver=cinder.volume.drivers.lvm.LVMVolumeDriver
|
||||
volume_backend_name=LVM
|
||||
[lvmdriver-3]
|
||||
volume_group=cinder-volumes-3
|
||||
volume_driver=cinder.volume.drivers.lvm.LVMISCSIDriver
|
||||
volume_backend_name=LVM_iSCSI_b
|
||||
volume_driver=cinder.volume.drivers.lvm.LVMVolumeDriver
|
||||
volume_backend_name=LVM_b
|
||||
|
||||
In this configuration, ``lvmdriver-1`` and ``lvmdriver-2`` have the same
|
||||
``volume_backend_name``. If a volume creation requests the ``LVM_iSCSI``
|
||||
``volume_backend_name``. If a volume creation requests the ``LVM``
|
||||
back end name, the scheduler uses the capacity filter scheduler to choose
|
||||
the most suitable driver, which is either ``lvmdriver-1`` or ``lvmdriver-2``.
|
||||
The capacity filter scheduler is enabled by default. The next section
|
||||
|
@ -33,8 +33,8 @@ of ``lvmdriver-1`` up to 100 MiB/s:
|
||||
|
||||
[lvmdriver-1]
|
||||
volume_group=cinder-volumes-1
|
||||
volume_driver=cinder.volume.drivers.lvm.LVMISCSIDriver
|
||||
volume_backend_name=LVM_iSCSI
|
||||
volume_driver=cinder.volume.drivers.lvm.LVMVolumeDriver
|
||||
volume_backend_name=LVM
|
||||
volume_copy_bps_limit=104857600
|
||||
|
||||
.. note::
|
||||
|
@ -25,7 +25,7 @@ Configure multiple-storage back ends
|
||||
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
|
||||
|
||||
To configure ``VolumeNumberWeigher``, use ``LVMISCSIDriver``
|
||||
To configure ``VolumeNumberWeigher``, use ``LVMVolumeDriver``
|
||||
as the volume driver.
|
||||
|
||||
This configuration defines two LVM volume groups: ``stack-volumes`` with
|
||||
@ -39,13 +39,13 @@ This example configuration defines two back ends:
|
||||
enabled_backends=lvmdriver-1,lvmdriver-2
|
||||
[lvmdriver-1]
|
||||
volume_group=stack-volumes
|
||||
volume_driver=cinder.volume.drivers.lvm.LVMISCSIDriver
|
||||
volume_backend_name=LVM_iSCSI
|
||||
volume_driver=cinder.volume.drivers.lvm.LVMVolumeDriver
|
||||
volume_backend_name=LVM
|
||||
|
||||
[lvmdriver-2]
|
||||
volume_group=stack-volumes-1
|
||||
volume_driver=cinder.volume.drivers.lvm.LVMISCSIDriver
|
||||
volume_backend_name=LVM_iSCSI
|
||||
volume_driver=cinder.volume.drivers.lvm.LVMVolumeDriver
|
||||
volume_backend_name=LVM
|
||||
|
||||
Volume type
|
||||
~~~~~~~~~~~
|
||||
@ -56,10 +56,10 @@ Define a volume type in Block Storage::
|
||||
|
||||
Create an extra specification that links the volume type to a back-end name::
|
||||
|
||||
$ cinder type-key lvm set volume_backend_name=LVM_iSCSI
|
||||
$ cinder type-key lvm set volume_backend_name=LVM
|
||||
|
||||
This example creates a lvm volume type with
|
||||
``volume_backend_name=LVM_iSCSI`` as extra specifications.
|
||||
``volume_backend_name=LVM`` as extra specifications.
|
||||
|
||||
Usage
|
||||
~~~~~
|
||||
|
@ -2257,7 +2257,7 @@
|
||||
#
|
||||
|
||||
# Driver to use for volume creation (string value)
|
||||
#volume_driver=cinder.volume.drivers.lvm.LVMISCSIDriver
|
||||
#volume_driver=cinder.volume.drivers.lvm.LVMVolumeDriver
|
||||
|
||||
# Timeout for creating the volume to migrate to when
|
||||
# performing volume migration (seconds) (integer value)
|
||||
|
@ -13,7 +13,7 @@
|
||||
>https://git.openstack.org/cgit/openstack/cinder/</link>). To set a
|
||||
volume driver, use the <literal>volume_driver</literal> flag.
|
||||
The default is:</para>
|
||||
<programlisting>volume_driver = cinder.volume.drivers.lvm.LVMISCSIDriver</programlisting>
|
||||
<programlisting>volume_driver = cinder.volume.drivers.lvm.LVMVolumeDriver</programlisting>
|
||||
<!-- Keep this list alphabetically sorted. -->
|
||||
<xi:include href="drivers/ceph-rbd-volume-driver.xml"/>
|
||||
<xi:include href="drivers/dell-equallogic-driver.xml"/>
|
||||
|
Loading…
Reference in New Issue
Block a user