Hitachi Block Storage Driver For Openstack Queens: User Guide
Hitachi Block Storage Driver For Openstack Queens: User Guide
Hitachi Block Storage Driver For Openstack Queens: User Guide
Queens
User Guide
MK-92ADPTR136-03
August 2018
© 2015, 2018 Hitachi, Ltd. All rights reserved.
No part of this publication may be reproduced or transmitted in any form or by any means, electronic or mechanical, including copying and
recording, or stored in a database or retrieval system for commercial purposes without the express written permission of Hitachi, Ltd., or
Hitachi Vantara Corporation (collectively “Hitachi”). Licensee may make copies of the Materials provided that any such copy is: (i) created as an
essential step in utilization of the Software as licensed and is used in no other manner; or (ii) used for archival purposes. Licensee may not
make any other copies of the Materials. “Materials” mean text, data, photographs, graphics, audio, video and documents.
Hitachi reserves the right to make changes to this Material at any time without notice and assumes no responsibility for its use. The Materials
contain the most current information available at the time of publication.
Some of the features described in the Materials might not be currently available. Refer to the most recent product announcement for
information about feature and product availability, or contact Hitachi Vantara Corporation at https://support.hitachivantara.com/en_us/contact-
us.html.
Notice: Hitachi products and services can be ordered only under the terms and conditions of the applicable Hitachi agreements. The use of
Hitachi products is governed by the terms of your agreements with Hitachi Vantara Corporation.
By using this software, you agree that you are responsible for:
1. Acquiring the relevant consents as may be required under local privacy laws or otherwise from authorized employees and other
individuals; and
2. Verifying that your data continues to be held, retrieved, deleted, or otherwise processed in accordance with relevant laws.
Notice on Export Controls. The technical data and technology inherent in this Document may be subject to U.S. export control laws, including
the U.S. Export Administration Act and its associated regulations, and may be subject to export or import regulations in other countries. Reader
agrees to comply strictly with all such regulations and acknowledges that Reader has the responsibility to obtain licenses to export, re-export, or
import the Document and any Compliant Products.
Hitachi is a registered trademark of Hitachi, Ltd., in the United States and other countries.
All other trademarks, service marks, and company names in this document or website are properties of their respective owners.
Preface..................................................................................................... 7
Intended audience............................................................................................... 7
Software version.................................................................................................. 7
Document conventions........................................................................................ 7
Release notes......................................................................................................9
Changes made in this revision.............................................................................9
Referenced documents .......................................................................................9
Related documents ...........................................................................................10
Conventions for storage capacity values........................................................... 11
Getting help........................................................................................................12
Comments..........................................................................................................12
Chapter 1: Overview............................................................................. 13
System Configuration.........................................................................................13
Supported Cinder functions .............................................................................. 14
Support for additional OpenStack operations ................................................... 16
Backend storage management configuration.................................................... 16
Volume operations........................................................................................17
Copy operations .......................................................................................... 18
Volume attachment.......................................................................................21
Backup operations........................................................................................22
Manage and unmanage a volume................................................................23
Volume migration .........................................................................................23
Contents
Hitachi Block Storage Driver for OpenStack Queens User Guide 3
Storage firmware versions................................................................................. 24
Software.............................................................................................................25
Prerequisite packages..................................................................................25
Storage management software ................................................................... 25
Storage software licenses............................................................................ 26
Software restrictions.....................................................................................26
Contents
Hitachi Block Storage Driver for OpenStack Queens User Guide 4
Using MAAS (Ubuntu OpenStack).......................................................... 43
Linking a volume type and a backend.......................................................... 43
Edit cinder.conf (SUSE/Mirantis/Ubuntu)..................................................... 44
Restart Cinder (SUSE/Mirantis/Ubuntu)............................................................ 45
Verify Block Storage Driver for OpenStack installation...................................... 46
Update the Block Storage Driver for OpenStack............................................... 47
Update the Block Storage Driver for OpenStack software for Red Hat ....... 47
Update the Block Storage Driver for OpenStack software for SUSE .......... 47
Update the Block Storage Driver for OpenStack software for Mirantis
and Ubuntu...................................................................................................48
Updating the management parameters in the cinder.conf file...................... 48
Uninstall Block Storage Driver for OpenStack (SUSE/Mirantis/Ubuntu)............49
Live migration ....................................................................................................50
Configure multipathing.......................................................................................50
Configure high availability..................................................................................51
High availability overview............................................................................. 51
Pacemaker configurations for Cinder volumes.............................................51
Build high availability environment of controller node ................................. 52
Recoverable failures.....................................................................................52
Handling HA post-failover ............................................................................52
Chapter 5: Parameters..........................................................................62
Block Storage Driver for OpenStack specific parameters .................................62
Cinder-specific parameters................................................................................75
Contents
Hitachi Block Storage Driver for OpenStack Queens User Guide 5
Chapter 6: Troubleshooting................................................................ 80
Check the version of Block Storage Driver for OpenStack................................ 80
hbsdgetinfo command....................................................................................... 81
Configuration Manager logs...............................................................................85
Openstack-cinder-volume service does not start...............................................86
Volume (snapshot) cannot be created............................................................... 86
Volume (snapshot) cannot be attached............................................................. 86
Volume operations fail in a multi-controller node environment.......................... 86
Volume attach and detach operations fail..........................................................86
Volume detach operation fails............................................................................87
Volume attach performance issues after HBA replacement.............................. 87
Volume deletion causes error status..................................................................87
Contacting Hitachi Vantara Corporation customer support................................87
Chapter 7: Messages............................................................................ 88
Message output format...................................................................................... 88
List of messages ...............................................................................................89
Messages output by the command hbsdgetinfo......................................... 109
Messages output by the installer......................................................................110
Glossary........................................................................................... 114
Contents
Hitachi Block Storage Driver for OpenStack Queens User Guide 6
Preface
This guide provides overview of and technical information for installing, configuring, and
administering Hitachi Block Storage Driver for OpenStack.
Intended audience
This document is intended for operators and administrators who configure and operate
cloud systems using the software tools listed below.
■ Red Hat OpenStack Platform
■ SUSE OpenStack Cloud
■ Mirantis OpenStack
■ Ubuntu OpenStack
■ Configuration Manager REST API
This document assumes they have basic knowledge of Linux operating systems.
Software version
This document applies to Block Storage Driver for OpenStack version 6.1.0 or later for
Queens.
Document conventions
This document uses the following typographic conventions:
Convention Description
Preface
Hitachi Block Storage Driver for OpenStack Queens User Guide 7
Document conventions
Convention Description
pairdisplay -g group
(For exceptions to this convention for variables, see the entry for
angle brackets.)
Status-<report-name><file-version>.csv
■ Variables in headings.
| vertical bar Indicates that you have a choice between two or more options or
arguments. Examples:
[ a | b ] indicates that you can choose a, b, or nothing.
{ a | b } indicates that you must choose either a or b.
Preface
Hitachi Block Storage Driver for OpenStack Queens User Guide 8
Release notes
Release notes
Read the release notes before installing and using this product. They may contain
requirements or restrictions that are not fully described in this document or updates or
corrections to this document.
■ Red Hat OpenStack Platform 13 is now supported. For this reason, the deployment
procedure was added to the following chapter: Installation and configuration (on
page 27) .
Referenced documents
The documents below are referenced in this document or contain more information
about the features described in this document.
Hitachi Vantara documents
Hitachi Command Suite Configuration Manager REST API: REST API Reference Guide,
MK-92HC229
Hitachi Virtual Storage Platform F1500 and Hitachi Virtual Storage Platform G1000,
G1500: Provisioning Guide for Open Systems: Hitachi Virtual Storage Platform G1000, G1500,
and F1500, MK-92RD8014
Hitachi Virtual Storage Platform F400, F600, F800 and Hitachi Virtual Storage Platform
G400, G600, G800: Provisioning Guide: Hitachi Virtual Storage Platform Gx00 and Fx00
Models, MK-94HM8014
Hitachi Virtual Storage Platform F350, F370, F700, F900 and Hitachi Virtual Storage
Platform G350, G370, G700, G900: Provisioning Guide: Hitachi Virtual Storage Platform G/
F350, G/F370, G/F700, G/F900, MK-97HM85026
Hitachi Vantara Support Connect, https://knowledge.hitachivantara.com/Documents
Preface
Hitachi Block Storage Driver for OpenStack Queens User Guide 9
Related documents
Related documents
The documents below are related to this document or contain more information about
features described in this document.
Hitachi Vantara documents
Common to all storage systems: Thin Image User Guide: Hitachi Virtual Storage Platform F
series and G series, MK-97HM85032
Hitachi Virtual Storage Platform F1500 and Hitachi Virtual Storage Platform G1000,
G1500:
■ System Administrator Guide: Hitachi Virtual Storage Platform G1x00 and F1500,
MK-92RD8016
■ Hardware Guide: Hitachi Virtual Storage Platform G1000,G1500, and Hitachi Virtual
Storage Platform F1500, MK-92RD8007
Hitachi Virtual Storage Platform F400, F600, F800 and Hitachi Virtual Storage Platform
G400, G600, G800:
■ System Administrator Guide: Hitachi Virtual Storage Platform Gx00 and Fx00,
MK-94HM8016
■ Hardware Reference Guide: Hitachi Virtual Storage Platform F400, F600, MK-94HM8045
■ Hardware Reference Guide: Hitachi Virtual Storage Platform F800, MK-94HM8046
■ Hardware Reference Guide: Hitachi Virtual Storage Platform G200, MK-94HM8020
■ Hardware Reference Guide: Hitachi Virtual Storage Platform G400, G600, MK-94HM8022
■ Hardware Reference Guide: Hitachi Virtual Storage Platform G800, MK-94HM8026
Hitachi Virtual Storage Platform F350, F370, F700, F900 and Hitachi Virtual Storage
Platform G350, G370, G700, G900:
■ System Administrator Guide: Hitachi Virtual Storage Platform G/F350, G/F370, G/F700, G/
F900, MK-97HM85028
■ Hardware Reference Guide: Hitachi Virtual Storage Platform F350 and F370,
MK-97HM85016
■ Hardware Reference Guide: Hitachi Virtual Storage Platform F700, MK-97HM85017
■ Hardware Reference Guide: Hitachi Virtual Storage Platform F900, MK-97HM85018
■ Hardware Reference Guide: Hitachi Virtual Storage Platform G350 and G370,
MK-97HM85012
■ Hardware Reference Guide: Hitachi Virtual Storage Platform G700, MK-97HM85013
■ Hardware Reference Guide: Hitachi Virtual Storage Platform G900, MK-97HM85014
OpenStack
■ OpenStack Cloud Administrator Guide
■ OpenStack Command-Line Interface Reference
■ OpenStack Configuration Reference
Preface
Hitachi Block Storage Driver for OpenStack Queens User Guide 10
Conventions for storage capacity values
Logical capacity values (for example, logical device capacity, cache memory capacity) are
calculated based on the following values:
Preface
Hitachi Block Storage Driver for OpenStack Queens User Guide 11
Getting help
Getting help
Hitachi Vantara Support Connect is the destination for technical support of products and
solutions sold by Hitachi Vantara. To contact technical support, log on to Hitachi Vantara
Support Connect for contact information: https://support.hitachivantara.com/en_us/
contact-us.html.
Hitachi Vantara Community is a global online community for Hitachi Vantara customers,
partners, independent software vendors, employees, and prospects. It is the destination
to get answers, discover insights, and make connections. Join the conversation today!
Go to community.hitachivantara.com, register, and complete your profile.
Comments
Please send us your comments on this document to
doc.comments@hitachivantara.com. Include the document title and number, including
the revision level (for example, -07), and refer to specific sections and paragraphs
whenever possible. All comments become the property of Hitachi Vantara Corporation.
Thank you!
Preface
Hitachi Block Storage Driver for OpenStack Queens User Guide 12
Chapter 1: Overview
Block Storage Driver for OpenStack is based on the OpenStack Block Storage architecture
(Cinder) and it enables you to provide storage services that use high-performance and
high-reliability Hitachi storage systems to build and deliver Infrastructure as a Service
(IaaS).
System Configuration
A typical system configuration for Block Storage Driver for OpenStack contains the main
components shown in the figure below. This figure is an example of a multi-node
configuration where the controller node and the compute nodes are configured on
different nodes.
Controller node
A server that manages cloud systems. The cinder-volume services run on this node.
Install and use Block Storage Driver for OpenStack on this node.
Chapter 1: Overview
Hitachi Block Storage Driver for OpenStack Queens User Guide 13
Supported Cinder functions
Compute node
A server managed by the controller node.
Configuration Manager REST API server
A server that receives REST API requests from Block Storage Driver for OpenStack, issues
commands to the storage system, and returns the execution results. The REST API server
can be installed independently or installed together as a part of the Hitachi Command
Suite.
Backend storage system
A storage system managed by Cinder. Block Storage Driver for OpenStack uses thin-
provisioned volumes (DP-VOLs) from Hitachi Dynamic Provisioning (DP) pools as backend
storage. To use multiple DP pools, register each DP pool as a separate backend storage
system.
LDEV
An individual logical data volume (on multiple drives in a RAID configuration) in a storage
system.
Volume
Data unit managed by Block Storage Driver for OpenStack.
Function Description
Create Volume from Snapshot Creates a volume with the same content as that
of a snapshot.
Chapter 1: Overview
Hitachi Block Storage Driver for OpenStack Queens User Guide 14
Supported Cinder functions
Function Description
Create Volume from Image Retrieves image stored from Glance and loads it
into the specified volume. A VM can be started
based on the stored image.
Create Volume from Volume (Clone) Creates a volume and then stores the data from
the source volume.
Create Image from Volume Creates an image from a volume and uploads
the image (Glance).
Chapter 1: Overview
Hitachi Block Storage Driver for OpenStack Queens User Guide 15
Support for additional OpenStack operations
Function Description
Notes:
1. This function is not supported for volumes in a group.
2. Snapshots are created using Thin Image (Snapshot).
Multipath for I/O path Multipath enabled for volumes managed by Block
Storage Driver for OpenStack.
High availability for Cinder You can use the high availability cluster software to
volume services set the cinder-volume service in a redundant
active-standby configuration. High availability is not
supported for SUSE OpenStack Cloud or Mirantis
OpenStack.
Fibre Channel Zone Manager When a volume managed by Block Storage Driver
for OpenStack is attached to a VM via Fibre
Channel, Fibre Channel zoning can automatically
be created or deleted between the compute node
and the storage system during a volume attach or
detach operation, respectively. See https://
docs.openstack.org/mitaka/config-reference/block-
storage/fc-zoning.html for how to specify settings.
Chapter 1: Overview
Hitachi Block Storage Driver for OpenStack Queens User Guide 16
Volume operations
Volume operations
Block Storage Driver for OpenStack provides volume operation functions for managing
LDEVs (logical devices or logical units) in the backend storage (DP pools). The figure
below shows an overview of volume operations.
Extend a volume
Block Storage Driver for OpenStack allows you to resize the DP-VOL, ensuring that the
volume can be expanded to meet changing business requirements.
Note: You cannot expand DP-VOLs created by using Thin Image (Clone)
during asynchronous copying or DP-VOLs that have pair volumes that were
created by using Thin Image (Snapshot).
Chapter 1: Overview
Hitachi Block Storage Driver for OpenStack Queens User Guide 17
Copy operations
Copy operations
When Block Storage Driver for OpenStack receives a Cinder copy volume request, Block
Storage Driver for OpenStack copies the volume in full by using Thin Image (Clone), and
takes a point-in-time snapshot of the volume by using Thin Image (Snapshot). In
addition, snapshots for multiple volumes can be created by using a single command.
This group of snapshots either guarantees or does not guarantee consistency,
depending on the property of the group type to which the group belongs.
Before you attempt to copy a volume attached to a VM, stop I/O on the VM.
The following table describes the copy methods available for Block Storage Driver for
OpenStack. To perform copy operations, you will need a license for the Thin Image
software product. A maximum of 1,024 clones and snapshots can be created for each
volume.
Thin Image (Clone) All data in the copy source volume (DP-VOL) is
asynchronously copied to the destination volume. Both
volumes can be used during the asynchronous copy.
Chapter 1: Overview
Hitachi Block Storage Driver for OpenStack Queens User Guide 18
Copy operations
Thin Image (Snapshot) Differential data with the copy destination volume is
stored as needed in a virtual volume (V-VOLv2) as an
LDEV. Both volumes can be used. Consistency groups
can also be copied. The virtual volume (V-VOLv2) can
be used in a cascade configuration.
Create a snapshot
Upon receiving a Cinder create snapshot request, Block Storage Driver for OpenStack
creates an LDEV linked to the snapshot, and then copies the snapshot data from the
volume to the LDEV by using one of the available copy methods (see the previous table).
The snapshot cannot be attached to a VM, but it can be kept as a data backup.
Chapter 1: Overview
Hitachi Block Storage Driver for OpenStack Queens User Guide 19
Copy operations
Chapter 1: Overview
Hitachi Block Storage Driver for OpenStack Queens User Guide 20
Volume attachment
Update a group
You can modify name and description of a group, as well as add or remove volumes to or
from a group.
Note:
■ There are two methods for creating a consistency group. A group created
by using cinder consisgroup-create command is always a consistency
group. A group created by using cinder group-create is a consistency
group only if the consistent_group_snapshot_enabled property of
the group type to which the group belongs is set to <is> True.
■ There are two types of group-related Cinder commands: CG commands
(commands that begin with cinder consisgroup- or cinder
cgsnapshot-) and GVG commands (commands that begin with cinder
group-). It is not recommended to use CG commands. In the future, CG
commands will become obsolete and will no longer be supported. In
addition, CG commands and GVG commands are not compatible with each
other. Snapshots created by using CG commands cannot be operated by
using GVG commands.
■ GVG-related commands require volume API version 3.20 or later (cinder
--os-volume-api-version 3.20 or export
OS_VOLUME_API_VERSION=3.20).
■ openstack commands support CG-related operations, but do not support
GVG-related operations yet.
Volume attachment
Block Storage Driver for OpenStack supports storage attachment capability for storage
systems that use the following protocols: Fibre Channel, iSCSI, and Fibre Channel over
Ethernet. Block Storage Driver for OpenStack supports multipath configurations. The
port scheduler function is also supported. If this function is used, then, when volumes
are attached, the active WWNs on the obtained compute nodes are distributed and
registered to the host groups of each port of the storage system. Volumes will be
assigned based on this attachment information. The following figure shows an overview
of the volume attachment operations.
Chapter 1: Overview
Hitachi Block Storage Driver for OpenStack Queens User Guide 21
Backup operations
Upon receiving a Cinder attach volume request, Block Storage Driver for OpenStack
attaches a volume to a VM in the specified compute node. Block Storage Driver for
OpenStack then directly connects the Hitachi storage system and the compute node.
This allows the VM to access the attached volume to store data. The volume can also be
detached from the VM. The volume can be attached again to another VM. Block Storage
Driver for OpenStack allows volume attach and detach operations in a multipath
configuration.
Backup operations
You can use standard Cinder functions to back up or restore volumes created by Block
Storage Driver for OpenStack. Note that, if you restore a volume from external storage
by using standard OpenStack functions, the metadata for the volume will be overwritten.
To prevent this, perform the following procedure to restore a volume from external
storage.
Procedure
1. Create a volume to which the data is to be restored. Note the LDEV metadata value,
which can be acquired by using the cinder metadata-show command.
2. Restore the volume from external storage. If the volume ID of the restore target is
not specified, or if the specified volume ID is different from the backed-up volume,
Chapter 1: Overview
Hitachi Block Storage Driver for OpenStack Queens User Guide 22
Manage and unmanage a volume
the type and LDEV metadata for the restore target volume will not be consistent
with the actual LDEV number.
3. Remove the metadata by using the cinder metadata command. Use the same
command to restore the type and LDEV metadata values. For details about this
command, see the help messages or the Command-Line Interface Reference.
If you plan to move a volume from one OpenStack Cinder instance to another, you can
use the cinder manage and cinder unmanage commands. Specify source-id <LDEV
Number> in the --id-type option.
Volume migration
When Block Storage Driver for OpenStack receives a Cinder migrate volume request, a
virtual volume (DP-VOL) is created as a logical device (LDEV) in the pool specified as the
migration destination, and then the data on the source volume is copied.
When volumes are migrated within the same storage system, storage-assisted copy
processing is performed. When volumes are migrated between different storage
systems, host-assisted copy processing is performed.
Chapter 1: Overview
Hitachi Block Storage Driver for OpenStack Queens User Guide 23
Chapter 2: System requirements
This chapter describes the hardware and software necessary for using Block Storage
Driver for OpenStack.
Operating systems
For details on the supported operating systems, see the Hitachi Block Storage OpenStack
driver support matrix at: https://support.HitachiVantara.com/en_us/interoperability.html.
OpenStack
For details on the supported OpenStack, see the Hitachi Block Storage OpenStack driver
support matrix at: https://support.HitachiVantara.com/en_us/interoperability.html.
Storage devices
For details on the supported storage systems, see the Hitachi Block Storage OpenStack
driver support matrix at: https://support.HitachiVantara.com/en_us/interoperability.html.
Software
This section describes the software required for each version of the Block Storage Driver
for OpenStack.
Prerequisite packages
The table below lists the prerequisite packages for Block Storage Driver for OpenStack.
Notes:
1. For configuring FC.
2. For configuring iSCSI.
3. For configuring multipath.
The following table shows the versions of Configuration Manager REST API that can be
used to manage Hitachi storage devices.
Software restrictions
Do not use Hitachi Dynamic Link Manager (HDLM) in controller nodes or compute nodes.
Use DM-Multipath instead.
Configuration Description
Note: Services other than the cinder-volume service can be used in an active-active
configuration in accordance with OpenStack recommendations.
The following table describes the valid system configurations of the Configuration
Manager REST API when used with Block Storage Driver for OpenStack.
Configuration Description
Environment setup
It is necessary to configure the storage device to allow Block Storage Driver for
OpenStack to use it. Refer to the documentation provided with the storage device for
details.
Connect nodes
Connect the controller nodes and compute nodes to the ports of the storage device. The
compute nodes use the ports of the storage device as data paths. You can use Block
Storage Driver for OpenStack to manage both configurations in which controller nodes
and compute nodes use the same ports of a storage device, and configurations in which
controller nodes and compute nodes use different ports. Design the connection
environment based on your operation policy.
The following figure shows a Fibre Channel (FC) connection example:
The ports of a storage device can be shared with other management software.
Figure 6 Connection example without I/O data paths for controller node
Use the following settings to configure the controller node without I/O data path.
■ Specify the hitachi_compute_target_ports parameter.
■ Specify the hitachi_rest_pair_target_ports parameter.
■ Do not specify the hitachi_target_ports parameter for Block Storage Driver for
OpenStack.
The following operations are not supported by the controller node without I/O data
paths:
■ Perform a volume migration (host assisted)
■ Create a volume from an image
■ Create an image from a volume
■ Back up a volume
■ Restore a backup
■ Retype a volume
Controller my_ip for cinder service Specify a unique value for the IPv4
node address for the management LAN
(/etc/cinder/cinder.conf)
of the node.
Compute my_ip for nova compute service Specify a unique value for the IPv4
node address for the management LAN
(/etc/nova/nova.conf)
of the node.
Note: The software used for internal processing has changed from Command
Control Interface (CCI) to Configuration Manager REST API in version 5. See
Updating the management parameters in the cinder.conf file (on page 48)
for updating cinder.conf.
Common resources
The following table describes resource requirements for storage systems:
All resources All storage resources, such as DP pools and host groups, must
have a name in order for the driver to use them (name fields
cannot be left blank).
Resource groups If using a new resource group for exclusive use by an OpenStack
system, create a new resource group, and assign the necessary
resources, such as LDEVs (including LDEVs for a command
device or pool), port, and host group (iSCSI target).
User accounts To access the storage system from the driver, you must create
an account and be assigned to a user group with the following
roles:
■ Storage Administrator (View Only)
■ Storage Administrator (Provisioning)
■ Storage Administrator (Local Copy)
■ Storage Administrator (Performance Management)
The user groups have management privileges for the created
Resource-Group. You can also use the built-in Storage
Administrator (View & Modify) user group.
The following table describes several Fibre Channel (FC) storage configuration
requirements.
Ports ■ Enable Port Security for the port used by the driver.
■ To use the port scheduler function, enable fabric, and then
set Point to Point (P to P) for Connection Type.
■ If you change the port configuration used by the driver for
connection, restart the openstack-cinder-volume service.
If the volume is attached or detached without restarting the
service, the operation might fail.
iSCSI connectivity
The following table describes several of the iSCSI storage configuration requirements.
Ports Enable port security for the ports used by the driver. Configure
the IP address and the TCP port number.
Procedure
1. Install the Configuration Manager REST API server.
For details, see installing the REST API in Hitachi Command Suite Configuration
Manager REST API Reference Guide.
2. Register information about the storage system to the Configuration Manager REST
API server.
For details, see Registering a storage system in Hitachi Command Suite Configuration
Manager REST API Reference Guide.
Procedure
1. As a root user, create a password file using a text editor. For example:
File: /opt/hitachi/hbsd/rest_password
Password: !gh8M59Wz#
# cat /opt/hitachi/hbsd/rest_password
!gh8M59Wz#
3. Hide the password file from all users except the Cinder group.
The procedure for each deployment method is different. For information about each
registry (including how each registry is used), see the following Red Hat documentation:
https://access.redhat.com/documentation/en-us/red_hat_openstack_platform/13/html/
keeping_red_hat_openstack_platform_updated/
The following is a sample deployment procedure that uses Remote Registry.
Procedure
1. Specify the container image of Block Storage Driver for OpenStack on the Red Hat
website.
Create a new custom_overcloud_images.yaml and set the Block Storage Driver
for OpenStack container image.
File: /home/stack/templates/custom_overcloud_images.yaml
parameter_defaults:
DockerCinderVolumeImage: registry.connect.redhat.com/hitachi/
rhosp13-openstack-cinder-volume-hbsd
The container image of Block Storage Driver for OpenStack is registered in the
following registry.
registry.connect.redhat.com/hitachi/rhosp13-openstack-cinder-
volume-hbsd
parameter_defaults:
ControllerExtraConfig:
cinder::config::cinder_config:
VSPG1000/volume_driver:
value:
cinder.volume.drivers.hitachi.hbsd.hbsd_fc.HBSDFCDriver
VSPG1000/hitachi_pool:
value: 13
VSPG1000/hitachi_rest_user:
value: HBSD_USER
VSPG1000/volume_backend_name:
value: VSPG1000
VSPG1000/hitachi_rest_password:
value: password
VSPG1000/hitachi_target_ports:
value: CL1-E, CL2-E
VSPG1000/hitachi_storage_id:
value: 834000400003
VSPG1000/hitachi_rest_api_ip:
value: 172.16.18.108
cinder_user_enabled_backends: ['VSPG1000']
For information on how to set the environment file, see the following Red Hat
documentation:
https://access.redhat.com/documentation/en-us/red_hat_openstack_platform/13/
html/custom_block_storage_back_end_deployment_guide/
Installation prerequisites
The installation prerequisites for Block Storage Driver for OpenStack are listed below.
■ Verify that you have sufficient memory on the server. The physical memory size
required by the software is: 1 MB x the number of backends x 2.
■ Verify that you have sufficient disk space required to install the driver. The following
table describes the required disk space.
hbsdgetinfo 1 MB /opt/hitachi/hbsd/
■ Check the OpenStack package installation for any missing or invalid packages (see
Software (on page 25) ). Use the rpm command with the -V option specified (debsums
for Ubuntu) to confirm that these packages are installed and are in a normal state. If a
package is not installed or an invalid package is found, install the package again.
Procedure
1. Use the mount command to mount the CD file system when installing from a CD:
3. After the service is stopped, run the rpm command to install the driver. Install the
appropriate RPM package for your OpenStack environment. The following table
shows the Block Storage Driver for OpenStack RPM package for each supported
OpenStack distribution.
hbsd.6.1.0-0_11.0.noarch.rpm RPMS/noarch
4. After the installation is completed, use the umount command to unmount the CD.
# /bin/umount/media
Procedure
1. Use the mount command to mount the CD file system when installing from a CD:
3. After the service is stopped, run the dpkg command to install the driver. The
following table shows the DEB package for each supported OpenStack distribution.
hbsd-6.1.0-0-11.0_all.deb DEBS/all
4. After the installation is completed, use the umount command to unmount the CD.
# /bin/umount/media
Initial setup
Procedure
1. Launch the WebGUI of Crowbar, and select OpenStack in the Barclamps menu.
2. Select Edit in Cinder.
3. Select Other Driver in the Type of Volume menu in the Add new Cinder Backend
field. Click Add Backend to enter the name of the backend.
4. Enter the driver path in the Driver field and the parameters in the Options field for
the backend you have added.
5. In the Deployment field, specify the controller node (only one selectable) in the
cinder-controller field. And specify the backend(s) in the cinder-volume field.
6. Click Apply to save the configuration.
To configure Block Storage Driver for OpenStack using Mirantis OpenStack, edit the
configuration file (/etc/cinder/cinder.conf) on the controller node.
Use the cinder extra-specs-list command to check the volume type you created
and the value registered for the volume_backend_name key.
parameter=value
# cinder.conf sample #
[DEFAULT]
: (Omitted)
enabled_backends=VSPG1000
logging_context_format_string=%(asctime)s.%(msecs)03d % (process)d %
(thread)s
%(levelname)s %(name)s [%(request_id)s %(user_identity)s] % (instance)s%
(message)s
: (Omitted)
[VSPG1000]
volume_driver=cinder.volume.drivers.hitachi.hbsd.hbsd_fc.HBSDFCDriver
volume_backend_name=hbsd_backend1
suppress_requests_ssl_warnings=True
hitachi_storage_id=800000054321
hitachi_pool=0
hitachi_thin_pool=1
hitachi_rest_api_ip=192.0.2.100
hitachi_rest_user=user
hitachi_rest_password_path=/opt/hitachi/hbsd/rest_password
hitachi_target_ports=CL1-A,CL2-A
hitachi_compute_target_ports=CL1-B,CL2-B
Note:
■ If you want to share a port between multiple backends in a multipath
configuration, specify the same port name for all the ports used by the
backends. If the same port name is specified for only some of the
backends, volume-connection operations might fail.
■ If you use the Configuration Manager REST API server's default server
authentication, set suppress_requests_ssl_warnings=True.
■ If you use attach operations for multiple volumes, it is recommended that
you set rpc_response_timeout to a larger value.
Procedure
1. After the Cinder service restarts, make sure that Block Storage Driver for OpenStack
is available for use by verifying the following.
■ The message MSGID0003-I is output to the following log file.
Red Hat OpenStack Platform: /var/log/cinder/volume.log
SUSE OpenStack Cloud, Mirantis OpenStack, and Ubuntu OpenStack, for each
backend that has been set: /var/log/cinder/cinder-volume.log
■ The host status for the specified backend is up by using the cinder service-
list command as shown in the example. The verified backend(s) can be used
for volume operations. If the message is not output, review and update the
configuration file.
2. Verify that the following volume operations can be performed from the Horizon
portal:
■ Create a volume
■ Delete a volume
■ Attach a volume
■ Detach a volume
■ Create a Snapshot
■ Delete a Snapshot
■ Create a volume from Snapshot
If any of these volume operations fail, check the error messages output to the
OpenStack Cinder log file.
Update the Block Storage Driver for OpenStack software for Red Hat
You can update the container image by running the commands openstack overcloud
update prepare and run. In the same way as in the procedure to deploy Block Storage
Driver for OpenStack, run the following command with the environment file for Block
Storage Driver for OpenStack specified.
For a detailed update procedure, see the following Red Hat documentation:
https://access.redhat.com/documentation/en-us/red_hat_openstack_platform/13/html/
keeping_red_hat_openstack_platform_updated/assembly-updating_the_overcloud
Update the Block Storage Driver for OpenStack software for SUSE
Use the procedure described below to update the driver software.
Procedure
1. Stop the cinder-volume service.
2. After the service has stopped, install a new version of the driver as shown below.
The following table provides the information about the RPM packages and
supported OpenStack versions.
For the RPM package name and RPM storage name, see Block Storage Driver for
OpenStack installation for SUSE (on page 41) .
Update the Block Storage Driver for OpenStack software for Mirantis
and Ubuntu
Use the procedure described below to update the driver software for Mirantis and
Ubuntu.
Procedure
1. Stop the cinder-volume service.
2. After the service stops, run the dpkg command to install the driver.
For the DEB package name and DEB storage name, see Block Storage Driver for
OpenStack installation for Mirantis and Ubuntu (on page 42) .
Procedure
1. Uninstall the Command Control Interface.
2. Modify the parameters in the cinder.conf file according to the table below. For
details on editing the cinder.conf file, see Edit cinder.conf (SUSE/Mirantis/
Ubuntu) (on page 44) . For details on each parameter, see Parameters (on
page 62) .
hitachi_horcm_numbers hitachi_rest_number
The format of this parameter value has
changed.
hitachi_horcm_user hitachi_rest_user
hitachi_horcm_password or hitachi_rest_password or
hitachi_horcm_password_path hitachi_rest_password_path
hitachi_horcm_name_only_discove hitachi_rest_name_only_discover
ry y
hitachi_horcm_disable_io_wait hitachi_rest_disable_io_wait
hitachi_horcm_pair_target_ports hitachi_rest_pair_target_ports
3. Prepare the Configuration Manager REST API. See Configure Configuration Manager
REST API server (on page 37) .
4. Install the Block Storage Driver for OpenStack. See Update the Block Storage Driver
for OpenStack (on page 47) .
Procedure
1. Stop the cinder-volume service.
■ For SUSE:
# /bin/rpm -e hbsd
Live migration
The Cinder live migration capability allows you to migrate a VM to another host for
hardware maintenance and other purposes without disrupting workloads. See online
documentation such as OpenStack Cloud Administrator Guide for details about the live
migration function on Nova components and the usage of the OpenStack configuration
installer provided by the distribution in use.
When you perform live migration using Block Storage Driver for OpenStack, follow these
guidelines:
■ Configure DM-Multipath in compute node by editing the configuration file (for
example, /etc/multipath.conf) and then restarting the multipath daemon. See
Configure multipathing (on page 50) .
● user_friendly_names is set to "no"
● find_multipaths is set to "no"
DM-Multipath is required for performing live migration for both single and multipath
configurations.
Note: Volume migration finishes even if it fails to delete the LDEV of the
original volume. In this case, delete it manually because the LDEV of the
original volume remains in storage.
Configure multipathing
Redundant I/O data paths to the storage device enable continuous operations when one
of the paths fails. Device mapper multipathing (DM-Multipath) provides path redundancy
in OpenStack as illustrated in the figure in Connect nodes (on page 30) .
DM-Multipath creates and attaches a multi-path device (dm-X) to the VM.
The details of multipath configuration for controller and compute nodes are described
below. See Cinder-specific parameters (on page 75) for the parameter details. In
addition, see the Linux website for documentation on setting up DM-Multipath.
Controller nodes:
■ Set True for the use_multipath_for_image_xfer parameter.
■ Configure DM-Multipath for the port in the Block Storage Driver for OpenStack
parameter hitachi_target_ports and hitachi_compute_target_ports.
■ Start multipath daemon after configuring the DM-Multipath setting.
Compute nodes:
■ Set True for the volume_use_multipath parameter. List this parameter in the
libvirt section in the Nova configuration file.
■ Start the multipath daemon after configuring the DM-Multipath setting.
Note:
■ The recommended value for the DM-Multipath varies depending on the
storage device. Refer to multipath configuration guidelines of your storage
device.
■ Configure the live-migration parameters to use live migration (see Live
migration (on page 50) ).
■ Attach or detach volume operation of the volume may fail when one of the
iSCSI paths fails. However, VMs that the volume is attached to can be used
with the other path.
Parameter Value
monitor fencing
stop fencing
start fencing
start-delay 10s
Configure the Pacemaker configuration using the pcs commands. You can reconfigure
node behaviors after the node has been rebooted.
Recoverable failures
When the system detects a storage control path failure that causes the Cinder volume
service to abend, it switches the failed component to the normal one to continue the
operations. Other types of failures might not be detected and as a result the Cinder
volume service becomes unavailable.
When the failed system switches over, the node associated with the failed system will
reboot. During the reboot, all services on the node will become unavailable. You can
reconfigure the node behaviors after it has been rebooted. If you reconfigure the node
to be added back to the cluster, the Active-Active services can be used as Active again.
Note:
If the failed node is recovered and you want to switch the service back to the
recovered node, make sure that there are no running snapshot volumes on
the failover node by using the cinder snapshot-list volume command
before you switch the node back.
Handling HA post-failover
When a controller node fails while storage operations are in progress, the operation
target volumes might be left unprocessed in the storage. This may cause other
operations that are involved with these resources to fail. Follow the procedure listed
below to determine the correct actions.
Procedure
1. Check Pacemaker logs for the failover status and the time it has occurred.
2. If the failover caused Cinder volume processing to stop, use the cinder list
command to find the volumes or snapshot being processed.
3. If the status of a volume is "creating" then go to step 4. Otherwise, perform the
following steps:
a. Get the metadata of the volume or the snapshot by using the cinder
metadata-show command and identify the LDEV number.
b. Find out the storage operation from the volume status.
c. Based on the obtained LDEV number, in the storage system management
software, ensure that the volume is restored to the status it was in before the
operation.
d. Change the status for the corresponding entry on CinderDB to "available" using
the cinder reset-state command.
e. Go to step 6.
4. Identify the incomplete volume processing from the file volume.log or debug.log
(for Red Hat, the file hbsd_debug.log) around the time when the failover occurred.
5. Check whether any LDEV is associated with the volume. If no LDEV is associated, go
to the following step d. If an LDEV is associated, perform the following steps:
a. Obtain the pair information from the LDEV ID by using the management
software. If a pair exists, delete it.
b. If the LDEV is mapped to a host group or an iSCSI target, disable the mapping.
c. Delete the LDEV by using the storage management software.
d. Change the state of the volume to "available" using the cinder reset-state
command and delete the corresponding entry on CinderDB using the cinder
delete command.
6. If there are any other volumes with incomplete processing, repeat steps 3 through
5.
Copy methods
When cloning volumes or creating snapshots, you can choose from one of the two copy
methods, Thin Image (Clone) and Thin Image (Snapshot), provided by storage systems.
When creating snapshots, the copy method is set to Thin Image (Snapshot). The
following table describes which copy method is used under each setting. The copy
method is selected by the hitachi_default_copy_method parameter and the
copy_method metadata for the destination volume. For example, setting pattern 1
indicates that Thin Image (Clone) is used when you clone a volume if the
hitachi_default_copy_method parameter is set to FULL and the copy_method
metadata is not set.
Table 4 Copy methods used in volume data copy
Setting Pattern
Item Value 1 2 31 41 5 61 7 8 91 10
Create F F F F F F T F F T
snapshot
Copy Volume or T T T T T T T F F F
source snapshot
Group or group F F F F F F F T T T
snapshot
hitachi_ FULL T T T F F F F T F F
default_
copy_met THIN F F F T T T F F T F
hod
FULL or THIN F F F F F F T F F T
parameter
Setting Pattern
Item Value 1 2 31 41 5 61 7 8 91 10
THIN F F T F F T F F F F
FULL or THIN F F F F F F T F F T
Thin Image F F T T F T T F T T
(Snapshot)
Legend:
■ T: True
■ F: False
Note:
1. Creating volumes by using Thin Image (Snapshot) is not recommended because of
the following: You cannot delete source volumes or snapshots without deleting
the destination volumes, and you cannot extend or unmanage source volumes,
source snapshots, or destination volumes.
2. You cannot set copy_method metadata because all processing (creation of the
destination volumes and data copy) takes place in the program before destination
volumes become available.
Note:
■ Do not set or change metadata other than copy_method.
■ You can use Thin Image (Snapshot) in cascade configurations. You can
connect up to 64 levels.
■ When using Thin Image (Snapshot) in a cascade configuration, you cannot
delete any intermediary volumes. To delete an intermediary volume, you
first must delete all volumes under the target volume.
■ For the following storage system models, if you use Thin Image (Clone) to
copy data to a volume of a different size, after asynchronous copy is
performed, the volume is expanded. For this reason, processing might
take longer than the time required to copy to a volume of the same size.
- VSP F1500
- VSP G1000
- VSP F400, F600, F800
- VSP G200, G400, G600, G800
The following describes the differences between the two types of
processing:
- Cloning volumes of the same size: (volume creation process) +
(initialization of asynchronous copy process)
- Cloning volumes of different sizes: (volume creation process) +
(initialization of asynchronous copy process) + (asynchronous copy
completion wait time) + (volume capacity extension process)
■ By using Thin Image (Clone), you can repeat the data copy operation for
the target volume while it is being copied. You can repeat the operation up
to three times. The fourth time will cause an error.
Max. consistency
Max. copy pairs per Max. copy pairs per Max. copy pairs per groups per storage
volume storage system consistency group system
Note:
* Including the number of pairs or consistency groups that are not created by using the
driver.
Port scheduler
You can use the port scheduler function to reduce the number of WWNs, which are
storage system resource.
In Block Storage Driver for OpenStack, if host groups are created automatically, host
groups are created for each compute node or VM (in an environment that has a WWN for
each VM). If you do not use the port scheduler function, host groups are created and the
same WWNs are registered in all of the ports that are specified for the parameter
hitachi_compute_target_ports or for the parameter hitachi_target_ports. For
Hitachi storage devices, a maximum of 255 host groups and 255 WWNs can be registered
for one port. When volumes are attached, the upper limit on the number of WWNs that
can be registered might be unexpectedly exceeded.
The figure below shows an example of automatically created host groups.
For the port scheduler function, when the cinder-volume service starts, the Fibre
Channel Zone Manager obtains the WWNs of active compute nodes and of active VMs.
When volumes are attached, the WWNs are registered in a round-robin procedure, in the
same order as the order of ports specified for the parameter
hitachi_compute_target_ports or for the parameter hitachi_target_ports.
If you want to use the port scheduler function, set the hitachi_port_scheduler
parameter. For details about the parameter, see Block Storage Driver for OpenStack
specific parameters (on page 62) .
The figure below shows an example of host groups created from the port scheduler.
Note:
■ Fibre Channel is supported. For details about ports, see Fibre Channel
connectivity (on page 34) .
■ If a host group already exists in any of the ports specified for the
parameter hitachi_compute_target_ports or for the parameter
hitachi_target_ports, no new host group will be created on those
ports.
■ Restarting the cinder-volume service re-initializes the round robin
scheduler as specified in the parameter
hitachi_compute_target_ports or for the parameter
hitachi_target_ports.
■ The port scheduler function divides up the active WWNs from each fabric
controller and registers them to each port. For this reason, the number of
WWNs registered may vary from port to port.
For details, see Capacity saving function: data deduplication and compression in the
Provisioning Guide for the applicable storage system, as listed in Referenced documents
(on page 9) .
Note:
Configure the virtualization-excess ratio to be unlimited. If you want to set
some other value for the virtualization-excess ratio, keep in mind that the
capacity of the system data volume is 40 TB.
Procedure
1. To enable the dedupe/comp setting, specify deduplication_compression for
hbsd:capacity_saving in the extra specs for the volume type.
The example below shows how to enable the dedupe/comp function for volume
type VSP-G1500-1.
2. When creating a volume of the volume type created in the previous step, you can
create a volume with the dedupe/comp function enabled.
The example below shows how to create a volume (10 GB) with the dedupe/comp
function enabled, where the volume type is VSP-G1500-1.
Required
or Default
Parameter optional value Description
Chapter 5: Parameters
Hitachi Block Storage Driver for OpenStack Queens User Guide 62
Block Storage Driver for OpenStack specific parameters
Required
or Default
Parameter optional value Description
If you are using a VSP F350,
F370, F700, F900 or VSP G350,
G370, G700, G900 storage
system, specify
SIMPLE_REST. API requests
that get information in a
simple format and those that
return responses at a high
speed are used when
volumes are attached or
when volumes are created (as
clones or snapshots). You
cannot specify the
hitachi_ldev_range
parameter.
Chapter 5: Parameters
Hitachi Block Storage Driver for OpenStack Queens User Guide 63
Block Storage Driver for OpenStack specific parameters
Required
or Default
Parameter optional value Description
Chapter 5: Parameters
Hitachi Block Storage Driver for OpenStack Queens User Guide 64
Block Storage Driver for OpenStack specific parameters
Required
or Default
Parameter optional value Description
Chapter 5: Parameters
Hitachi Block Storage Driver for OpenStack Queens User Guide 65
Block Storage Driver for OpenStack specific parameters
Required
or Default
Parameter optional value Description
Chapter 5: Parameters
Hitachi Block Storage Driver for OpenStack Queens User Guide 66
Block Storage Driver for OpenStack specific parameters
Required
or Default
Parameter optional value Description
Chapter 5: Parameters
Hitachi Block Storage Driver for OpenStack Queens User Guide 67
Block Storage Driver for OpenStack specific parameters
Required
or Default
Parameter optional value Description
Chapter 5: Parameters
Hitachi Block Storage Driver for OpenStack Queens User Guide 68
Block Storage Driver for OpenStack specific parameters
Required
or Default
Parameter optional value Description
Chapter 5: Parameters
Hitachi Block Storage Driver for OpenStack Queens User Guide 69
Block Storage Driver for OpenStack specific parameters
Required
or Default
Parameter optional value Description
If True is specified for the
hitachi_use_chap_auth
parameter, this parameter is
required.
Chapter 5: Parameters
Hitachi Block Storage Driver for OpenStack Queens User Guide 70
Block Storage Driver for OpenStack specific parameters
Required
or Default
Parameter optional value Description
volumes. You can specify
FULL for Thin Image (Clone)
or THIN for Thin Image
(Snapshot). For details about
this parameter, see Volume
detach operation fails (on
page 87) .
Chapter 5: Parameters
Hitachi Block Storage Driver for OpenStack Queens User Guide 71
Block Storage Driver for OpenStack specific parameters
Required
or Default
Parameter optional value Description
Chapter 5: Parameters
Hitachi Block Storage Driver for OpenStack Queens User Guide 72
Block Storage Driver for OpenStack specific parameters
Required
or Default
Parameter optional value Description
Chapter 5: Parameters
Hitachi Block Storage Driver for OpenStack Queens User Guide 73
Block Storage Driver for OpenStack specific parameters
Required
or Default
Parameter optional value Description
hitachi_rest_name_only_
discovery parameter. If you
specify False for the
hitachi_rest_name_only_
discovery parameter, it will
take a long time to attach
volumes.
Chapter 5: Parameters
Hitachi Block Storage Driver for OpenStack Queens User Guide 74
Cinder-specific parameters
Cinder-specific parameters
Default section (SUSE/Mirantis/Ubuntu)
The table below describes details for the Cinder parameters set in the default section of
the cinder.conf file. Only the parameters relevant to Block Storage Driver for
OpenStack are described here.
Required
or
Parameter optional Default value Description
Chapter 5: Parameters
Hitachi Block Storage Driver for OpenStack Queens User Guide 75
Cinder-specific parameters
Required
or
Parameter optional Default value Description
Note:
* A maximum of 32 backends supported by Block Storage Driver for OpenStack can be used
concurrently.
Chapter 5: Parameters
Hitachi Block Storage Driver for OpenStack Queens User Guide 76
Cinder-specific parameters
Default:
Required
or Default
Name optional value Description
Chapter 5: Parameters
Hitachi Block Storage Driver for OpenStack Queens User Guide 77
Cinder-specific parameters
Required
or Default
Name optional value Description
Chapter 5: Parameters
Hitachi Block Storage Driver for OpenStack Queens User Guide 78
Cinder-specific parameters
Required
or Default
Name optional value Description
Chapter 5: Parameters
Hitachi Block Storage Driver for OpenStack Queens User Guide 79
Chapter 6: Troubleshooting
This section describes troubleshooting procedures for Block Storage Driver for
OpenStack.
# /usr/bin/dpkg -s hbsd
Chapter 6: Troubleshooting
Hitachi Block Storage Driver for OpenStack Queens User Guide 80
hbsdgetinfo command
hbsdgetinfo command
Function
The command hbsdgetinfo collects data needed to investigate driver errors and
outputs the data to hbsdgetinfo-aaa.bbb.ccc.ddd-yyyymmddhhmmss.tar.gz
(where aaa.bbb.ccc.ddd is the control node IP address and yyyymmddhhmmss is the
date and time of collection).
Format
Parameter Description
Exit code
■ 0: Success
■ 1: Fail
Collected data
Data in the common group is always collected. You can remove data in the Cinder group
from the collection target by specifying the -e option.
Block Storage Driver for For Red Hat, all files below: Common
OpenStack log
/var/log/cinder/hbsd_*
For SUSE/Mirantis/Ubuntu, all files below:
Chapter 6: Troubleshooting
Hitachi Block Storage Driver for OpenStack Queens User Guide 81
hbsdgetinfo command
Note:
1. Ubuntu only.
Chapter 6: Troubleshooting
Hitachi Block Storage Driver for OpenStack Queens User Guide 82
hbsdgetinfo command
Chapter 6: Troubleshooting
Hitachi Block Storage Driver for OpenStack Queens User Guide 83
hbsdgetinfo command
Notes:
1. SUSE only.
2. Ubuntu, Mirantis only.
3. Script that collects ethtool information about all network interfaces in a system.
4. The output format is SM5DLUGT c <file>. See the rpm online documentation
for more details about the output format.
Chapter 6: Troubleshooting
Hitachi Block Storage Driver for OpenStack Queens User Guide 84
Configuration Manager logs
Example
The following example shows how to use the command hbsdgetinfo to collect data.
# /opt/hitachi/hbsd/sbin/hbsdgetinfo
Output example
The command hbsdgetinfo outputs as follows:
# /opt/hitachi/hbsd/sbin/hbsdgetinfo
hbsdgetinfo command started.
creating directory ... succeeded.
copying "/etc/cinder" ... succeeded.
copying "/etc/sudoers.d/cinder" ... succeeded.
copying "/var/log/cinder" ... succeeded.
copying "/var/log/hbsd" ... succeeded.
: (Omitted)
executing "/usr/bin/cinder transfer-list" ... succeeded.
executing "/usr/bin/cinder type-list" ... succeeded.
executing "/usr/bin/cinder list-extensions" ... succeeded.
archiving files ... succeeded.
output to "/tmp/hbsdgetinfo-aaa.bbb.ccc.ddd-yyyymmddhhmmss.tar.gz"
hbsdgetinfo command completed successfully.
Note:
■ The data that can be collected varies depending on the environment. If
data collection fails, the command outputs error messages.
■ The command outputs the message "hbsdgetinfo command
completed successfully" to confirm successful completion of the
command.
■ To collect the data for the Cinder group, Keystone certification for the
administrator user must be kept in the environment variables. To change
settings for the environment variables, use the env command. If that is
not possible, specify the -e cinder option and delete the Cinder group
data from the output.
Chapter 6: Troubleshooting
Hitachi Block Storage Driver for OpenStack Queens User Guide 85
Openstack-cinder-volume service does not start
Chapter 6: Troubleshooting
Hitachi Block Storage Driver for OpenStack Queens User Guide 86
Volume detach operation fails
Chapter 6: Troubleshooting
Hitachi Block Storage Driver for OpenStack Queens User Guide 87
Chapter 7: Messages
Where:
■ yyyy-mm-dd hh:mm:ss.fff : Date and time of output
■ PID: Process ID
■ loglevel: Log level
■ filepath: File path of the output source
■ request_id: Request ID
■ user: User ID
■ tenant: Tenant ID
■ message: Message content
The actual message content (indicated by MSGID0000-t in the message format above) is
output as follow:
Where:
■ MSGID: Indicates that the message is a driver message
■ n1n2n3n4: The serial number of the message
■ t: The message type
The message type indicates the operation corresponding to the message. The message
types are as follows:
Type Description
Chapter 7: Messages
Hitachi Block Storage Driver for OpenStack Queens User Guide 88
List of messages
Type Description
List of messages
Message
ID Message text Driver status Required actions
0300-W Failed to configure the Continues Verify that the user has
internal logging. (ret: <return processing the sufficient permission
value>, stderr: <standard error request. for the directory.
output>).
0303-W An iSCSI CHAP user could not Continues If the CHAP user is no
be deleted. (username: processing the longer needed, delete
<CHAP user name>) request. it using the storage
management software.
Chapter 7: Messages
Hitachi Block Storage Driver for OpenStack Queens User Guide 89
List of messages
Message
ID Message text Driver status Required actions
Chapter 7: Messages
Hitachi Block Storage Driver for OpenStack Queens User Guide 90
List of messages
Message
ID Message text Driver status Required actions
0324-W Failed to delete full copy pair. Continues Take the actions
(P-VOL: <LDEV number>, S- processing the specified in the
VOL: <LDEV number>) request. previous message.
Chapter 7: Messages
Hitachi Block Storage Driver for OpenStack Queens User Guide 91
List of messages
Message
ID Message text Driver status Required actions
0330-W The port name specified for Continues Correct the port name
the extra spec key processing the for the extra spec key
"hbsd:target_ports" of the request. hbsd:target_ports.
volume type is not specified
for the hitachi_target_ports
or
hitachi_compute_target_ports
parameter in cinder.conf.
(port: <port>, volume type:
<volume type>)
Chapter 7: Messages
Hitachi Block Storage Driver for OpenStack Queens User Guide 92
List of messages
Message
ID Message text Driver status Required actions
0336-W Failed to add the wwns to the Continues Check whether the
host group port because the processing by port has any
the WWN maximum of the using another unnecessary WWNs,
port is exceeded. (port: port. and then cancel the
<port>, WWN: <WWN>) assignment of those
WWNs.
Chapter 7: Messages
Hitachi Block Storage Driver for OpenStack Queens User Guide 93
List of messages
Message
ID Message text Driver status Required actions
0610-E The status change of full copy Stopped Take the actions
pair could not be completed. processing the specified in the
(S-VOL: <LDEV number>) request. previous message.
Chapter 7: Messages
Hitachi Block Storage Driver for OpenStack Queens User Guide 94
List of messages
Message
ID Message text Driver status Required actions
0616-E A pair cannot be deleted. (P- Stopped Wait until the pair can
VOL: <LDEV number>, S-VOL: processing the be deleted, and then
<LDEV number>(<pair status>) request. try the operation again.
[, <LDEV number>(<pair For Thin Image
status>)...]) (Snapshot), you cannot
delete only the P-VOL.
You must first delete
the S-VOL. If the pair
status is PSUE, resolve
the issue on the
storage system, and
then retry the
operation.
Chapter 7: Messages
Hitachi Block Storage Driver for OpenStack Queens User Guide 95
List of messages
Message
ID Message text Driver status Required actions
0631-E Failed to create a file. (file: Stopped Check that the user
<file name>, error: <error processing the has sufficient
number>, strerror: <error request. permission to perform
message>) the action on the
directory.
Chapter 7: Messages
Hitachi Block Storage Driver for OpenStack Queens User Guide 96
List of messages
Message
ID Message text Driver status Required actions
0638-E Failed to add the pair target. Stopped Take the actions
processing the specified in the
request. previous message.
0643-E The iSCSI CHAP user <CHAP Stopped Create the specified
user name> does not exist. processing the CHAP user.
request. Alternatively, enable
the parameter
hitachi_add_chap_u
ser to enable
automatic creation of a
CHAP user when
creating an iSCSI
target.
0649-E The host group or iSCSI target Stopped Create the host group
was not found. processing the or iSCSI target.
request. Alternatively, if you are
using iSCSI, enable the
parameter
hitachi_group_requ
est to enable
automatic creation of
an iSCSI target.
0650-E The resource <resource> was Stopped Check the setting for
not found. processing the the target resources.
request.
Chapter 7: Messages
Hitachi Block Storage Driver for OpenStack Queens User Guide 97
List of messages
Message
ID Message text Driver status Required actions
0656-E The volume <volume ID> Stopped Make sure that the
could not be restored. processing the status and metadata
(reason: <detailed message>) request. for the specified
volume are correct.
1. Invalid input:<volume ID
| snapshot ID>
2. Status of target volume
<volume ID> is not
"available":<status of
volume>
3. Status of source volume
<volume ID | snapshot
ID> is not
"available":<status of
volume>
Chapter 7: Messages
Hitachi Block Storage Driver for OpenStack Queens User Guide 98
List of messages
Message
ID Message text Driver status Required actions
0700-E No valid value is specified for Stopped Make sure that the
"storage_id". A valid value processing the storage identifier
must be specified for request. information or the
"storage_id" to manage the command is correct,
volume. and then try the
operation again.
0701-E No valid value is specified for Stopped Make sure that the
"ldev". A valid value must be processing the LDEV information or
specified for "ldev" to request. the command is
manage correct and retry the
operation.
Chapter 7: Messages
Hitachi Block Storage Driver for OpenStack Queens User Guide 99
List of messages
Message
ID Message text Driver status Required actions
Chapter 7: Messages
Hitachi Block Storage Driver for OpenStack Queens User Guide 100
List of messages
Message
ID Message text Driver status Required actions
0707-E No valid value is specified for Stopped Make sure that the
"source-id". A valid LDEV processing the LDEV information or
number must be specified in request. the command is
"source-id" to manage the correct, and then try
volume. the operation again.
Chapter 7: Messages
Hitachi Block Storage Driver for OpenStack Queens User Guide 101
List of messages
Message
ID Message text Driver status Required actions
0716-E No logical device exists in the Stopped Wait for the LDEVs to
storage system for the processing the be created, and then
volume <volume-ID> to be request. retry the operation.
added to the consistency
group <consistencygroup-ID>.
Chapter 7: Messages
Hitachi Block Storage Driver for OpenStack Queens User Guide 102
List of messages
Message
ID Message text Driver status Required actions
Chapter 7: Messages
Hitachi Block Storage Driver for OpenStack Queens User Guide 103
List of messages
Message
ID Message text Driver status Required actions
0727-E Failed to change the volume Stopped Specify a valid value for
type. An invalid value is processing the extra spec key <key>
specified for extra spec key request. for the volume type
"<key>" of the volume type after the change, and
after change. (value: <value>) then retry the
operation.
0730-E A newer version of the REST Stopped Update the REST API
API is required. processing the server to the required
(current:<current_version>, request. version.
required: <required_version>
or newer)
0732-E The REST API failed. (source: Stopped Remove the cause of
<errorSource>, ID: processing the the error by following
<messageId>, message: request. the message output by
<message>, cause: <cause>, the REST API server. If
solution: <solution>, code: the "code" value in the
<errorCode>, method: message is {u'SSB1':
<method, url: <url>, params: u'2E13', u'SSB2':
<params>, body: <body>) u'6003'}, run the
cinder migrate
command with the --
force-host-copy
True option.
Chapter 7: Messages
Hitachi Block Storage Driver for OpenStack Queens User Guide 104
List of messages
Message
ID Message text Driver status Required actions
0733-E The REST API timed out. (job Stopped Verify the REST API
ID: <job_id>, job status: processing the operation log and
<status>>, job state: <state>, request. storage log, and then
method: <method>, url: <url>, respond to the cause
params: <params>, body: of the timeout. Verify
<body>) volume status by using
the storage
management software.
If any unnecessary
volumes exist, remove
them manually.
0734-E The REST API failed. (HTTP Stopped Verify the REST API
status code: <status_code>, processing the server operation log.
response body: request.
<response_body>, method:
<method>, url: <url>, params:
<params>, body: <body>)
Chapter 7: Messages
Hitachi Block Storage Driver for OpenStack Queens User Guide 105
List of messages
Message
ID Message text Driver status Required actions
0739-E The Simple REST API failed. Stopped Take the actions
(source: <error-source>, ID: processing the specified in the
<message-ID>, message: request. previous message. If
<message>, cause: <cause>, SIMPLE_REST is
solution: <solution>, code: specified for the
<error-code>) hitachi_storage_cl
i parameter, make
sure that the model of
the storage system
whose ID is specified in
hitachi_storage_id
is VSP F350, F370,
F700, F900 or VSP
G350, G370, G700,
G900. If the model is
neither VSP F350, F370,
F700, F900 nor VSP
G350, G370, G700,
G900, specify REST for
the
hitachi_storage_cl
i parameter or omit
the parameter value.
0740-E The Simple REST API timed Stopped Check the REST API
out. (request ID: <request-ID>, processing the server operation log or
command progress: request. the storage log to
<progress>, command result: address the cause of
<result>) the timeout.
Chapter 7: Messages
Hitachi Block Storage Driver for OpenStack Queens User Guide 106
List of messages
Message
ID Message text Driver status Required actions
0741-E The Simple REST API failed. Stopped Check the REST API
(HTTP status code: <status- processing the server operation log.
code>, response body: request.
<response-body>)
Chapter 7: Messages
Hitachi Block Storage Driver for OpenStack Queens User Guide 107
List of messages
Message
ID Message text Driver status Required actions
0746-E Failed to attach the volume to Stopped From the path setting
the host because the path processing the for the server
setting for the server request. connection
connection management management object,
object corresponding to the delete any ports that
host is invalid. (server are not specified for
nickname: <server-nickname>, the
volume: <volume-ID>, ports: hitachi_target_por
<port>[, <port>...]) ts parameter or for
the
hitachi_compute_ta
rget_ports
parameter.
Alternatively, specify
True for the
hitachi_server_aut
o_create parameter.
Chapter 7: Messages
Hitachi Block Storage Driver for OpenStack Queens User Guide 108
Messages output by the command hbsdgetinfo
Message
ID Message text Driver status Required actions
Chapter 7: Messages
Hitachi Block Storage Driver for OpenStack Queens User Guide 109
Messages output by the installer
directory name is too long. Has stopped processing Check and, if necessary,
the requests. revise the specified
directory.
"<group name which you Has stopped processing Check and if necessary,
designated in -e>" is not a the requests. revise the specified group
group name name.
---- <service name> service is Installer has stopped. Stop the Cinder service.
running
Chapter 7: Messages
Hitachi Block Storage Driver for OpenStack Queens User Guide 110
Appendix A: OpenStack overview
This appendix provides overviews of OpenStack and Cinder.
About OpenStack
OpenStack is open source software for setting up a cloud environment of the IaaS layer.
By linking components, OpenStack automatically combines necessary resources from
the hardware resource pool that contains servers, storages, and network devices to
provide users or groups with a private-server environment.
The list of the main OpenStack components is shown in the following table.
Table 5 OpenStack main components
Cinder overview
Cinder is an OpenStack service component that provides persistent block device storage
to VM OpenStack Compute instances as a volume. Data in a Cinder volume persists
(remains undeleted) when the volume is detached from a VM instance. Since the data
remains on the block device corresponding to the volume, it can always be reattached by
changing the connection to other VM instances. In addition, high I/O performance is
expected because it has direct access to the block device corresponding to the volume
from the VM.
Storage providers include a Cinder driver for their storage devices so they can be used to
provide storage in an OpenStack environment.
Cinder commands
The OpenStack Cinder commands can operate backends through the OpenStack Cinder
API. Before using the commands, you must configure the available Keystone user
authentication for the environment variables.
The OpenStack configuration installer included in each distribution creates the file
containing the authentication information on the controller node. Load this file into the
environment variables using the source command. The following is an example of an
OpenStack environment configuration with the packstack command for the Red Hat
OpenStack Platform.
# source /root/keystonerc_admin
# /usr/bin/cinder help
Cinder functions available via CLI vary according to the version of the API. Refer to an
online help, such as OpenStack Command-Line Interface Reference, for details about CLI
support for Cinder functions.
OpenStack commands
Commands of all OpenStack projects are being integrated into openstack commands.
For example, cinder create is being replaced by openstack volume create. Using
cinder commands is recommended because not all volume use cases are available in
the openstack commands, such as GVG functions.
Glossary
Hitachi Block Storage Driver for OpenStack Queens User Guide 114
Hitachi Vantara
Corporate Headquarters Contact Information
2845 Lafayette Street USA: 1-800-446-0744
Santa Clara, CA 95050-2639 USA Global: 1-858-5474526
HitachiVantara.com | community.HitachiVantara.com HitachiVantara.com/contact