This blog is a follow-up to Discovering Hitachi Storage Connector for VMware vCenter Orchestrator, which was an introduction to vCO Storage Connector. Now, I will get into the software and explain how it works. We will start by examining vCO Storage Connector’s prerequisites for enterprise arrays. Then I will demonstrate three basic workflows and one complex workflow.
Prerequisites for Enterprise Arrays
These are the prerequisites for vCO Storage Connector to manage enterprise arrays (e.g. HUS VM, VSP, VSP G1000).
- Array administrator account
- Command Device (CMD)
- Command Control Interface (CCI) server
- HORCM instance
A Command Device is a volume with the Command Device attribute enabled. It is mapped to a server that has the Command Control Interface (CCI) software installed. This software is available on TISC (for employees) and portal.hds.com (for customers and partners). Version 01-32-03/03 or higher is required. A HORCM instance is an UDP socket that allows applications, such as vCO Storage Connector, to interact with the array using the CMD.
In the example below, I will show how to fulfill these prerequisites for a HUS VM array. I am using a Windows operating system for the CCI server but other OS types are supported.
- Create a CMD using Storage Navigator:
- Create an administrator account for vCO Storage Connector in Storage Navigator:
- Download and install CCI. It is quite simple to install and the user guides cover the process in details so I won’t provide additional information here.
- Configure HORCM instance on CCI server:
- Match CMD volume to Windows disk. Use the inqraid tool that is part of the CCI kit. For example: “inqraid.exe -fxg -CLI $Phys”.
- Format Windows disk:
- Server Manager > Disk Manager > right click on disk > Online.
- Right click on disk again > Initialize > select MBR > OK.
- Right click on the Unallocated bar > New Simple Volume.
- Create a new volume that spans the entire disk. Choose no drive letter or drive path and do not format.
- Create HORCM file (ex: C:\Windows\horcm1.conf). Change the serial number to match your array. See screenshot below for an example.
- Confirm HORCM instance is valid by starting it.
- Try logging in with the administrator account created earlier.
- Log out: “raidcom -logout -IH1”. The HORCM instance needs to stay active for vCO Storage Connector to work. The next step explains how to automatically start it as a Windows service.
- Configure HORCM instance to automatically start as a Windows service.
- Create a copy of the file C:\HORCM\Tool\HORCM0_run.txt to HORCM1_run.txt (same directory; change the instance number accordingly).
- Make the following edits in the new file:
- Register the HORCM instance using as a service: C:\HORCM\Tool\svcexe.exe /S=HORCM1 “/A=C:\HORCM\Tool\svcexe.exe”.
- Confirm the service shows up in Services. Change its Startup Type to “Automatic (Delayed Start)”.
- Confirm the service works by starting or restarting (if started already) it.
First Workflow - Add Enterprise Array
Now that we have a working CMD, we need to register the array in vCO. This is done with the Add Enterprise Array workflow. It is located under Hitachi > Storage > Block > Storage Configuration. Right click on the workflow > Start workflow.
The fields are pretty self-explanatory. The only thing worth clarifying is the IP address field. This is the SVP of the array. It is the same IP address that you use to access Storage Navigator. A port is not needed.
If the registration completes successfully, you will see a green checkmark. If it failed, a red X is displayed. In which case, there is information available under the Variables tab to help troubleshoot.
Basic Workflow - Create LU
For our first real workflow, let’s create a new volume. There are three workflows available to accomplish this. You can find them under Hitachi > Storage > Block > Provisioning. They are:
- Create LU in Dynamic Pool
- Create LU in Parity Group
- Create LU in RAID Group
The difference between workflow #2 and #3 is the former is for enterprise arrays and the latter for modular arrays (basically the HUS family as it is the only modular platform supported at this time). We will use workflow #1 to create a new volume in a pool.
I selected the HUS VM (serial number grayed out) as the target array, entered pool 1 as the target pool, and specified 77GB as the new volume’s size. The stripe size has to be 512KB for enterprise arrays.
If the workflow executes successfully, it will return the ID of the new volume. You can locate it under the Variables tab > LunNumber. Note that this value is in decimal. All LUN number input and output fields in vCO Storage Connector workflows are in decimal. Keep in mind that other tools, such as Storage Navigator and Hitachi Command Suite, display LUN numbers in hexadecimal.
Basic Workflow - Present LU
Next, we will use the Present LU workflow to map the new volume to a host. This workflow adds one volume to one host group at a time. So if a host is connected to multiple storage ports, the user will have to run this workflow once for each port. Also note that the format of the port should be: CL#-#.
Complex Workflow - Back up ESXi Datastore
This last example demonstrates a complex workflow, which actually comprises of smaller, more basic workflows. As its name implies, Back up ESXi Datastore (under Hitachi > Sample Workflows), creates a backup snapshot of a datastore. The following diagram is a schema of this workflow. It illustrates how smaller workflows can be used to orchestrate a larger, more complex task.
At runtime, the workflow prompts the user for a datastore name. The first step is to convert the datastore name to a volume ID. Then vCO connects to the targeted array, makes a virtual volume, maps the virtual volume to the same host group as the datastore, creates a snapshot of the datastore, and suspends the snapshot.
While seemingly simple on the surface, this workflow does require some additional information from the vCO administrator ahead of time. Specifically, it requires the array credentials, IP address, a HORCM instance, and a snapshot pool.
Now if you go to the vCenter and run Rescan All, this snapshot will be listed as a device. Then it is just a matter of executing Add Storage. vCenter will pick up the duplicated VMFS label and ask if you want to assign a new signature.
The four workflows covered here are just a portion of the many workflows available. There is a whole set of workflows for the modular series and another for the HNAS platform. Once you combine these workflows with the existing capabilities of vCenter Orchestrator, there isn’t much in the VMware environment that cannot be automated. And of course we can expect even more functionalities with future releases of vCO Storage Connector.