Skip to main content
Hitachi Vantara Knowledge

Overview

Storage Plug-in for Containers is a software component that contains libraries, settings, and commands that you can use to create a container in order to run your stateful applications. It enables the stateful applications to persist and maintain data after the life cycle of the container has ended. Storage Plug-in for Containers provides persistent volumes from Hitachi storage systems.

About Hitachi Storage Plug-in for Containers

Storage Plug-in for Containers integrates Kubernetes or OpenShift with Hitachi storage systems using Container Storage Interface (CSI).

The following diagram illustrates a container environment where Storage Plug-in for Containers is deployed.

GUID-927C95FB-366E-4114-A342-D6E39F73872C-low.jpg

The following table lists and describes the components of Storage Plug-in for Containers.

Components of a containerized environment using Kubernetes and OpenShift CSI
Component Purpose
csi-controller

Implements the CSI controller service, which is mainly for storage operations.

This is deployed as Deployment and runs only on a control plane.

csi-node

Implements the CSI node service, which primarily manages volumes on each node.

This is deployed as DaemonSet, and all nodes must have this component.

Hitachi storage systemsProvides storage volumes for the containers.

About the environment setup tasks

Storage Plug-in for Containers enables dynamic operation of storage systems when containers are used. In order to use Storage Plug-in for Containers pre-installation tasks must be completed.

Procedure

  1. Check and apply the requirements for the server (where you plan to install Storage Plug-in for Containers, Kubernetes, and OpenShift),Hitachi storage systems, Kubernetes, and OpenShift.

  2. Execute pre-installation tasks.

    1. Set up the Kubernetes and OpenShift environment.

    2. Configure the Hitachi storage systems.

  3. Install Storage Plug-in for Containers.

Requirements

Before you install Storage Plug-in for Containers, check that your server and storage meet the following minimum requirements.

Server requirements

Server requirements
Component Requirement
CPU x86_64
Operating system

Refer to the release notes for details.

NoteYou can also use Red Hat Enterprise Linux CoreOS as a worker node of OpenShift environments.

Storage requirements

Storage requirements for Virtual Storage Platform (VSP) family .

Storage Requirements
Component Requirement
Model Refer to the release notes for details.
SVOS

Refer to the release notes for details.

Interface

Fibre Channel and iSCSI for baremetal servers.

iSCSI for vSphere virtual machines.

User account

The built-in Storage administrator (View & Modify) user group. If you are using a customized user group, make sure it has the same roles as the built-in Storage Administrator (View & Modify) user group.

License
  • Hitachi Dynamic Provisioning (HDP), required.
  • Hitachi Thin Image (HTI), required.

Storage requirements for Virtual Storage Software Block (VSSB).

ComponentRequirement
VersionRefer to the release notes for details.
Interface

Fibre Channel and iSCSI for baremetal servers.

iSCSI for vSphere virtual machines.

User accountThe user must have a Storage role.

Pre-installation tasks

Before you install Storage Plug-in for Containers, review and apply the server and storage pre-installation requirements.

Server pre-installation

The following table outlines the pre-installation tasks for each server component.

Server pre-installation tasks
Component Tasks
HypervisorIf you want to use virtual machines, setup the hypervisor.
NoteStorage Plug-in for Containers is tested with VMware vSphere 7.0.
Fibre ChannelVerify if Fibre Channel HBA is installed on all hosts.
iSCSI Verify if iSCSI initiator software is installed on all hosts. If not, refer to: https://access.redhat.com/documentation/en-us/red_hat_enterprise_linux/7/html/storage_administration_guide/osm-create-iscsi-initiator
Note

Storage Plug-in for Containers does not support the following items:

  • IQN including upper-case letters.
  • IPv6 (same for components other than iSCSI).
multipathd

Enable multipathd and ensure that the “user_friendly_names” option is set to yes: https://access.redhat.com/documentation/en-us/red_hat_enterprise_linux/7/html/dm_multipath/mpio_setup

Storage pre-installation

Before installing, you must ensure that your environment meets the storage requirements. The following describes the pre-installation tasks to be completed for each storage component.

Storage pre-installation for VSP family

The following table outlines the pre-installation tasks to be completed for each storage component.

Storage pre-installation tasks
Component Task
Program products
  • Enable Hitachi Dynamic Provisioning (HDP) license
  • Enable Hitachi Thin Image (HTI) license
Pool
  • Create an HDP pool
Fibre Channel connection

Use an Fibre Channel switch for communication between the storage and servers. Set the following parameters for storage ports by using Storage Navigator:

  • Connection Type: P-to-P
  • Fabric: ON
  • Security: Enabled

Host groups required for Storage Plug-in for Containers are automatically created by Storage Plug-in for Containers.

If you want to use existing host groups, rename them according to the naming rule. For details, see Host group and iSCSI target naming rules).

To the host group, add WWN for each host that joins the Kubernetes cluster. For example, if you have 10 hosts in your Kubernetes cluster, you must prepare 10 host groups.

NoteStorage Plug-in for Containers will overwrite host mode options even if existing host groups have other host mode options.
iSCSI connection

Storage Plug-in for Containers automatically performs the following actions:

  • Creates iSCSI targets for each host.

    If you want to use existing iSCSI targets, rename them according to the naming rule (see Host group and iSCSI target naming rules).

  • Adds an IQN to the iSCSI target of each host that will join the Kubernetes cluster.
  • Logs in to the iSCSI target on each host.

NoteStorage Plug-in for Containers will overwrite host mode options even if existing iSCSI targets have other host mode options.
Host group and iSCSI target naming rules

Storage Plug-in for Containers automatically searches host groups and iSCSI targets based on the name.

If you want to use an already existing host group or iSCSI target, refer to either the naming rule of host groups or iSCSI targets depending on your storage connection:

Naming rule of host groups

Storage Plug-in for Containers searches host groups by the naming rule. If Storage Plug-in for Containers cannot find any host group in the port, it automatically creates the host group. If you already have host groups, you need to delete them or rename them according to the following naming rule:

"spc-<wwn1>-<wwn2>-<wwn3>"

Naming rule details:

  • <wwn1>, <wwn2>, <wwn3> are the world wide name of each host.
  • <wwn1>, <wwn2>, <wwn3> are sorted by name.
  • If the host has more than three wwns, Storage Plug-in for Containers sorts <wwn1>, <wwn2> ... <wwnN> and uses lower three names.
  • If the host has only one or two wwns, the names are "spc-<wwn1>" or "spc-<wwn1>-<wwn2>"
Naming rule of iSCSI targets

Storage Plug-in for Containers searches iSCSI targets by the naming rule. If Storage Plug-in for Containers cannot find any iSCSI target, it automatically creates the iSCSI target, "spc-<IQN>". If you already have iSCSI targets, you need to delete them or rename them according to the following naming rule:

“spc-<any string>”

Storage pre-installation for VSSB

ComponentTask
Fibre Channel connectionUse the Fibre Channel switch for communication between storage and servers.
Server resourceIf you have already created a Server resource in VSSB, verify the following:

Storage Plug-in for Containers automatically performs the following actions:

  • Finds an existing Server resource with the host WWN or IQN configured.
  • If an existing Server resource is not found, it creates a new Server resource and configures it with a host WWN or IQN.
  • Verifies and configures the Server resource to connect to the compute ports.
NoteDo not add a WWN or IQN of multiple hosts to the same Server resource. One Server resource can only be associated with a single host.

 

  • Was this article helpful?