A pluggable storage device is an OpenStack supported storage device. Any storage
device supported by an OpenStack driver can be
registered with PowerVC, but the level of
functionality that it has within PowerVC
depends on the driver.
About this task
The following steps show how to add a pluggable volume driver. For adding a
pluggable fabric driver, the steps are
similar.
For
more information about pluggable storage functionality, see Functions available on pluggable and integrated storage drivers.
Procedure
-
Obtain the OpenStack
Yoga-compatible driver installable, documentation, and any dependencies from GitHub.
- If the storage driver is not in the Cinder community, follow the vendor's instructions for
downloading and installing the storage driver.
-
Review the dependencies listed for the driver. For any dependencies that PowerVC does not meet, install and configure them
in accordance with the driver's instructions.
To determine the driver's dependencies, review the OpenStack Cinder
driver documentation.
To determine whether the dependencies are already met by PowerVC, run rpm -aq
and review
the output.
-
Prepare a properties file for use with the
powervc-register
command by creating a file with a section called backend_defaults
, followed by any
driver specific key/value pairs. The OpenStack
driver documentation might list properties that should be set in
/etc/cinder/cinder.conf or /etc/cinder/fabrics.conf. Do
not modify the /etc/cinder/cinder.conf or
/etc/cinder/fabrics.conf file directly. Instead, put all of the driver specific
configuration properties in the properties file that is passed to the command.
Note: Do not set the following properties in the properties file because they will be overridden by
the arguments specified on the command line: volume_driver
,
volume_backend_name
, enabled_backends
, or
host_type
.
Example
[backend_defaults]
san_password = passw0rd
san_login = svcuser
san_ip = 1.2.3.4
storwize_svc_volpool_name = pool_0
-
Register the storage driver by running the powervc-register command:
powervc-register -o add -r resource_type -d volume_driver
-n display_name -p properties_file
The command uses the following parameters:
- resource_type
- Use
storage
or fabric
as the resource type, as appropriate.
- volume_driver
- The path to the volume driver's Python class. If the driver exists in the standard location,
this value may be documented by the OpenStack
driver. Otherwise, it depends on where you placed the module. For example,
cinder.volume.drivers.dell_emc.unity.driver.UnityDriver
.
- display_name
- Optional: The driver's display name
- properties_file
- The file used to specify the device specific configuration properties.
For instructions to use the command, run
powervc-register -h
.
Example:
powervc-register -o add -r storage -d
cinder.volume.drivers.ibm.storwize_svc.storwize_svc_fc.StorwizeSVCFCDriver -n svc-fc-storage -p
/tmp/svc_properties.conf
Results
Updating the OpenStack level of
driverIf you already have a pluggable driver that is registered with PowerVC and the pluggable driver module was not
updated when the PowerVC version was updated,
then you might need to download a new version of the driver to replace the old file. For example, if
you update PowerVC to version 2.1.1, then you must have a OpenStack
Yoga
level of the registered pluggable driver.