summaryrefslogtreecommitdiff
path: root/doc/source/configuration/block-storage/drivers/ibm-flashsystem-volume-driver.rst
blob: 1d12846788b106631adb57100e782595a74a6331 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
==============================
IBM FlashSystem 840/900 driver
==============================

The volume driver for FlashSystem provides OpenStack Block Storage hosts
with access to IBM FlashSystems.

This driver is to be used with IBM FlashSystem 840/900 systems only.
For any other FlashSystem storage systems (including 5xxx, 7xxx, and 9xxx
platforms) see the :doc:`IBM Spectrum Virtualize family volume driver
documentation <ibm-storwize-svc-driver>`.

Supported operations
~~~~~~~~~~~~~~~~~~~~

These operations are supported:

-  Create, delete, attach, and detach volumes.

-  Create, list, and delete volume snapshots.

-  Create a volume from a snapshot.

-  Copy an image to a volume.

-  Copy a volume to an image.

-  Clone a volume.

-  Extend a volume.

-  Get volume statistics.

-  Manage and unmanage a volume.

Configure FlashSystem
~~~~~~~~~~~~~~~~~~~~~

Configure storage array
-----------------------

The volume driver requires a pre-defined array. You must create an
array on the FlashSystem before using the volume driver. An existing array
can also be used and existing data will not be deleted.

.. note::

   FlashSystem can only create one array, so no configuration option is
   needed for the IBM FlashSystem driver to assign it.

Configure user authentication for the driver
--------------------------------------------

The driver requires access to the FlashSystem management interface using
SSH. It should be provided with the FlashSystem management IP using the
``san_ip`` flag, and the management port should be provided by the
``san_ssh_port`` flag. By default, the port value is configured to be
port 22 (SSH).

.. note::

   Make sure the compute node running the ``cinder-volume`` driver has SSH
   network access to the storage system.

Using password authentication, assign a password to the user on the
FlashSystem. For more detail, see the driver configuration flags
for the user and password here: :ref:`config_fc_flags`
or :ref:`config_iscsi_flags`.

There are some common configuration options for either driver:

.. list-table:: List of common configuration options for IBM FlashSystem drivers
   :header-rows: 1

   * - Flag name
     - Type
     - Default
     - Description
   * - ``san_ip``
     - Required
     -
     - Management IP or host name
   * - ``san_ssh_port``
     - Optional
     - 22
     - Management port
   * - ``san_login``
     - Required
     -
     - Management login user name
   * - ``san_password``
     - Required
     -
     - Management login password

IBM FlashSystem FC driver
~~~~~~~~~~~~~~~~~~~~~~~~~

Data Path configuration
-----------------------

Using Fiber Channel (FC), each FlashSystem node should have at least one
WWPN port configured. If the ``flashsystem_multipath_enabled`` flag is
set to ``True`` in the Block Storage service configuration file, the driver
uses all available WWPNs to attach the volume to the instance. If the flag is
not set, the driver uses the WWPN associated with the volume's preferred node
(if available). Otherwise, it uses the first available WWPN of the system. The
driver obtains the WWPNs directly from the storage system. You do not need to
provide these WWPNs to the driver.

.. note::

   Using FC, ensure that the block storage hosts have FC connectivity
   to the FlashSystem.

.. _config_fc_flags:

Enable IBM FlashSystem FC driver
--------------------------------

Set the volume driver to the FlashSystem driver by setting the
``volume_driver`` option in the ``cinder.conf`` configuration file,
as follows:

.. code-block:: ini

   volume_driver = cinder.volume.drivers.ibm.flashsystem_fc.FlashSystemFCDriver

To enable the IBM FlashSystem FC driver, configure the following options in the
``cinder.conf`` configuration file:

.. config-table::
   :config-target: IBM FlashSystem FC

   cinder.volume.drivers.ibm.flashsystem_common
   cinder.volume.drivers.ibm.flashsystem_fc

IBM FlashSystem iSCSI driver
~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Network configuration
---------------------

Using iSCSI, each FlashSystem node should have at least one iSCSI port
configured. iSCSI IP addresses of IBM FlashSystem can be obtained by
FlashSystem GUI or CLI. For more information, see the
appropriate IBM Redbook for the FlashSystem.

.. note::

   Using iSCSI, ensure that the compute nodes have iSCSI network access
   to the IBM FlashSystem.

.. _config_iscsi_flags:

Enable IBM FlashSystem iSCSI driver
-----------------------------------

Set the volume driver to the FlashSystem driver by setting the
``volume_driver`` option in the ``cinder.conf`` configuration file, as
follows:

.. code-block:: ini

   volume_driver = cinder.volume.drivers.ibm.flashsystem_iscsi.FlashSystemISCSIDriver

To enable IBM FlashSystem iSCSI driver, configure the following options
in the ``cinder.conf`` configuration file:

.. config-table::
   :config-target: IBM FlashSystem iSCSI

   cinder.volume.drivers.ibm.flashsystem_common
   cinder.volume.drivers.ibm.flashsystem_iscsi

.. note::

   On the cluster of the FlashSystem, the ``iscsi_ip_address`` column is the
   seventh column ``IP_address`` of the output of ``lsportip``.

.. note::

   On the cluster of the FlashSystem, port ID column is the first
   column ``id`` of the output of ``lsportip``,
   not the sixth column ``port_id``.

Limitations and known issues
~~~~~~~~~~~~~~~~~~~~~~~~~~~~

IBM FlashSystem only works when:

.. code-block:: ini

   open_access_enabled=off

.. note::

    The ``flashsystem_multihost_enabled`` setting allows the driver to map a
    vdisk to more than one host at a time. This scenario occurs during
    migration of a virtual machine with an attached volume; the volume is
    simultaneously mapped to both the source and destination compute hosts. If
    your deployment does not require attaching vdisks to multiple hosts,
    setting this flag to ``False`` will provide added safety.