Follow

About this task

This task maps a volume to a host in order to allow the host to access the volume.

INFINIDAT simplifies the mapping of volumes to hosts as much as possible. The LUN number assigned for each mapping is insignificant. Its only role is to maintain the uniqueness of the volume - host mapping, so as long as it works, InfiniBox does not bother the user with it and assigns the LUNs automatically.
The InfiniBox RESTful management API for mapping a volume to host or cluster accepts a LUN number as an optional parameter. If the parameter is not specified, the LUN is automatically assigned by the system. (This is also the case with our VMware plugin.)
LUN numbers are automatically assigned as follows:
  • For host - next available number, starting from 1. 
  • For cluster - next available number, starting from 11.
The reason we start assigning LUNs to a cluster starting with 11 is to avoid collision with LUNs mapped to individual hosts within the cluster. As long as no more than 10 volumes are mapped to a host individually, there is no collision between volumes mapped individually and volumes mapped to the cluster. In the rare case that a host has more than 10 volumes mapped only to it, and it also belongs to a cluster, the LUN number assignment has to be set manually.
The InfiniBox management GUI and CLI support setting the LUN number manually (in addition to the default behavior that is explained above) by the user when mapping a volume to host or cluster.

Prerequisites

  • A volume
  • A host

Before you begin

  • This task can be carried out from the host point of view or from the volume point of view.
  • You may map the volume to a cluster (a cluster is a group of hosts that share the same storage resources)

Instructions

Mapping a volume to a host or a cluster

  1. From infinishell:
    1. Run: vol.map name=v1 host=h1
      or
      Run: vol.map name=v1 cluster=c1 
  2. From the GUI:
    1. Go to the Volumes screen.
    2. Right-click a volume and select Map Volume from the pop-up menu.
    3. Select a host or a cluster from the list and click Map.

Mapping the host or cluster to a volume

  1. From infinishell:
    1. Run: host.map name=h1 volume=v1
      or
      Run: cluster.map name=c1 volume=v1 
  2. From the GUI:
    1. Go to the Hosts and Clusters screen
    2. Click either the Hosts tab or the Clusters tab
    3. For host
      1. Right-click a host and select Map Host from the pop-up menu
      2. Select a volume from the list and click Map
      3. Note: this GUI option allows to create a new volume
  3. For cluster
    1. Right-click a cluster and select Map Cluster from the pop-up menu
    2. Select a volume from the list and click Map
    3. Note: this GUI option allows to create a new volume

Querying for the mappings

Use either of the following options:

  • From infinishell:
    • vol.map_query
    • host.query
    • cluster.query
    • map.query
  • From the GUI:
    • View the volume, host, or cluster screens and look at the Mapping column
Was this article helpful?
0 out of 0 found this helpful

0 out of 0 found this helpful

Comments