openstack-manuals/doc/config-reference/block-storage/drivers/hp-3par-driver.xml
Jim Branen 57eb75af98 Update HP3PAR driver config requirement
Changed HP 3PAR operating system software minimum
version requirement to 3.1.2 (MU2).

Fixes bug: 1224688

Change-Id: Ide45dc4a109c80218ebf26a6ac7394a374f0d5af
2013-09-12 14:05:59 -07:00

293 lines
14 KiB
XML
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<section xml:id="hp-3par-driver"
xmlns="http://docbook.org/ns/docbook"
xmlns:xi="http://www.w3.org/2001/XInclude"
xmlns:xlink="http://www.w3.org/1999/xlink"
version="5.0">
<title>HP 3PAR Fibre Channel and iSCSI Drivers</title>
<para>The <filename>HP3PARFCDriver</filename> and <filename>HP3PARISCSIDriver</filename> are
based on the Block Storage (Cinder) plug-in architecture. The drivers execute
the volume operations by communicating with the HP 3PAR storage system over
HTTP/HTTPS and SSH connections. The HTTP/HTTPS communications use the
<filename>hp3parclient</filename>, which is part of the Python standard library.</para>
<para>For information about managing HP 3PAR storage systems, refer to the HP 3PAR user
documentation.</para>
<section xml:id="hp-3par-sys-reqs">
<title>System Requirements</title>
<para>To use the HP 3PAR drivers, install the following software and components on the
HP 3PAR storage system:</para>
<para>
<itemizedlist>
<listitem>
<para>HP 3PAR Operating System software version 3.1.2 (MU2) or higher</para>
</listitem>
<listitem>
<para>HP 3PAR Web Services API Server must be enabled and running</para>
</listitem>
<listitem>
<para>One Common Provisioning Group (CPG)</para>
</listitem>
<listitem>
<para>Additionally, you must install the
<filename>hp3parclient</filename> from the Python
standard library on the system with the enabled Block
Storage volume drivers.</para>
</listitem>
</itemizedlist>
</para>
</section>
<section xml:id="hp-3par-supported-ops">
<title>Supported Operations</title>
<para>
<itemizedlist>
<listitem>
<para>Create volumes.</para>
</listitem>
<listitem>
<para>Delete volumes.</para>
</listitem>
<listitem>
<para>Extend volumes.</para>
</listitem>
<listitem>
<para>Attach volumes.</para>
</listitem>
<listitem>
<para>Detach volumes.</para>
</listitem>
<listitem>
<para>Create snapshots.</para>
</listitem>
<listitem>
<para>Delete snapshots.</para>
</listitem>
<listitem>
<para>Create volumes from snapshots.</para>
</listitem>
<listitem>
<para>Create cloned volumes.</para>
</listitem>
<listitem>
<para>Copy images to volumes.</para>
</listitem>
<listitem>
<para>Copy volumes to images.</para>
</listitem>
</itemizedlist>
</para>
<para>Volume type support for both HP 3PAR drivers includes the ability to set the following
capabilities in the OpenStack Cinder API
<filename>cinder.api.contrib.types_extra_specs</filename> volume type extra specs
extension module:</para>
<para>
<itemizedlist>
<listitem>
<para><literal>hp3par:cpg</literal></para>
</listitem>
<listitem>
<para><literal>hp3par:snap_cpg</literal></para>
</listitem>
<listitem>
<para><literal>hp3par:provisioning</literal></para>
</listitem>
<listitem>
<para><literal>hp3par:persona</literal></para>
</listitem>
<listitem>
<para><literal>hp3par:vvs</literal></para>
</listitem>
<listitem>
<para><literal>qos:maxBWS</literal></para>
</listitem>
<listitem>
<para><literal>qos:maxIOPS</literal></para>
</listitem>
</itemizedlist>
</para>
<para>To work with the default filter scheduler, the key values are case sensitive
and scoped with <literal>hp3par:</literal> or <literal>qos:</literal>. For
information about how to set the key-value pairs and associate them with a
volume type, run the following command: <screen><prompt>$</prompt> <userinput>
cinder help type-key</userinput></screen>
</para>
<note>
<para>Volumes that are cloned only support extra specs keys
cpg, snap_cpg, provisioning and vvs. The others are ignored.
In addition the comments section of the cloned volume in the HP 3PAR
StoreServ storage array is not populated.
</para>
</note>
<para>The following keys require that the HP 3PAR StoreServ storage array has a
Priority Optimization license installed.
</para>
<para>
<itemizedlist>
<listitem>
<para><literal>hp3par:vvs</literal> - The virtual volume set name that has been
predefined by the Administrator with Quality of Service (QoS) rules associated
to it. If you specify <literal>hp3par:vvs</literal>, the
<literal>qos:maxIOPS</literal> and <literal>qos:maxBWS</literal> settings are
ignored.</para>
</listitem>
<listitem>
<para><literal>qos:maxBWS</literal> - The QoS I/O issue count rate limit in MBs.
If not set, the I/O issue bandwidth rate has no limit.</para>
</listitem>
<listitem>
<para><literal>qos:maxIOPS</literal> - The QoS I/O issue count rate limit. If not
set, the I/O issue count rate has no limit.</para>
</listitem>
</itemizedlist>
</para>
<para>If volume types are not used or a particular key is not set for a volume type, the
following defaults are used.</para>
<para>
<itemizedlist>
<listitem>
<para><literal>hp3par:cpg</literal> - Defaults to the <literal>hp3par_cpg</literal>
setting in the <filename>cinder.conf</filename> file.</para>
</listitem>
<listitem>
<para><literal>hp3par:snap_cpg</literal> - Defaults to the
<literal>hp3par_snap</literal> setting in the
<filename>cinder.conf</filename> file. If <literal>hp3par_snap</literal> is
not set, it defaults to the <literal>hp3par_cpg</literal> setting.</para>
</listitem>
<listitem>
<para><literal>hp3par:provisioning</literal> - Defaults to thin provisioning, the valid
values are <literal>thin</literal> and <literal>full</literal>.</para>
</listitem>
<listitem>
<para><literal>hp3par:persona</literal> - Defaults to the <literal>1
Generic</literal> persona. The valid values are, <literal>1
Generic</literal>, <literal>2 - Generic-ALUA</literal>, <literal>6 -
Generic-legacy</literal>, <literal>7 - HPUX-legacy</literal>,
<literal>8 - AIX-legacy</literal>, <literal>9 EGENERA</literal>,
<literal>10 - ONTAP-legacy</literal>, <literal>11 VMware</literal>, and
<literal>12 - OpenVMS</literal>.</para>
</listitem>
</itemizedlist>
</para>
</section>
<section xml:id="enable-hp-3par-fibre-channel">
<title>Enabling the HP 3PAR Fibre Channel and iSCSI Drivers</title>
<para>The <filename>HP3PARFCDriver</filename> and <filename>HP3PARISCSIDriver</filename> are
installed with the OpenStack software.</para>
<para>
<orderedlist>
<listitem>
<para>Install the <filename>hp3parclient</filename> Python package on the
OpenStack Block Storage system. <screen>$sudo pip install hp3parclient</screen>
</para>
</listitem>
<listitem>
<para>Verify that the HP 3PAR Web Services API server is enabled and running on
the HP 3PAR storage system. <orderedlist>
<listitem>
<para>Log onto the HP 3PAR storage system with administrator
access.<screen>#ssh 3paradm@&lt;HP 3PAR IP Address></screen></para>
</listitem>
<listitem>
<para>View the current state of the Web Services API Server.
<screen>#showwsapi</screen><screen><computeroutput>-Service- -State- -HTTP_State-
HTTP_Port -HTTPS_State- HTTPS_Port -Version-</computeroutput></screen><screen><computeroutput>Enabled Active Enabled 8008
Enabled 8080 1.1</computeroutput></screen></para>
</listitem>
<listitem>
<para>If the Web Services API Server is disabled, start
it.<screen>#startwsapi</screen></para>
</listitem>
</orderedlist>
</para>
</listitem>
<listitem>
<para>If the HTTP or HTTPS state is disabled, enable one of
them.<screen>#setwsapi -http enable </screen> or <screen>#setwsapi -https enable </screen><note>
<para>To stop the Web Services API Server, use the stopwsapi command. For
other options run the <command>setwsapi h</command> command.</para>
</note></para>
</listitem>
<listitem>
<para>If you are not using an existing CPG, create a CPG on the HP 3PAR storage system
to be used as the default location for creating volumes.</para>
</listitem>
<listitem>
<para>Make the following changes in the
<filename>/etc/cinder/cinder.conf</filename> file.</para>
<programlisting>
<emphasis role="bold">## REQUIRED SETTINGS</emphasis>
# 3PAR WS API Server URL
hp3par_api_url=https://10.10.0.141:8080/api/v1
# 3PAR Super user username
hp3par_username=3paradm
# 3PAR Super user password
hp3par_password=3parpass
# 3PAR domain to use - DEPRECATED
hp3par_domain=None
# 3PAR CPG to use for volume creation
hp3par_cpg=OpenStackCPG_RAID5_NL
# IP address of SAN controller for SSH access to the array
san_ip=10.10.22.241
# Username for SAN controller for SSH access to the array
san_login=3paradm
# Password for SAN controller for SSH access to the array
san_password=3parpass
# FIBRE CHANNEL(uncomment the next line to enable the FC driver)
# volume_driver=cinder.volume.drivers.san.hp.hp_3par_fc.HP3PARFCDriver
# iSCSI (uncomment the next line to enable the iSCSI driver and
# hp3par_iscsi_ips or iscsi_ip_address)
#volume_driver=cinder.volume.drivers.san.hp.hp_3par_iscsi.HP3PARISCSIDriver
# iSCSI multiple port configuration
# hp3par_iscsi_ips=10.10.220.253:3261,10.10.222.234
# Still available for single port iSCSI configuration
#iscsi_ip_address=10.10.220.253
<emphasis role="bold">## OPTIONAL SETTINGS</emphasis>
# Enable HTTP debugging to 3PAR
hp3par_debug=False
# The CPG to use for Snapshots for volumes. If empty hp3par_cpg will be used.
hp3par_snap_cpg=OpenStackSNAP_CPG
# Time in hours to retain a snapshot. You can't delete it before this expires.
hp3par_snapshot_retention=48
# Time in hours when a snapshot expires and is deleted. This must be larger than retention.
hp3par_snapshot_expiration=72
</programlisting>
<note>
<para>You can enable only one driver on each cinder instance unless you
enable multiple backend support. See the Cinder multiple backend support
instructions to enable this feature.</para>
</note>
<note>
<para>One or more iSCSI addresses may be configured using hp3par_iscsi_ips.
When multiple addresses are configured, the driver selects the iSCSI
port with the fewest active volumes at attach time. The IP address may include
an IP port by using a colon : to separate the address from port. If no IP
port is defined, the default port 3260 is used. IP addresses should be
separated using a comma ,. iscsi_ip_address/iscsi_port may still be used, as an
alternative to hp3par_iscsi_ips for single port iSCSI configuration.</para>
</note>
</listitem>
<listitem>
<para>Save the changes to the <filename>cinder.conf</filename> file and restart
the <systemitem class="service">cinder-volume</systemitem> service.</para>
</listitem>
</orderedlist>
</para>
<para>The HP 3PAR Fibre Channel and iSCSI drivers should now be enabled on your OpenStack
system. If you experience any problems, check the Block Storage log files for errors.</para>
</section>
</section>