Following with the series of posts about the HP Lefthand SAN systems in this post I will explain the basic volume operations with CLIQ, the HP Lefthand SAN/iQ command-line.
I used the Lefthand VSA and the ESX4 servers from my home lab to illustrate the procedure. The commands are executed locally in the VSA via SSH. The following tasks will be covered:
Assign a volume to one or more hosts.
The command to use is createVolume. The available options for this command are:
clusterName - The cluster where the volume will be created on.
replication - The replication level from 1 (none) to 4 (4-way replication)
thinProvision - 1 (Thin provisioning) or 2 (Full provision).
size - The size can be set in MB, GB or TB.
Assign a volume to the hosts
The command to use in this task is assignVolume. Few parameters are accepted by this command:
ìnitiator - The host/hosts IQNs.If the volume is going to be presented to more than one host the IQNs of the server must be separated by semicolons. One important tip, the operation must be done in one command, you can not assign the volume to a host in one command and to a new host in a second command, the last one will overwrite the first instead of adding the volume to one more host.
Access wrights: The default is read-write (rw), read-only (r) or write-only (w) can also be set.
And now that the volume is created and assigned to several servers check its configuration with getVolumeInfo.
If you refresh the storage configuration of the ESXs hosts through vSphere Client the new volume will be displayed.
Finally we are going to delete another volume that is no longer in use by the server of my lab.